| ??? 12/02/07 17:54 Read: times |
#147738 - Example on driving 7-segment displays Responding to: ???'s previous message |
Hello Ali !
This link points to a project I made to control a kilowatt class power supply. The code is NOT for 8052 or alike (it is for AT90LS8535) but I thought it could serve as an example on how a multiplexed display can be driven on a microcontroller. The code is fully tested and 10 high power FET's literally evaporated during the process. The code is propably not the most efficient solution to this kind of a problem but I always prefer simplicity and brute force on my coding. Keeping this in mind - Eric has a lot of point in his comments and he is propably also right. Unfortunately our semantics related discussion has invaded Your thread - sorry about that. The system has 12 7-segment displays which are multiplexed by the interrupt code. The same multiplexing is also used to read a rotary switch. The code is mostly written in C so You should be able to read it. I also have a nasty habit of writing short (they should be longer) comments here and there. Hopefully You get the idea. Specially look for: Timer.c - the interrupt code Disp.c - Display buffer update routines |



