This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem with the pwm by tms320lf0407a



Hello,

I have a problem with the GP of th tms320lf2407a. I want to change the
value of the period and of the compare all 64µs.

example:

TxPR = x1

TxCMPR= y1

TxPR= x2

TxCMPR = y2

I switch every 64µs the values. In the datasheet is written, that the
values will be updated when the counter is zero. This argument is
sometimes not true. Because, I receive sometimes the combination x_1 y_2
or x_2 ,y_1. that  means, that the values are not updated everytime by
zero.

I don't know what is wrong. Normally, the DSP should to update the
values when TxCNT = 0! Is there some special settings by the GP register
or TxCON, which I forgot?

My settings  are GPTCONB = 0x6046 and T4CON = 0x1042. I use parallel the
capture unit (with another timer TyCNT).  I think, this should be not
the problem, because they work independent .

I hope you can help. Thank you in advance!

Best regards,


Karim Bouabana