All,
I am trying to track down the cause of some odd behavior that I have observed on said processor's timer outputs. All of the tests were done with Timer A running at 1MHz straight from SMCLK. The goal is to generate a 1us pulse every 25us. If I use output mode 7 and set TA0CCR2 to 0x0000h, I get nothing on the output. If I set TA0CCR2 to 0x0001h, I get a 1us pulse just like I wanted. Based on the description in the manual, I thought that setting TA0CCR2 to zero would've give me the single pulse, but it does not. I am curious what I am misunderstanding that causes this to be the case.
Also, one of my coworkers tried it a different way, using mode 3. They used TA0CCR0=0x0018h, and TA0CCR2=0x0017h. This gave a 2us pulse at 25us intervals, instead of the 1us we expected to get. Setting the two registers equal yielded a 1us pulse, but seems counter-intuitive.
Any insight on why we are observing this behavior would be appreciated.