s908ey8ad4cfjer Freescale Semiconductor, Inc, s908ey8ad4cfjer Datasheet - Page 115

no-image

s908ey8ad4cfjer

Manufacturer Part Number
s908ey8ad4cfjer
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Chapter 12
Input/Output (I/O) Ports (PORTS)
12.1 Introduction
Twenty-four bidirectional input/output (I/O) pins form five parallel ports. All I/O pins are programmable as
inputs or outputs.
12.2 Port A
Port A is a 7-bit general-purpose bidirectional I/O port that shares pin functions with the serial peripheral
interface (SPI) and keyboard (KBD) modules.
12.2.1 Port A Data Register
The port A data register contains a data latch for each of the seven port A pins.
PTA[6:0] — Port A Data Bits
12.2.2 Data Direction Register A
Data direction register A determines whether each port A pin is an input or an output. Writing a 1 to a
DDRA bit enables the output buffer for the corresponding port A pin; a 0 disables the output buffer.
Freescale Semiconductor
These read/write bits are software programmable. Data direction of each port A pin is under the control
of the corresponding bit in data direction register A. Reset has no effect on port A data.
Alternative Function:
Connect any unused I/O pins to an appropriate logic level, either V
V
termination reduces excess current consumption and the possibility of
electrostatic damage.
SS
Address:
. Although the I/O ports do not require termination for proper operation,
Reset:
Read:
Write:
$0000
Bit 7
MC68HC908EY16 • MC68HC908EY8 Data Sheet, Rev. 10
0
Figure 12-1. Port A Data Register (PTA)
= Unimplemented
PTA6
SS
6
SPSCK
PTA5
5
NOTE
Unaffected by reset
KBD4
PTA4
4
PTA3
KBD3
3
PTA2
KBD2
2
PTA1
KBD1
DD
1
or
PTA0
KBD0
Bit 0
115

Related parts for s908ey8ad4cfjer