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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/31/06 07:28
Read: times


 
#117340 - Basics
Responding to: ???'s previous message
Arvind Shrivastava said:
Respected All,
Please any 1 can help me

It would be respectful to refrain from such laziness as writing "any 1" for "anyone"
Unless you have some physical disability that impairs your use of the keyboard, or if you actually are composing this on a telephone keypad, please make the basic effort and common courtesy to write complete words

sending #11111001b to PORT will display numeric 1 or alphabet 'E' ...

That depends entirely on how the device is connected to the port!

It is used in two ways ... common cathode and common anode ...
But I am not getting the differnce ...

This would be clearly illustrated in the Data Sheets for the devices.

http://www.8052.com/forum/read.phtml?id=116601

A single-digit 7-Segment display consists of a total of 8 or 9 individual LEDs (one for each segment, plus one or two decimal points).
In a common-cathode display, the cathodes are all connected together - they are common. The anodes have individual connections.
Therefore, you connect the single, common, cathode terminal to GND and apply positive voltage to the appropriate anode terminal(s) to get the corresponding segment(s) to light up thus giving the required display character.

In a common-anode display, the anodes are all connected together - they are common. The cathodes have individual connections.
Therefore, you connect the single, common, anode terminal to a positive voltage and ground the appropriate cathode terminal(s) to get the corresponding segment(s) to light up thus giving the required display character.

Of course, each segment requires a current-limit (eg, series resistor) - as for any LED.

Since a standard 8051 port has open-collector drivers, a common-anode display makes most sense for direct connection - but be sure to observe the pin, port, and device current limits.
http://www.8052.com/forum/read.phtml?id=116449


and how to write the code to diplay the numbers from 0 to 9 in assembly language

You should now be in a position to do that!


List of 16 messages in thread
TopicAuthorDate
7 segment display            01/01/70 00:00      
   Basics            01/01/70 00:00      
      More guidelines            01/01/70 00:00      
         More Basics            01/01/70 00:00      
         Not at all            01/01/70 00:00      
      per-pin, per-port, and whole-chip limits            01/01/70 00:00      
   some of the answers?            01/01/70 00:00      
   Didn't search first            01/01/70 00:00      
      Quiz question            01/01/70 00:00      
         answer            01/01/70 00:00      
         it's usually a background task            01/01/70 00:00      
            Yes, but...            01/01/70 00:00      
               It's a good place to start.            01/01/70 00:00      
                  Base on posts, timing seems to be            01/01/70 00:00      
                     Timing            01/01/70 00:00      
                        Yes, it looks like homework            01/01/70 00:00      

Back to Subject List