Hi,
>>Do you mean when debugging and writing to registers to see the effect? If so, check the FTM_CONF register setting since it defines the behaviour of the FlexTimer in debug mode (it can be left to run or to freeze).
No, I have changed the register before debugging...
>>I am not sure about the FTM_CNTIN since I use only the FTM_CV (for the particular channel) to vary the PWM signal.
Have you changed the period too? Or did you only set the PWM duty cycle?
My main question is, what does the MOD register do? I can't understand the describtion in the datasheet...
<<
The Modulo register contains the modulo value for the FTM counter. After the FTM
counter reaches the modulo value, the overflow flag (TOF) becomes set at the next clock,
and the next value of FTM counter depends on the selected counting method;
>>
This paragraph says that the timer counts until the MOD value is reached or?
<<
The Counter Initial Value register contains the initial value for the FTM counter.
Writing to the CNTIN register latches the value into a buffer.
>>
This paragraph says that the timer starts to count from the CNTIN register value or?
<<
The CNT register contains the FTM counter value.
Reset clears the CNT register. Writing any value to COUNT updates the counter with its
initial value, CNTIN.
>>
This paragraph says taht the CNT register shows the counter value at the moment or? So I
don't need to use this register?!
<<
These registers contain the captured FTM counter value for the input modes or the match
value for the output modes.
>>
Last but not least this register says that when I reach the FTM counter value the level is changed from high to low or otherwise or?
Is there a fault in my interpretation?
thanks
Pascal