Enhanced Modular I/O Subsystem (eMIOS200)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor
26-25
Preliminary
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 26-20. Double Action Output Compare with FLAG Set on the Second Match
Figure 26-21. Double Action Output Compare with FLAG Set on Both Matches
26.5.1.1.7
Modulus Counter Buffered (MCB) Mode
The MCB mode provides a time base that can be shared with other channels through the internal counter
buses. Register A1 is double buffered thus allowing smooth transitions between cycles when changing A2
register value. A1 register is updated at the cycle boundary, which is defined as when the internal counter
reaches the value one. The internal counter values are within a range from one up to register A1 value in
MCB mode. The internal counter must not reach 0x0 as consequence of a rollover.To avoid this the user
must start MCB only if the value stored at internal counter is fewer than the value that EMIOS_CADR
register stores.
Selected
Counter Bus
FLAG
Set Event
A1 Match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
EMIOS_CADR[n] = A1
2
EMIOS_CBDR[n] = B1
B1 Match
B1 Match
0xxxxxxx 0x001100
0x001100
0x001100
A1 Match
Update to
A1 & B1
Output
Flip-Flop
A1 Value
1
B1 Value
2
A2 = A1 according to OU[n] bit
B2 = B1 according to OU[n] bit
0x000500
0x001000
0x001100
0x001000
0x001100
MODE[6] = 0
Selected
Counter Bus
FLAG
Set Event
A1 Match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
EMIOS_CADR[n] = A1
2
EMIOS_CBDR[n] = B1
B1 Match
B1 Match
0xxxxxxx 0x001100
0x001100
0x001100
A1 Match
Update to
A1 & B1
Output
Flip-Flop
A1 Value
1
B1 Value
2
A2 = A1 according to OU[n] bit
B2 = B1 according to OU[n] bit
0x000500
0x001000
0x001100
0x001000
0x001100
MODE[6] = 1