Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

TCPWM Interrupt Does Not Occur in Traveo II Family – KBA229679

TCPWM Interrupt Does Not Occur in Traveo II Family – KBA229679

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

Author: ShusakuS_56           Version: **

 

Question:

I am generating an interrupt to the CPU with the TCPWM Counter Overflow (OV) event. However, when the reload signal is input to the counter, no interrupt occurs. How do I generate an interrupt when a reload signal is input to the counter?

 

 

Answer:

When a reload signal is input to the TCPWM counter, overflow of the counter occurs, but no TC event occurs. This is as specified.

 

pastedImage_9.png

 

If you want to generate an interrupt even when a reload signal is input to the counter, use a compare match to generate an interrupt.

For example, set the compare value to "0" in the "TCPWMx_GRPy_CNTz_CC0" register and enable CC0_MATCH in the “TCPWMx_GRPy_CNTz_INTR” register. When the counter is set to "0" by the reload signal, it matches the compare value. Therefore, a compare match interrupt is generated as shown below. ('x' signifies the TCPWM instance number, 'y' is the group number and 'z' is the counter in the respective TCPWM group.)

 

pastedImage_14.png

 

Note that Interrupts are counter mode specific and can be generated for a Terminal Count (TC) or Compare/Capture0/1 (CC0/1) event.

For more details, see the "Timer, Counter, and PWM" section in the corresponding the Technical Reference Manual:

 

Note: This KBA applies to the following series of Traveo II MCUs:

  • CYT2B Series
  • CYT4B Series
  • CYT4D Series
0 Likes
511 Views