English
Language : 

MC68HC08AZ16 Datasheet, PDF (323/527 Pages) Motorola, Inc – HCMOS Microcontroller Unit
I/O Ports
Introduction
Forty-nine bidirectional input-output (I/O) pins form eight parallel ports.
All I/O pins are programmable as inputs or outputs.
NOTE:
Connect any unused I/O pins to an appropriate logic level, either VDD or
VSS. Although the I/O ports do not require termination for proper
operation, termination reduces excess current consumption and the
possibility of electrostatic damage.
Table 1. I/O port register summary
Register Name
Bit 7 6
5
4
3
2
1 Bit 0 Addr.
PortADataRegister(PTA) PTA7 PTA6 PTA5 PTA4 PTA3 PTA2 PTA1 PTA0 $0000
PortBDataRegister(PTB) PTB7 PTB6 PTB5 PTB4 PTB3 PTB2 PTB1 PTB0 $0001
PortCDataRegister(PTC) 0
0 PTC5 PTC4 PTC3 PTC2 PTC1 PTC0 $0002
PortDDataRegister(PTD) PTD7 PTD6 PTD5 PTD4 PTD3 PTD2 PTD1 PTD0 $0003
DataDirectionRegisterA(DDRA) DDRA7 DDRA6 DDRA5 DDRA4 DDRA3 DDRA2 DDRA1 DDRA0 $0004
DataDirectionRegisterB(DDRB) DDRB7 DDRB6 DDRB5 DDRB4 DDRB3 DDRB2 DDRB1 DDRB0 $0005
DataDirectionRegisterC(DDRC) MCLKEN 0 DDRC5 DDRC4 DDRC3 DDRC2 DDRC1 DDRC0 $0006
DataDirectionRegisterD(DDRD) DDRD7 DDRD6 DDRD5 DDRD4 DDRD3 DDR2 DDRD1 DDRD0 $0007
PortEDataRegister(PTE) PTE7 PTE6 PTE5 PTE4 PTE3 PTE2 PTE1 PTE0 $0008
PortFDataRegister(PTF) 0 PTF6 PTF5 PTF4 PTF3 PTF2 PTF1 PTF0 $0009
PortGDataRegister(PTG) 0
0
0
0
0 PTG2 PTG1 PTG0 $000A
PortHDataRegister(PTH) 0
0
0
0
0
0 PTH1 PTH0 $000B
DataDirectionRegisterE(DDRE) DDRE7 DDRE6 DDRE5 DDRE4 DDRE3 DDRE2 DDRE1 DDRE0 $000C
DataDirectionRegisterF(DDRF) 0 DDRF6 DDRF5 DDRF4 DDRF3 DDRF2 DDRF1 DDRF0 $000D
DataDirectionRegisterG(DDRG) 0
0
0
0
0 DDRG2 DDRG1 DDRG0 $000E
DataDirectionRegisterH(DDRH) 0
0
0
0
0
0 DDRH1 DDRH0 $000F
MC68HC08AZ32
322
I/O Ports
2--io
MOTOROLA