English
Language : 

PXD10RM Datasheet, PDF (262/1332 Pages) Freescale Semiconductor, Inc – PXD10 Microcontroller
write to A2
system clock
prescaler
cycle n
cycle n+1
EMIOSCNT
1
A1 value
A2 value
B1 value
0x000004
0x000008
A1 match
A1 match posedge detection
A1 match negedge detection
4
0x000000
5
1
0x000000
TIME
match A1 negedge detection
match A1 posedge detection
B1 match
B1 match negedge detection
match B1 negedge detection
Prescaler ratio = 2
output pin
EDPOL = 0
no transition at this point
Figure 9-30. OPWFMB Mode with A1 = 0 (0% duty cycle)
Figure 9-31 describes the timing for the A1 and B1 registers load. The A1 and B1 load use the same signal
which is generated at the last system clock period of a counter cycle. Thus, A1 and B1 are updated
respectively with A2 and B2 values at the same time that the counter (EMIOSCNT[n]) is loaded with 0x1.
This event is defined as the cycle boundary. The load signal pulse has the duration of one system clock
period. If A2 and B2 are written within cycle n their values are available at 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
OU[n] of EMIOSOUDIS register can be used to control the update of these registers, thus allowing to
delay the A1 and B1 registers update for synchronization purposes.
In Figure 9-31 it is assumed that both the channel and global prescalers are set to 0x1 (each divide ratio is
two), meaning that the channel internal counter transitions at every four system clock cycles. FLAGs can
be generated only on B1 matches when MODE[5] is cleared, or on both A1 and B1 matches when
MODE[5] is set. Since 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.
Note that the FLAG has a synchronous operation, meaning that it is asserted one system clock cycle after
the FLAG set event.
9-36
PXD10 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
Freescale Semiconductor