English
Language : 

MC68HC08AB16A Datasheet, PDF (325/380 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Freescale Semiconductor, Inc.
Input/Output (I/O) Ports
Port G
Address: $000A
Bit 7
6
5
4
3
2
Read: 0
0
0
0
0
PTG2
Write:
Reset:
Unaffected by reset
Alternative Function:
KBD2
Figure 17-22. Port G Data Register (PTG)
1
PTG1
KBD1
Bit 0
PTG0
KBD0
PTG[2:0] — Port G Data Bits
These read/write bits are software programmable. Data direction of
each port G pin is under the control of the corresponding bit in data
direction register G. Reset has no effect on port G data.
KBD[2:0] — The keyboard interrupt enable bits, KBIE[2:0], in the
keyboard interrupt enable register (KBIER), enable the port G pins as
external interrupt pins. See Section 19. Keyboard Interrupt Module
(KBI).
17.9.2 Data Direction Register G (DDRG)
Data direction register G determines whether each port G pin is an input
or an output. Writing logic 1 to a DDRG bit enables the output buffer for
the corresponding port G pin; a logic 0 disables the output buffer.
Address:
Read:
Write:
Reset:
$000E
Bit 7
6
5
4
3
2
1
0
0
0
0
0
DDRG2 DDRG1
0
0
0
0
0
0
0
Figure 17-23. Data Direction Register G (DDRG)
Bit 0
DDRG0
0
MC68HC08AB16A — Rev. 2.0
MOTOROLA
Input/Output (I/O) Ports
For More Information On This Product,
Go to: www.freescale.com
Technical Data
325