Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

MC9S08AW16 View Datasheet(PDF) - Freescale Semiconductor

Part Name
Description
MFG CO.
MC9S08AW16
Freescale
Freescale Semiconductor Freescale
'MC9S08AW16' PDF : 324 Pages View PDF
Chapter 6 Parallel Input/Output
6.7.13 Port G I/O Registers (PTGD and PTGDD)
Port G parallel I/O function is controlled by the registers listed below.
7
R
W
Reset
0
6
PTGD6
5
PTGD5
4
PTGD4
3
PTGD3
2
PTGD2
0
0
0
0
0
Figure 6-39. Port G Data Register (PTGD)
1
PTGD1
0
0
PTGD0
0
Table 6-32. PTGD Register Field Descriptions
Field
Description
6:0
PTGD[6:0]
Port G Data Register Bits — For port G pins that are inputs, reads return the logic level on the pin. For port G
pins that are configured as outputs, reads return the last value written to this register.
Writes are latched into all bits of this register. For port G pins that are configured as outputs, the logic level is
driven out the corresponding MCU pin.
Reset forces PTGD to all 0s, but these 0s are not driven out the corresponding pins because reset also
configures all port pins as high-impedance inputs with pullups disabled.
7
R
W
Reset
0
6
PTGDD6
5
PTGDD5
4
PTGDD4
3
PTGDD3
2
PTGDD2
0
0
0
0
0
Figure 6-40. Data Direction for Port G (PTGDD)
1
PTGDD1
0
0
PTGDD0
0
Table 6-33. PTGDD Register Field Descriptions
Field
Description
6:0
Data Direction for Port G Bits — These read/write bits control the direction of port G pins and what is read for
PTGDD[6:0] PTGD reads.
0 Input (output driver disabled) and reads return the pin value.
1 Output driver enabled for port G bit n and PTGD reads return the contents of PTGDn.
MC9S08AW60 Data Sheet, Rev 2
106
Freescale Semiconductor
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]