Duty Cycle Problem with Texas Instruments MSP430

MrChips

Joined Oct 2, 2009
20,915
I am going to hazard a guess that proper forum etiquette would be to post the information here in its entirety. This avoids having to go back and forth between two forums.
 

MrChips

Joined Oct 2, 2009
20,915
I copied your code over to a MSP430G2553.
I cannot replicate your symptoms. I am not using interrupts. Are you using interrupts in your code?

Update: I can see it now on the scope. This will require further investigation.
I am not using interrupts.
 

MrChips

Joined Oct 2, 2009
20,915
I suspect that the glitch is caused by trying to write into TACCR1 and TACCR2 on the fly while the TA0R register is on the move.
Use interrupts and write into TACCR1 and TACCR2 only when TACCR0 interrupts.
 
Top