Datasheet

Key Wakeup Registers
MC68HC812A4 Data Sheet, Rev. 7
Freescale Semiconductor 97
9.2.9 Port J Data Register
Read: Anytime
Write: Anytime
Port J is associated with key wakeup J. Key wakeups can be used with the pins designated as inputs or
outputs. DDRJ determines whether each pin is an input or output.
9.2.10 Port J Data Direction Register
Determines direction of each port J pin.
DDRJ7–DDRJ0 — Data Direction Port J Bits
1 = Associated pin is an output.
0 = Associated pin is an input.
9.2.11 Port J Key Wakeup Interrupt Enable Register
Read: Anytime
Write: Anytime
An interrupt is generated when a bit in the KWIFJ register and its corresponding KWIEJ bit are both set.
These bits correspond to the pins of port J. All eight bits/pins share the same interrupt vector.
KWIEJ7–KWIEF0 — Key Wakeup Port J Interrupt Enable Bits
1 = Interrupt for the associated bit is enabled.
0 = Interrupt for the associated bit is disabled.
Address: $0028
Bit 7654321Bit 0
Read:
PJ7 PJ6 PJ5 PJ4 PJ3 PJ2 PJ1 PJ0
Write:
Reset:00000000
Alternate pin function: KWJ7 KWJ6 KWJ5 KWJ2 KWJ4 KWJ2 KWJ1 KWJ0
Figure 9-9. Port J Data Register (PORTJ)
Address: $0029
Bit 7654321Bit 0
Read:
DDRJ7 DDRJ6 DDRJ5 DDRJ4 DDRJ3 DDRJ2 DDRJ1 DDRJ0
Write:
Reset:00000000
Figure 9-10. Port J Data Direction Register (DDRJ)
Address: $002A
Bit 7654321Bit 0
Read:
KWIEJ7 KWIEJ6 KWIEJ5 KWIEJ4 KWIEJ3 KWIEJ2 KWIEJ1 KWIEJ0
Write:
Reset:00000000
Figure 9-11. Port J Key Wakeup Interrupt Enable
Register (KWIEJ)