English
Language : 

M0564LE4AE Datasheet, PDF (119/161 Pages) List of Unclassifed Manufacturers – 32-BIT MICROCONTROLLER
M0564
Edge Detect
Brake Source
BRKEIF1/0
(TIMERx_PWMINTSTS1[1:0])
BRKEIEN
(TIMERx_PWMINTEN1[0])
BRKLIF1/0
(TIMERx_PWMINTSTS1[9:8])
Edge Detect
Brake Interrupt
BRKx_INT
BRKLIEN
(TIMERx_PWMINTEN1[8])
Level Detect
Brake Interrupt
Level Detect
Brake Source
BRKLSTS0
(TIMERx_PWMINTSTS1[24])
BRKESTS0
(TIMERx_PWMINTSTS1[16])
BRKACT0 (TIMERx_PWMBRKCTL[17:16])
Low level
detection
PWMx_CH0
PWMx_CH1
BRKESTS1
(TIMERx_PWMINTSTS1[17])
BRKACT1 (TIMERx_PWMBRKCTL[19:18])
BRKLSTS1
(TIMERx_PWMINTSTS1[25])
Note:
denotes falling edge detect
Figure 6.17-17 Brake Event Block Diagram for PWMx_CH0 and PWMx_CH1
When the edge detector detects the brake signal, the brake function generates interrupt status for
PWMx_CH1/0 is BRKEIF1/0 (TIMERx_PWMINTSTS1[1:0]) and brake event status for
PWMx_CH1/0 is BRKESTS1/0 (TIMERx_PWMINTSTS1[17:16]). The interrupt status BRKEIF1/0
can be cleared by writing 1 to it, and the brake event status BRKESTS1/0 will keep until the next
PWM period starts when corresponding BRKEIF1/0 flag has been cleared and PWM generator
can resume normal output.
Figure 6.17-18 shows an example of edge detector brake waveform for PWMx_CH0 and
PWMx_CH1. In this case, the edge detect brake source has occurred twice for the brake events.
When the first brake event occurs, both of the BRKEIF0 and BRKEIF1 flags are set and
BRKESTS0 and BRKESTS1 status are also set to indicate brake state of PWMx_CH0 and
PWMx_CH1. For the first occurring event, user writes 1 to clear the BRKEIF0. After that, the
BRKESTS0 is cleared by hardware at the next start of the PWM period and the PWMx_CH0
outputs the normal waveform even though the edge brake event is still occurring. At the same
time, BRKESTS1 keep 1 and PWMx_CH1 keep outputs low in brake state. The second event
also triggers the same flags, but at this time, user writes 1 to clear the BRKEIF1. Afterward,
PWMx_CH1 outputs normally at the next start of the PWM period.
May 05, 2017
Page 119 of 161
Rev 1.00