ST AN3245 handbook

This document is a hardware and software guide for the STMPE1801 Xpander Logic™ 18-bit enhanced port expander with keypad controller. The product is a GPIO (general purpose input/output) port expander that can interface with a main digital ASIC via a two-line bidirectional bus (I2C). It offers the flexibility to be configured into a 10x8 matrix keypad controller for QWERTY keyboards and general purpose inputs/outputs. This document provides guidelines and information complementary to the STMPE1801 datasheet, which is necessary for the successful design of STMPE1801 in applications. The first part of the document highlights information on the hardware including external components/connectivity, power, etc. The second part of the document focuses on information regarding the software, in which programming sample codes are shown.


ST AN3245 handbook - cover page
Brand
STMicroelectronics
Category
Other Electronics
Document type
Application Note
Language
English
Pages
19
File format
PDF
File size
346 KB
Published
06 August, 2012
Updated
28 September, 2023
MD5 checksum
0057D81B84343E2AF9A5008DDABF7F02

About this manual

The document serves as a comprehensive guide for designing applications using the STMPE1801 Xpander Logic device. It details hardware configuration requirements such as external components, power sequencing, GPIO output modes (push-pull and open drain), and keypad controller settings for matrix and dedicated keys.

The second part of the note focuses on software implementation, offering a programming guide that covers I2C initialization, interrupt handling, keypad press/release detection, combination key logic, ghost key mitigation strategies, and power mode transitions.

What's inside

  • External components
  • RSTB pin recommendation
  • INTB pin recommendation
  • Power sequence (fail safe)
  • GPIO output configurations
  • Keypad controller (KPC)
  • Matrix keys and special function keys
  • Dedicated keys
  • Combination keys
  • Ghost keys handling

Specifications

Interface Bustwo-line bidirectional bus (I2C)
Matrix Keys CapacityUp to 10x8 (80) matrix keys
Special Function KeysUp to 8 special function keys
Dedicated KeysUp to 4 dedicated keys

Frequently asked questions

What are the GPIO output configurations available?

The device provides push-pull type outputs by default, but open drain outputs can be configured via software programming.

What is the recommended pull-up resistor value for RSTB?

A 10 kΩ pull-up resistor is recommended at the RSTB pin.

Download PDF (346 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →