Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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

List of 25 messages in thread
TopicAuthorDate
how to use buffer or stack to store digits            01/01/70 00:00      
   many question            01/01/70 00:00      
   Stack            01/01/70 00:00      
   use register as a pointer to a table            01/01/70 00:00      
      How many segments?            01/01/70 00:00      
         you seldom need to use both ...            01/01/70 00:00      
            Not as DP, but...            01/01/70 00:00      
               sorry ... double post            01/01/70 00:00      
               Why would you want those?            01/01/70 00:00      
                  example            01/01/70 00:00      
      Timer interrupt and segments in RAM            01/01/70 00:00      
         many words about two lousy microseconds            01/01/70 00:00      
            Lousy microseconds            01/01/70 00:00      
               Wholehardely agree            01/01/70 00:00      
                  Burning stack bytes            01/01/70 00:00      
                     you need to read "the bible"            01/01/70 00:00      
                        Not entirely true            01/01/70 00:00      
                     Table lookup in 'C'            01/01/70 00:00      
                        Why tables can be costly on C            01/01/70 00:00      
                           Well, If you abuse the tools...            01/01/70 00:00      
                           if we consider this off topic, you may be correct            01/01/70 00:00      
                              Not even then?            01/01/70 00:00      
                                 Another thread, please            01/01/70 00:00      
                                    And the new thread is...            01/01/70 00:00      
   Example on driving 7-segment displays            01/01/70 00:00      

Back to Subject List