MCP23016 speed question, buttons and a 20x4 LCD
Bits
Posts: 414
Currently I am running the MCP23016 to a 20x4 LCD and its working pretty good, I did have to fudge some things in my object to make it work decent. With spin I get a good looking simple screen as long as I don't update every character quickly it works.
I wanted to know if you think it could also run a 2x3 matrix of buttons? I only ask because the display requires some time to update, I have already seen flickering if I change an entire line of the display rapidly. I think this is because I borrowed an object and modified it a lot. The buttons require denouncing time as well so keep this in mind.
I will set up a prototype but in case I get a snag I wanted to ask. I also want to read the screen using this I/O IC but that's another day.
I wanted to know if you think it could also run a 2x3 matrix of buttons? I only ask because the display requires some time to update, I have already seen flickering if I change an entire line of the display rapidly. I think this is because I borrowed an object and modified it a lot. The buttons require denouncing time as well so keep this in mind.
I will set up a prototype but in case I get a snag I wanted to ask. I also want to read the screen using this I/O IC but that's another day.
Comments
No problem. Simply kick off another cog with a few I/O lines to create an N*M matrix scan array. Won't slow display cog (but better if you bumped it off into its own cog though). If it is in the main cog and just keeping up, added functions may degrade the display performance. The prop ed manual shows how to do multiple cogs. There is also a 74 series chip that will do the scan function for you. Be sure th allow for debounce of switches.
Good luck,
FF
Ooooppps, never mind, crossed out of prop forum. Sorry 'bout that.