
M451
May. 4, 2018
Page
468
of
1006
Rev.2.08
M4
51
S
E
RI
E
S
T
E
CH
NICA
L RE
F
E
R
E
NC
E
M
A
NU
A
L
When the rising edge at channel n is detected, the corresponding bit CRLIFn (PWM_CAPIF[5:0])
is set by hardware. Similarly, a falling edge detection at chnnel n causes the corresponding bit
CFLIFn (PWM_CAPIF[13:8]) set by hardware. CRLIFn and CFLIFn can be cleared by software by
writing
‘1’. If the CRLIFn is set and the CAPRIENn is enabled, the capture function generates an
interrupt. If the CFLIFn is set and the CAPFIENn is enabled, the interrupt also happens.
A condition which is not shown in this figure is: if the rising latch happens again when the CRLIF
is already set, the Over run status CRLIFOVn (PWM_CAPSTS[5:0]) will be set to 1 by hardware
to indicate the CRLIF overrunning. Also, if the falling latch happens again, the same hardware
operation occurs for the interrupt flag CFLIF and the Over run status CFLIFOVn
(PWM_CAPSTS[13:8]).
Note:
n denotes 0 to 5
8
7
6
5
4
3
2
1
8
7
6
5
PWM counter
1
7
Capture Input
PWM_FCAPDATn
5
PWM_RCAPDATn
Capture interrupt
CAPFIENn
CAPRIENn
CAPINENn
Clear by S/W
CFLIFn
CRLIFn
Reload (PERIOD = 8)
Reload
Clear by S/W
Falling Latch
Falling Latch
Rising Latch
FCRLDENn
RCRLDENn
Figure 6.9-42 Capture Operation Waveform
The capture pulse width can be calculated accorting to the following formula:
For the negative pulse case, the channel low pulse width is calculated as (PWM_P 1 -
PWM_RCAPDATn). In Figure 6.9-42, the low pulse width is 8+1-5 = 4
For the positive pulse case, the channel high pulse width is calculated as (PWM_P 1 -
PWM_FCAPDATn). In Figure 6.9-42, the high pulse width is 8+1-7 = 2
Содержание ARM Cortex NuMicro M451 Series
Страница 301: ...M451 May 4 2018 Page 301 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL...
Страница 324: ...M451 May 4 2018 Page 324 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL Figure 6 4 18 Checksum Calculation Flow...
Страница 355: ...M451 May 4 2018 Page 355 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL 2 0 Reserved Reserved...
Страница 625: ...M451 May 4 2018 Page 625 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL 00 5 bits 01 6 bits 10 7 bits 11 8 bits...
Страница 721: ...M451 May 4 2018 Page 721 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL the SCL line 1 0 Reserved Reserved...
Страница 1001: ...M451 May 4 2018 Page 1001 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL LQFP 64L 10x10x1 4 mm footprint 2 0 mm 9 2...
Страница 1002: ...M451 May 4 2018 Page 1002 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL LQFP 64L 7x7x1 4 mm footprint 2 0 mm 9 3...
Страница 1003: ...M451 May 4 2018 Page 1003 of 1006 Rev 2 08 M451 SERIES TECHNICAL REFERENCE MANUAL LQFP 48L 7x7x1 4mm footprint 2 0mm 9 4...