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.

Max4456

Status
Not open for further replies.

pcleats

New Member
Hello,

I am currently trying to put together a 4X4 matrix switch using a Max 4456 with support hardware. It will be controlled a pic or other microcontroller. I am looking for some sample code that will help me get started.

Any help would be appericated.

Thanks

Patrick
 
There doesn't seem to be much to controlling the 4456. The datasheet seems fairly complete. Control is via 3 source bits, 4 output bits, a write bit and a latch bit. the datasheet even has some basic code. It shouldn't be too hard to do yourself.
 
philba, while it might be true that the programming seems stright foward to you its not to me. I am not a good programmer. I can make hardware stuff, but the programming gives me problems.

My intent is to use a 2 line lcd display with 4 different sections 8 pushbuttons to pick input and output as follows

* * * *
--------------------------------------
' out out out out '
' in in in in '
'--------------------------------------
* * * *

Thanks again for the help

Patrick
 
so, what you are asking for isn't how to set a bunch of data lines but how to glue all those pieces together? Do I have that right?

That's a completely different question.

You should decompose the problem. follow a system design methodology. Define the subsystems: button interface, lcd interface, switch interface, main controlling loop. Sketch it out so you have a general idea of program flow (check buttons, set switch, update lcd). define the data passed between subsystems. then drop to the next level and design each subsystem. then you will see the areas you need to investigate.

there is lots of example code but you might have to poke about to find it. button code can be found in a number of microchip apnotes (though not under switches or buttons - try "project" ap notes). LCD examples are all over the place.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top