Keil Logo

Peripheral Simulation

For NXP (founded by Philips) P89LPC931 — Keypad Interrupt

Simulation support for this peripheral or feature is comprised of:

  • Dialog boxes which display and allow you to change peripheral configuration.

These simulation capabilities are described below.

Keypad Interrupt Dialog

Keypad Interrupt

This dialog displays the SFR and pins of Keypad Interrupt (KBI) Dialog. The Keypad Interrupt function generates an interrupt when a pre-selected pattern occurs on Port 0.

Port 0

  • Pins represents the states of the pins on the simulated MCU. You may set the level of the input pin to high (1) or low (0).

Mask

  • KBMASK (Keypad Interrupt Mask Register) defines which pins are enabled to trigger the interrupt.

Pattern

  • KBPATN (Keypad Pattern Register) defines the pattern that is compared with Port 0.

Interrupt Flag & Pattern Polarity

  • KBKBIF (Keypad Interrupt Flag) is set when the pattern in the Keypad Pattern Register matches Port 0 for at least 6 CPU clock (CCLK) periods.
  • PATN_SEL (Pattern Matching Polarity) is set to require Port 0 to be equal to the KBPATN value to generate an interrupt. If reset, an interrupt will be generated when Port 0 is not equal to KBPATN.
Get more information about the
Peripheral Simulation Capabilities
of the µVision Debugger.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.