AN2372 Freescale Semiconductor / Motorola, AN2372 Datasheet - Page 16

no-image

AN2372

Manufacturer Part Number
AN2372
Description
Using the Output Compare TPU Function (OC) with the MPC500Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Example C
8.2.3
8.3
8.3.1
This example uses OC in host-initiated pulse mode to generate an output pulse similar to that shown in
Figure 1a. The duration of the hightime is approximately 16.4 ms. Channel 0 is assigned the OC function.
CHANNEL_CONTROL is initialized to force the initial pin state high and to force the pin state low when
a match occurs. The previous pin level is assumed to be low.
OFFSET is initialized to 0x2000 TCR clock counts. This is the duration of the pulse hightime.
REF_ADDR1 is initialized to 0xEC. This points it to the address 0x3041EC, which contains the most re-
cent value of TCR1.
The host service request field should be set to %01, host-initiated pulse.
8.3.2
Load parameter RAM as shown.
16
0xYFFF30
0xYFFF32
0xYFFF34
0xYFFF36
0xYFFF38
0X30412A
Example C
Output Waveforms
Description
Initialization
X
X
X
0
0
0
X
X
0
0
0
Freescale Semiconductor, Inc.
X
X
X
0
1
0
For More Information On This Product,
Using the Output Compare TPU Function
T a b l e 9 . O C C h a n n e l P a r a m e t e r R A M
X
X
X
0
0
0
Go to: www.freescale.com
X
X
X
0
0
1
X
X
X
0
0
0
0
X
0
1
X
X
X
X
X
0
0
0
1
X
0
0
X
X
X
X
X
0
0
0
X
X
X
0
0
0
X
X
X
0
0
0
X
X
X
1
0
0
0
X
1
1
X
X
MOTOROLA
1
X
0
0
X
X
X
X
X
0
0
0

Related parts for AN2372