mc68hc05j5ap Freescale Semiconductor, Inc, mc68hc05j5ap Datasheet - Page 47

no-image

mc68hc05j5ap

Manufacturer Part Number
mc68hc05j5ap
Description
General Description The Mc68hc05j5a Is A Member Of The Low-cost High-performance M68hc05 Family Of 8-bit Microcontroller Units Mcus . The M68hc05 Family Is Based On The Customer-speci Ed Integrated Circuit Design Strategy. All Mcus In The Family
Manufacturer
Freescale Semiconductor, Inc
Datasheet
7.2.3 Port A Pulldown/up Register
7.2.4 Port A Drive Capability
7.2.5 Port A I/O Pin Interrupts
REV 2.1
All Port A I/O pins may have software programmable pulldown/up devices enabled
by the applicable mask option. If the pulldown/up mask option is selected, the pull-
down/up is activated whenever the corresponding bit in the PDURA is clear. If the
corresponding bit in the PDURA bit is set or the mask option for pulldown/up is not
chosen, the pulldown/up will be disabled. A pulldown on an I/O pin is activated
only if the I/O pin is programmed as an input whereas a pullup device on an I/O
pin is always activated whenever enabled, regardless of port direction.
The PDURA is a write-only register. Any reads of location $0010 will return unde-
fined results. Since reset clears both the DDRA and the PDURA, all pins will ini-
tialize as inputs with the pulldown active and pullup devices active (if enabled by
mask option).
Typical value of port A pullup is 5K .
The outputs for the upper four bits of Port A (PA4, PA5, PA6 and PA7) are capable
of sinking approximately 8mA of current to V
The inputs to PA0, PA1, PA2, PA3 may be connected to the IRQ input of the CPU
if enabled by a mask option. The input to PA7 is also connected to the IRQ input of
the CPU, yet it is only enabled or disabled by software, not by mask option. PA7
interrupt capability is controlled by a set of control and status bits (IRQE1, IRQF1,
IRQR1), different from the set of control and status bits for that of PA0-PA3 and
IRQ pin (IRQE, IRQF, IRQR) in the same ICSR (Interrupt Control and Status Reg-
ister).
When connected as an alternate source of an IRQ interrupt, PA0-3 input pins will
behave the same as the IRQ pin itself, except that their active state is a logical one
or a rising edge. The IRQ pin has an active state that is a logical zero or a falling
edge. PA7 interrupt occurs, if enabled, only upon the falling edge at the input.
If mask options for both level and edge sensitivity interrupts are chosen, the pres-
ence of a logic one or occurrence of a rising edge on any one of the lower four
Port A pins will cause an IRQ interrupt request. If the edge-only sensitivity is
selected, the occurrence of a rising edge on any one of the lower four Port A pins
will cause an IRQ interrupt request. As long as any one of the lower four Port A
IRQ inputs remains at a logic one level, the other of the lower four Port A IRQ
inputs are effectively ignored.
The BIH and BIL instructions will only apply to the level on the IRQ pin itself, and
not to the internal IRQ input to the CPU. Therefore BIH and BIL cannot be used to
test the state of the lower four Port A input pins as a group nor that of PA7.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
INPUT/OUTPUT PORTS
July 16, 1999
NOTE
SS
.
GENERAL RELEASE SPECIFICATION
7-3

Related parts for mc68hc05j5ap