MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
17-32
Freescale Semiconductor
At any time, the EMIOS_CCR
n
[FORCMA] and EMIOS_CCR
n
[FORCMB] bits allow the software to
force the output flip-flop to the level corresponding to a comparison event in comparator A or B,
respectively. Note that the FLAG bit is not affected by these forced operations.
NOTE
If both registers (A1 and B1) are loaded with the same value, the unified
channel behaves as if a single match on comparator B had occurred; that is,
the output flip-flop will be set to the complement of EDPOL bit and the
FLAG bit is set.
and
show how the unified channel can be used to generate a single output pulse
with FLAG bit being set on the second match or on both matches, respectively.
Figure 17-20. Double Action Output Compare with FLAG Set on the Second Match
Figure 17-21. Double Action Output Compare with FLAG Set on Both Matches
Selected
Counter Bus
FLAG
Set Event
A1 Match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
Writing EMIOS_CADR
n
writes to
A1.
2
Writing EMIOS_CBDR
n
writes to
B1.
MODE[6] = 0
B1 Match
B1 Match
0xxxxxxx 0x001100
0x001100
0x001100
A1 Match
Update to
A1 & B1
Output
Flip-Flop
A1 Value
1
B1 Value
2
A2
value transferred to
A1 according to OU
n
bit.
B2
value transferred to
B1 according to OU
n
bit.
0x000500
0x001000
0x001100
0x001000
0x001100
Selected
Counter Bus
FLAG
Set Event
A1 Match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
Writing EMIOS_CADR
n
writes to
A1.
2
Writing EMIOS_CBDR
n
writes to
B1.
MODE[6] = 1
B1 Match
B1 Match
0xxxxxxx 0x001100
0x001100
0x001100
A1 Match
Update to
A1 & B1
Output
Flip-Flop
A1 Value
1
B1 Value
2
A2
value transferred to
A1 according to OU
n
bit.
B2
value transferred to
B1 according to OU
n
bit.
0x000500
0x001000
0x001100
0x001000
0x001100
Содержание 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...