Jump to content

Recommended Posts

Posted (edited)

I'm using the STM32 version of the Core32 and I'm getting stuck on implementing the general I/O expander MCP23S17. My goal is to use this over SPI on J19 to monitor inputs on an 8x8 switch matrix. One of the cool features of the MCP23S17, is that it has interrupts on either the row or column side (PORT A or PORT B). I'd like to be able to only cycle through the matrix only when the interrupt flag has been raised to help with performance.

I know I can always use the tried and true method of a DIO_MATRIX module, but I'm trying to reduce the component count and make a board that is single side friendly.

Any thoughts on free pins that can be used as an interrupt? I'll be using J8/J9 for a few DIN and DOUTs and J15 for LCD.

Edited by Digineural
Posted

Forget it, just RTFM. Interrupts are a complicated beast on the STM32 will likely require some work in FreeRTOS that is beyond the scope of doing something easily. I'll just scan the matrix

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...