Enhanced Modular I/O Subsystem (eMIOS200)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
26-30
Freescale Semiconductor
Preliminary
Figure 26-27. OPWFMB Mode with A1 = 0 (0% duty cycle)
describes the timing for the A1 and B1 registers load. The A1 and B1 load use the same signal
which is generated based on the selected counter reaching the value one, or EMIOS_CCNTR[n] = 1. This
event is defined as the cycle boundary. The load signal pulse has the duration of one system clock cycle
and occurs at the first system clock period of every counter cycle. If A2 and B2 are written within cycle
(n), their values are loaded into A1 and B1, respectively, at the first clock of cycle (n+1) and the new values
are used for matches at cycle (n+1). The update disable bits OUDIS[n] can be used to control the update
of these registers, thus allowing to delay the A1 and B1 registers update for synchronization purposes.
it is assumed that the channel and global prescalers are set to one, meaning that the channel
internal counter transition at every system clock cycle. FLAGs can be generated only on B1 matches when
MODE[5] is cleared, or on either A1 or B1 matches when MODE[5] is set. Because B1 FLAG occurs at
the cycle boundary, this flag can be used to indicate that A2 or B2 data written on cycle (n) were loaded to
A1 or B1, respectively, thus generating matches in cycle (n+1).
1
4
5
A1 Value 0x000004
A1 Match
A1 Match Negedge
Output Pin
EMIOS_CCNTR
Time
B1 Match Negedge Detection
B1 Match
B1 Match Negedge
B1 Value 0x000008
System Clock
Prescaler
A2 Value
0x000000
0x000000
A1 Match Posedge
A1 Match Posedge Detection
No Transition at this Point
1
Cycle n
Cycle n+1
Detection
Detection
Detection
A1 Match
Negedge
Detection
EDPOL = 0
Write to A2