English
Language : 

MC9S12C Datasheet, PDF (81/680 Pages) Motorola, Inc – 16-Bit Microcontroller
2.3.2.1 Port T Registers
Chapter 2 Port Integration Module (PIM9C32) Block Description
2.3.2.1.1 Port T I/O Register (PTT)
Module Base + 0x0000
R
W
TIM
PWM
Reset
7
PTT7
IOC7
0
6
PTT6
5
PTT5
4
PTT4
3
PTT3
2
PTT2
IOC6
IOC5
IOC4
IOC3
IOC2
PWM4
PWM3
PWM2
0
0
0
0
0
= Unimplemented or Reserved
Figure 2-3. Port T I/O Register (PTT)
1
PTT1
IOC1
PWM1
0
0
PTT0
IOC0
PWM0
0
Read: Anytime.
Write: Anytime.
If the data direction bits of the associated I/O pins are set to 1, a read returns the value of the port register,
otherwise the value at the pins is read.
If a TIM-channel is defined as output, the related port T is assigned to IOC function.
In addition to the possible timer functionality of port T pins PWM channels can be routed to port T. For
this the Module Routing Register (MODRR) needs to be configured.
Table 2-3. Port T[4:0] Pin Functionality Configurations(1)
MODRR[x]
PWME[x]
TIMEN[x]
(2)
Port T[x] Output
0
0
0
General Purpose I/O
0
0
1
Timer
0
1
0
General Purpose I/O
0
1
1
Timer
1
0
0
General Purpose I/O
1
0
1
Timer
1
1
0
PWM
1
1
1
PWM
1. All fields in the that are not shaded are standard use cases.
2. TIMEN[x] means that the timer is enabled (TSCR1[7]), the related channel is
configured for output compare function (TIOS[x] or special output on a timer
overflow event — configurable in TTOV[x]) and the timer output is routed to the
port pin (TCTL1/TCTL2).
Freescale Semiconductor
MC9S12C-Family / MC9S12GC-Family
81
Rev 01.23