XC68HC05P18A Motorola, XC68HC05P18A Datasheet - Page 60

no-image

XC68HC05P18A

Manufacturer Part Number
XC68HC05P18A
Description
HCMOS Microcontroller Unit
Manufacturer
Motorola
Datasheet
Input/Output (I/O) Ports
7.7 I/O Port Programming
Technical Data
60
Each pin on ports A through port D, with the exception of pin 7 of port D,
may be programmed as an input or an output under software control as
shown in
The direction of a pin is determined by the state of its corresponding bit
in the associated port data direction register (DDR). A pin is configured
as an output if its corresponding DDR bit is set to a logic 1. A pin is
configured as an input if its corresponding DDR bit is cleared to a logic 0.
Note: Does not affect input, but stored to data register
Note: Does not affect input, but stored to data register
Note: Does not affect input, but stored to data register
DDRA
DDRB
DDRC
0
1
0
1
0
1
Table
I/O Pin Mode
I/O Pin Mode
I/O Pin Mode
In, Hi-Z
In, Hi-Z
In, Hi-Z
Input/Output (I/O) Ports
Out
Out
Out
7-1,
Table 7-1. Port A I/O Pin Functions
Table 7-2. Port B I/O Pin Functions
Table 7-3. Port C I/O Pin Functions
Table
to DDRA @ $0004
to DDRB @ $0005
to DDRC @ $0006
DDRC0–DDRC7
DDRC0–DDRC7
DDRA0–DDRA7
DDRA0–DDRA7
DDRB5–DDRB7
DDRB5–DDRB7
7-2,
Read/Write
Read/Write
Read/Write
Access
Access
Access
Table
7-3, and
to Data Register @ $0000
to Data Register @ $0001
to Data Register @ $0002
PC0–PC7
PB5–PB7
PA0–PA7
Table
I/O pin
I/O pin
I/O pin
Read
Read
Read
7-4.
Access
Access
Access
MC68HC05P18A
PB5–PB7
PC0–PC7
PA0–PA7
MOTOROLA
See note
See note
See note
Write
Write
Write

Related parts for XC68HC05P18A