Hello, experts,In R5F57132, MTU's TSR has TCFV bits,
I now use MTU1 to capture the encoder pulse and MTU0 to record the time.
But there is no TSR register for MTU0 in R5F566T.
How do I know when the MTU0 count is overflowing?
Hello Tom,
What kind of IDE do you use for your development? For example, on e2studio with Smart Configurator, there is the option to activate the overflow interrupt (TCIV0) and assign it to the vector number 212 of the interrupt vector table:
Αfter doing the above, the generated code for the MTU0 overflow interrupt is the below:
and also a callback is created that can be used from the user and it is called when an MTU0 overflow happens :
Regards,
AL_Renesas
hello expect,
My configuration is the same as your above, I currently use IR(PERIA, INTA212) to determine whether the MTU0 count overflow is currently generated, may I ask if it is OK?