s908gz60cfa Freescale Semiconductor, Inc, s908gz60cfa Datasheet - Page 173

no-image

s908gz60cfa

Manufacturer Part Number
s908gz60cfa
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
s908gz60cfaE
Manufacturer:
FREESCALE
Quantity:
1 780
Part Number:
s908gz60cfaE
Manufacturer:
FREESCALE
Quantity:
1 780
Part Number:
s908gz60cfaE
Manufacturer:
FREESCALE
Quantity:
8 000
Part Number:
s908gz60cfaE
Manufacturer:
FREESCALE
Quantity:
20 000
13.3 Port A
Port A is an 8-bit special-function port that shares all eight of its pins with the keyboard interrupt (KBI)
module and the ADC module. Port A also has software configurable pullup devices if configured as an
input port.
13.3.1 Port A Data Register
The port A data register (PTA) contains a data latch for each of the eight port A pins.
PTA7–PTA0 — Port A Data Bits
KBD7–KBD0 — Keyboard Inputs
AD15–AD8 — Analog-to-Digital Input Bits
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.
The keyboard interrupt enable bits, KBIE7–KBIE0, in the keyboard interrupt control register (KBICR)
enable the port A pins as external interrupt pins. See
AD15–AD8 are pins used for the input channels to the analog-to-digital converter module. The channel
select bits in the ADC status and control register define which port A pin will be used as an ADC input
and overrides any control from the port I/O logic by forcing that pin as the input to the analog circuitry.
Alternate Function:
Alternate Function:
Care must be taken when reading port A while applying analog voltages to
AD15–AD8 pins. If the appropriate ADC channel is not enabled, excessive
current drain may occur if analog voltages are applied to the
PTAx/KBDx/ADx pin, while PTA is read as a digital input during the CPU
read cycle. Those ports not selected as analog input channels are
considered digital I/O ports.
Address:
Reset:
Read:
Write:
MC68HC908GZ60 • MC68HC908GZ48 • MC68HC908GZ32 Data Sheet, Rev. 6
$0000
PTA7
KBD7
AD15
Bit 7
Figure 13-2. Port A Data Register (PTA)
PTA6
KBD6
AD14
6
PTA5
KBD5
AD13
5
NOTE
Unaffected by reset
KBD4
PTA4
AD12
4
Chapter 9 Keyboard Interrupt Module (KBI)
KBD3
PTA3
AD11
3
KBD2
PTA2
AD10
2
KBD1
PTA1
AD9
1
KBD0
PTA0
Bit 0
AD8
Port A
173

Related parts for s908gz60cfa