AnsweredAssumed Answered

BF561 intermitent timer - why doesn't it work every time?

Question asked by mrosing on Dec 29, 2011

Howdy folks,

 

I'm using the I2C_BF5xx_rev06.s to emulate an I2C controller to an Aptina image sensor.  Sometimes it works and sometimes it doesn't.  What seems to be happening is that the timer interrupt is not being triggered, and if I follow it with the debugger the TMRS8_ENABLE is clear even after it gets set - but only sometimes!  The EMU_RUN bit is set, so single stepping I do get a first interrupt even though both the status and enable bits show up in the debugger window clear, and then after the RTI my code hangs waiting for SCCB_In_Progress because there are no more timer interrupts.

 

Is there some kind of timing problem where ssync; isn't enough and I should add nops to make sure registers stay set?  Is there a possible power problem (I don't see anything, but maybe I'm not looking in the right place)?

 

Any ideas appreciated!

 

Mike R.

Outcomes