English
Language : 

MC68HC08GZ32 Datasheet, PDF (150/320 Pages) Freescale Semiconductor, Inc – Microcontrollers
Input/Output (I/O) Ports
Table 13-1. Port Control Register Bits Summary (Continued)
Port Bit
0
1
2
3
F
4
5
6
7
0
1
2
3
G
4
5
6
7
DDR
DDRF0
DDRF1
DDRF2
DDRF3
DDRF4
DDRF5
DDRF6
DDRF7
DDRG0
DDRG1
DDRG2
DDRG3
DDRG4
DDRG5
DDRG6
DDRG7
Module Control
TIM2
ELS2B:ELS2A
ELS3B:ELS3A
ELS4B:ELS4A
ELS5B:ELS5A
ADC
ADCH[23:16]
Module Control
—
—
—
—
Pin
PTF0
PTF1
PTF2
PTF3
PTF4/T2CH2
PTF5/T2CH3
PTF6/T2CH4
PTF7/T2CH5
PTG0/AD16
PTG1/AD17
PTG2/AD18
PTG3/AD19
PTG4/AD20
PTG5/AD21
PTG6/AD22
PTG7/AD23
13.3 Port A
Port A is an 8-bit special-function port that shares all eight of its pins with the keyboard interrupt (KBI)
module and the ADC module. Port A also has software configurable pullup devices if configured as an
input port.
13.3.1 Port A Data Register
The port A data register (PTA) contains a data latch for each of the eight port A pins.
Address:
Read:
Write:
Reset:
Alternate Function:
Alternate Function:
$0000
Bit 7
6
5
4
3
2
PTA7
PTA6
PTA5
PTA4
PTA3
PTA2
Unaffected by reset
KBD7
KBD6
KBD5
KBD4
KBD3
KBD2
AD15
AD14
AD13
AD12
AD11
AD10
Figure 13-2. Port A Data Register (PTA)
1
PTA1
KBD1
AD9
Bit 0
PTA0
KBD0
AD8
PTA7–PTA0 — Port A Data Bits
These read/write bits are software programmable. Data direction of each port A pin is under the control
of the corresponding bit in data direction register A. Reset has no effect on port A data.
KBD7–KBD0 — Keyboard Inputs
The keyboard interrupt enable bits, KBIE7–KBIE0, in the keyboard interrupt control register (KBICR)
enable the port A pins as external interrupt pins. See Chapter 9 Keyboard Interrupt Module (KBI)
MC68HC08GZ32 Data Sheet, Rev. 3
150
Freescale Semiconductor