2021-03-05 12:50 PM
Hi,
On a STM32L476 MCU, I use many timers with various synchronization / outputs combination. I've two problems still remaining :
Regards, Jerome
2021-03-05 08:45 PM
> On TIM3, the Channel 4 Output compare mode TOOGLE do not seems to work correctly
OCxRef is output from comparator and input to the "pin control" stage which performs PWM or toggle, so if that is not set properly to Toggle, pin will "not work" while OCxRef still can work correctly.
Read out and check/post TIM and relevant GPIO registers content.
> tried to set the output compare mode to 'Force Inactive Level' or 'Force Active Level' but it does not work.
Ditto.
> Does it [the force *** level] still work when the timer is 'not running' (i.e when the timer is not gated) ?
Yes.
(Btw. I believe "gated" refers to the state when the counter does not run.)
> Is there any way to have the 'real' state of the [gated] timer ?
No. You have to infer it from the state of signal which is source of the slave-mode controller.
JW
2021-03-23 07:56 AM
Hi,
Thanks you and sorry for being slow to answer. Well, I've not been able to make the channel 4 of the TIM3 to work properly. Maybe it is related to the trigger connection to the DAC. GPIOs are correctly set, and timer channel configuration is the exact same as channel 1. Anyway that's not a big problem because I can set the channel 1 for debug purpose. The reset of the OCREF indeed work.
Regards,