ST72251 Keypad Decoding Techniques Application Note

This application note presents an example of the use of the HALT mode. In this application, the MCU (here a ST72251) is waked up by an external interrupt caused by someone pressed a key on the 4x4 matrixed keypad.


ST72251 Keypad Decoding Techniques Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
11
File format
PDF
File size
58 KB
Published
09 August, 2012
Updated
30 September, 2023
Model
ST7
MD5 checksum
F0B2530C56FFAB1FC4AE7577E510633D

About this manual

The document presents an example application where the ST72251 microcontroller is woken up from HALT mode by an external interrupt triggered by a key press on a 4x4 matrix keypad. The MCU decodes the pressed key and outputs the result on LEDs before returning to the low-power state.

The note details the hardware configuration, including connecting rows to Port C (inputs with pull-up and interrupts) and columns to Port A (outputs). It also provides the specific assembly code required to initialize the ports, manage the HALT mode, and execute the key decoding algorithm.

What's inside

  • Introduction
  • ST7 / Keyboard Interface
  • ST72251 Configuration
  • Halt Mode
  • External Interrupts
  • Keypad Matrix
  • Flowcharts
  • Software Code

Specifications

Microcontroller ModelST72251
Keypad Type4x4 matrixed keypad
Wake-up TriggerExternal interrupt caused by key press
Power ModeHALT mode
Row ConfigurationInputs with pull-up and interrupts
Column ConfigurationPort A configured as output
Interrupt EdgeFalling edge only
Minimum Key Press Duration0.5 to 1 second

Frequently asked questions

How is the ST72251 woken up in this application?

The MCU is woken up by an external interrupt caused by a key press on the keypad.

What mode does the microcontroller enter to save power?

The microcontroller enters HALT mode, which is its lowest power consumption mode.

How are the rows and columns of the keypad connected?

Rows are connected to Port C as inputs with pull-up and interrupts, while columns are connected to Port A as outputs.

Download PDF (58 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →