AN2372 Freescale Semiconductor / Motorola, AN2372 Datasheet - Page 6

no-image

AN2372

Manufacturer Part Number
AN2372
Description
Using the Output Compare TPU Function (OC) with the MPC500Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
CHANNEL_CONTROL
4.1
CHANNEL_CONTROL contains the channel latch controls and configures the PSC, PAC, and TBS fields.
The PSC field determines the initial pin level. For an output channel, the PAC field specifies the pin logic
response when the match event occurs. The TBS field configures a channel pin as input or output and
configures the time base for match or capture events.
The OC function is normally configured only as an output channel. It is not intended for channels con-
figured for input. The function operates as described concerning generation of interrupts and use of
parameters, etc., when programmed as an input channel; however, the CPU cannot discern whether a
received interrupt is due to an input capture event or a match event.
The following table defines the allowable data for this parameter.
6
15
Channel
Number
CHANNEL_CONTROL
10
12
13
14
15
11
14
Table 1. TPU Channel Parameter RAM CPU Address Map (continued)
13
NOT USED
0x30YY##
0x30YY##
0x30YY##
0x30YY##
0x30YY##
0x30YY##
Address
12
Base
Freescale Semiconductor, Inc.
For More Information On This Product,
Using the Output Compare TPU Function
11
Figure 4. Parameter RAM Assignment
10
Go to: www.freescale.com
C0
D0
A0
B0
E0
F0
0
9
A2
B2
C2
D2
E2
F2
1
8
A4
B4
C4
D4
E4
F4
2
7
Parameter Address
TBS
C6
D6
A6
B6
E6
F6
3
6
5
A8
B8
C8
D8
E8
F8
4
4
AA
BA
CA
DA
EA
FA
5
PAC
3
AC
BC
CC
DC
EC
FC
6
2
MOTOROLA
1
PSC
AE
BE
CE
DE
EE
FE
7
0

Related parts for AN2372