English
Language : 

PXR40RM Datasheet, PDF (801/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
Enhanced Modular Input/Output Subsystem (eMIOS200)
MODE[6] = 1
EDPOL = 0
Cycle n
Selected
Counter Bus
0x000008
0x000006
0x000004
0x000002
0x000001
Due to B1 Match
Cycle (n – 1)
Output Pin
FLAG Set Event
Write to A2
Match A1
Cycle (n + 1)
Match A1
Write to B2
Match B1
Match B1
Write to A2
Cycle (n + 2)
Match B1
Time
Output Disable
A1 Value 0x000002
A2 Value 0x000002
B1 Value 0x000008
B2 Value 0x000008
0x000004
0x000004
0x000006
0x000006
0x000006
0x000006
Figure 23-55. OPWMB Mode with Active Output Disable
Figure 23-56 shows a waveform changing from 100% to 0% duty cycle. In this case, EDPOL is 0. In this
example, B1 is programmed to the same value as the period of the external selected time base.
EDPOL = 0
Prescaler = 1
Selected Cycle 1
Counter Bus
Cycle 2
Cycle 3
Cycle 4
Cycle 5
Cycle 6
Cycle 7
Cycle 8
Cycle 9
Output Pin
A1 Value
A2 Value
B1 Value
100%
0x000008
0x000007
0x000008
0x000007
0x000006
0x000006
0x000005
0x000005
0x000004
0x000004
0x000003
0x000003
0x000002
0x000002
0x000001
0x000001
0x000000
0%
0x000000
Time
Figure 23-56. OPWMB Mode from 100% to 0% Duty Cycle
In Figure 23-56, if B1 is set to a value lower than 0x00_0008, it is not possible to achieve 0% duty cycle
by changing only the A1 register value. Because B1 matches have precedence over A1 matches, the output
pin transitions to the opposite of EDPOL bit at B1 match. If B1 is set to 0x00_0009, for instance, B1 match
does not occur, thus a 0% duty cycle signal is generated.
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
23-61