MC68HC908GP32CB Freescale Semiconductor, MC68HC908GP32CB Datasheet - Page 106

no-image

MC68HC908GP32CB

Manufacturer Part Number
MC68HC908GP32CB
Description
IC MCU 32K FLASH 8MHZ 42-SDIP
Manufacturer
Freescale Semiconductor
Series
HC08r
Datasheet

Specifications of MC68HC908GP32CB

Core Processor
HC08
Core Size
8-Bit
Speed
8MHz
Connectivity
SCI, SPI
Peripherals
LVD, POR, PWM
Number Of I /o
33
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
42-DIP (0.600", 15.24mm)
For Use With
M68EVB908GP32 - BOARD EVALUATION FOR HC908GP32
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
Keyboard Interrupt (KBI) Module
10.4 Keyboard Operation
Writing to the KBIEx bits in the keyboard interrupt enable register (INTKBIER) independently enables or
disables each KBI pin. Enabling a keyboard interrupt pin also enables its internal pullup device
irrespective of PUEx bits in the input pullup enable register. A low applied to an enabled keyboard
interrupt pin latches a keyboard interrupt request.
The keyboard interrupt latch is set when one or more keyboard interrupt input goes low after all were high.
MODEK in the keyboard status and control register (INTKBSCR) controls the triggering mode of the
keyboard interrupt.
10.4.1 MODEK = 1
If MODEK is set, the keyboard interrupt inputs are both falling edge and low-level sensitive. With MODEK
set, both of the following actions must occur to clear a keyboard interrupt request:
The KBI vector fetch or software clear and the return of all enabled keyboard interrupt pins to a high level
may occur in any order.
Reset clears the keyboard interrupt request and MODEK, clearing the interrupt request even if a keyboard
interrupt input stays low.
10.4.2 MODEK = 0
If MODEK is clear, the keyboard interrupt pin is falling-edge sensitive only. A KBI vector fetch or software
clear immediately clears the KBI latch.
The keyboard flag bit (KEYF) in INTKBSCR can be read to check for pending interrupts. KEYF is not
affected by IMASKK, which makes it useful in applications where polling is preferred.
106
If the keyboard interrupt is edge-sensitive only, a falling edge on a keyboard interrupt input does
not latch an interrupt request if another keyboard pin is already low. To prevent losing an interrupt
request on one input because another input remains low, software can disable the latter input while
it is low.
If the keyboard interrupt is falling edge and low-level sensitive, an interrupt request is present as
long as any keyboard interrupt input is low.
Return of all enabled keyboard interrupt inputs to a high level. As long as any enabled keyboard
interrupt pin is low, the keyboard interrupt remains active.
Vector fetch or software clear. A KBI vector fetch generates an interrupt acknowledge signal to
clear the KBI latch. Software generates the interrupt acknowledge signal by writing a 1 to ACKK in
INTKBSCR. ACKK is useful in applications that poll the keyboard interrupt inputs and require
software to clear the KBI latch. Writing to ACKK prior to leaving an interrupt service routine can
also prevent spurious interrupts due to noise. Setting ACKK does not affect subsequent transitions
on the keyboard interrupt inputs. A falling edge that occurs after writing to ACKK latches another
interrupt request. If the keyboard interrupt mask bit, IMASKK, is clear, the CPU loads the program
counter with the KBI vector address.
Setting a keyboard interrupt enable bit (KBIEx) forces the corresponding
keyboard interrupt pin to be an input, overriding the data direction register.
However, the data direction register bit must be a 0 for software to read the
pin.
MC68HC908GP32 Data Sheet, Rev. 10
NOTE
Freescale Semiconductor

Related parts for MC68HC908GP32CB