![Freescale Semiconductor MPC5553 Скачать руководство пользователя страница 668](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5553/mpc5553_reference-manual_2330655668.webp)
MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
Freescale Semiconductor
17-29
An output compare match can be simulated in software by setting the FORCMA bit in EMIOS_CCR
n
. In
this case, the FLAG bit is not set.
and
show how the unified channel can be used to perform a single output
compare with EDPOL value being transferred to the output flip-flop and toggling the output flip-flop at
each match, respectively.
Figure 17-16. SAOC Example with EDPOL Value Transferred to the Output Flip-flop
Figure 17-17. SAOC Example Toggling the Output Flip-flop
17.4.4.4.4
Input Pulse Width Measurement Mode (IPWM)
The IPWM mode allows the measurement of the width of a positive or negative pulse by capturing the
leading edge on register B1 and the trailing edge on register A2. Successive captures are done on
consecutive edges of opposite polarity. The leading edge sensitivity (that is, pulse polarity) is selected by
EDPOL bit in the EMIOS_CCR
n
. Registers EMIOS_CADR
n
and EMIOS_CBDR
n
return the values in
register A2 and B1, respectively.
Table 17-17. Mode of Operation: IPWM Mode
MODE[0:6]
Unified Channel Mode of Operation
0b0000100
Input Pulse Width Measurement Mode
Selected
Counter Bus
FLAG
Set Event
A1 Match
A1 Match
A1 Match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
0x000500
0x001000
0x001100
0x001000
0x001100
0x001000
EMIOS_CADR
n
writes to
A2.
A2
value transferred to
A1 according to OU
n
bit.
Update to
A1
EDSEL = 0
Output
Flip-Flop
EDPOL = 1
A1 Value
1
0x001000
Selected
Counter Bus
FLAG
Set Event
A1 Match
A1 Match
A1 Match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
0x000500
0x001000
0x001100
0x001000
0x001100
0x001000
EMIOS_CADR
n
writes to
A2.
A2
value transferred to
A1 according to OU
n
bit.
Update to
A1
EDSEL = 1
Output
Flip-Flop
EDPOL = x
A1 Value
1
0x001000
Содержание MPC5553
Страница 5: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 2 Freescale Semiconductor...
Страница 21: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 xvi Freescale Semiconductor...
Страница 47: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 1 26 Freescale Semiconductor...
Страница 163: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 4 20 Freescale Semiconductor...
Страница 179: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 5 16 Freescale Semiconductor...
Страница 561: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 13 38 Freescale Semiconductor...
Страница 615: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 14 54 Freescale Semiconductor...
Страница 707: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 17 68 Freescale Semiconductor...
Страница 755: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 18 48 Freescale Semiconductor...
Страница 873: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 19 118 Freescale Semiconductor...
Страница 984: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 Freescale Semiconductor 21 41...
Страница 985: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 21 42 Freescale Semiconductor...
Страница 1019: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 22 34 Freescale Semiconductor...
Страница 1129: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 25 90 Freescale Semiconductor...
Страница 1207: ...Revision History 4 Freescale Semiconductor...