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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/18/06 23:47
Read: times


 
#116584 - Some advice
Responding to: ???'s previous message


Firstly, don't use 'u' for 'you' - it causes confusion as 'u' could also mean 'micro'. The same goes for the use of '2' for 'to'.

As an aside, can you explain to me why so many people from Pakistan and India do this? Do they teach this in schools? Or is it a side effect from using mobile (cell) phones?

Anyhow, your circuit concept is ok except that you need to be aware of the current capabilities of the cpu you are using. Also be aware that display brightness may be a problem - because you are multiplexing at 1:4 only 1/4 of the energy is available to each display so that directly affects brighness. This means you have to run more current to the display, so instead of running 15mA per segment, you might run 60mA (15mA * 4) and if you have 7 segments on, this can be 60mA * 7 = 420mA. Do your transistors have enough current gain and current ability for this? Also, the port pins may not be able to provide 60mA per pin. This may cause the cpu to get hot or more likely the port pin will not be able to pull to 0V strong enough - so you will not get good brightness. I would suggest using a ULN2003 or ULN2803 to drive the segments. For the transistors, something like a BD681 might be a good choice as it is darlington. By all means experiment, but be aware of what I have mentioned.

As for your software, try seting up a timer (0 or 1) to interrupt every 1mS (not critical). Each timer interrupt, output and select a digit. Therefore it takes 4 timer interrupts to output the four digits. This keeps on repeating so all you see is a constant display.

For the 7segment conversion, use a lookup table to convert a bcd number to the 7 segment. For example:

;
; A has the bcd number to convert to 7 segment
;
conv_sevenseg:
anl a,#0fh ;0nly 0..15 allowed
mov dptr,#seven_seg_table
movc a,@a+dptr ;a has the 7 segment value
ret

seven_seg_table:
db xxh ;for digit '0'
db ..
db ..
db ..
db .. do for all digits...

Have fun.









List of 35 messages in thread
TopicAuthorDate
multiplexing Direct Driv            01/01/70 00:00      
   not without buffers            01/01/70 00:00      
      yah            01/01/70 00:00      
         incomplete answer            01/01/70 00:00      
         200 mw 7seg, 89c51 uC            01/01/70 00:00      
      Current capabilities            01/01/70 00:00      
         ok i will use 15 mA of 7 seg            01/01/70 00:00      
            Think about it            01/01/70 00:00      
               Ghosting effect            01/01/70 00:00      
                  Yes, that's what I was thinking            01/01/70 00:00      
   how can i show my scimatic diagram            01/01/70 00:00      
      Newbie's Guide            01/01/70 00:00      
    please dear any one advise me            01/01/70 00:00      
      no one can            01/01/70 00:00      
      Some advice            01/01/70 00:00      
      Wrong way up!!            01/01/70 00:00      
         Common-Cathode and Common-Anode            01/01/70 00:00      
      Make a start            01/01/70 00:00      
   AT89c51            01/01/70 00:00      
   look up in the datasheet what is the max            01/01/70 00:00      
      i am using just for practice            01/01/70 00:00      
         I do not know what micro understands            01/01/70 00:00      
            how can its impossible            01/01/70 00:00      
               that's it            01/01/70 00:00      
                  :( i think i am so duffer            01/01/70 00:00      
                     that is not eben english            01/01/70 00:00      
                        ok now tel me that            01/01/70 00:00      
                           datasheet ?            01/01/70 00:00      
                           that does not matter            01/01/70 00:00      
                     English            01/01/70 00:00      
   you should be a novice like me            01/01/70 00:00      
      i will try my best for this mistakes :)            01/01/70 00:00      
         Internet is not SMS            01/01/70 00:00      
         some ideas            01/01/70 00:00      
            Eh???            01/01/70 00:00      

Back to Subject List