Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

STM32VL Discovery , Problems with 4x4 keypad with LCD2 x16

Status
Not open for further replies.

Marouene joe

New Member
Hello
My 4x4 keypad had been connected to µC STM32VL GPIOA (PA0 --> PA70).
I want to know how it work .
Please any suggesion on code an principe can help me .
Thank's
:confused:
 
I have no idea on your specific application, but judging from the number of pins it uses it sounds like the classic row and column method.

A logical one is shifted along the rows and between shifts the micro checks the corresponding column inputs for that row, if a switch is made it pulls the input to the micro down against its pullup resistor.
the micro then shifts the bit and checks the inputs on the nest column, this happens on all 4 columns and then the whole process is repeated at something like 50 times a second, fast enough not to miss a keypress but not so fast as to pick up any key bounce.
Instead of shifting the 1 along the rows, some do the reverse and shift the 1 along the columns.

The idea is to reduce the number of input pins.
 
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top