MC68HC708AS48 FREESCALE [Freescale Semiconductor, Inc], MC68HC708AS48 Datasheet - Page 209

no-image

MC68HC708AS48

Manufacturer Part Number
MC68HC708AS48
Description
Advance Information
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
15.9.2 Data Direction Register G
MC68HC708AS48
MOTOROLA
NOTE:
Rev. 4.0
Address:
Data direction register G determines whether each port G pin is an input
or an output. Writing a logic 1 to a DDRG bit enables the output buffer
for the corresponding port G pin; a logic 0 disables the output buffer.
DDRG[2:0] — Data Direction Register G Bits
Avoid glitches on port G pins by writing to the port G data register before
changing data direction register G bits from 0 to 1.
Figure 15-19
Reset:
Read:
Write:
These read/write bits control port G data direction. Reset clears
DDRG[2:0], configuring all port G pins as inputs.
1 = Corresponding port G pin configured as output
0 = Corresponding port G pin configured as input
READ DDRG ($000E)
WRITE DDRG ($000E)
WRITE PTG ($000A)
READ PTG ($000A)
$000E
Bit 7
Figure 15-21. Data Direction Register G (DDRG)
R
R
0
0
shows the port G I/O logic.
Input/Output (I/O) Ports
= Reserved
R
6
0
0
Figure 15-22. Port G I/O Circuit
RESET
R
5
0
0
DDRGx
PTGx
R
4
0
0
R
3
0
0
DDRG2
2
0
Input/Output (I/O) Ports
Advance Information
DDRG1
1
0
DDRG0
Bit 0
Port G
0
PTGx
209

Related parts for MC68HC708AS48