Shop OBEX P1 Docs P2 Docs Learn Events
MCP23008 vs PCF8574 as 4x4 Keypad interface - interrupts — Parallax Forums

MCP23008 vs PCF8574 as 4x4 Keypad interface - interrupts

Ron CzapalaRon Czapala Posts: 2,418
edited 2014-04-23 14:18 in General Discussion
Has anyone utilized the interrupt capabilities of these two chips (or their brethren)?

The Microchip site has an informative Application note regarding Interfacing a 4x4 Matrix Keypad with an 8-Bit GPIO Expander

The datasheet for the PCF8574 states that "Interrupts that occur during the acknowledge clock pulse can be lost (or be very short) due to the resetting of the interrupt during this pulse"
while the MCP23008 datasheet states:
The interrupt output can be configured to activate under two conditions (mutually exclusive):

1. When any input state differs from its corresponding input port register state, this is used to indicate to the system master that an input state has changed.

2. When an input state differs from a preconfigured register value (DEFVAL register).



It's interrupt capabilities seem more robust since it is configurable using it's registers.


Datasheets
MCP23008 http://ww1.microchip.com/downloads/en/DeviceDoc/21919e.pdf
PCF8574 http://www.ti.com/lit/ds/symlink/pcf8574.pdf

Any code examples using the interrupt capabilities of either chip would be appreciated.

I ordered one PCF8574 and several MCP23008 chips from DigiKey

Comments

Sign In or Register to comment.