English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-06-28 17:25:57 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

using PIC 18F4520 , C programming language

2006-07-04 14:39:54 · update #1

2 answers

a 7 segment display consists of seven led segments

_
| |
--
| |
--

The above has 7 lines making it a 7-segment display. Each segment is a LED which is all different LEDs, meaning every bit you activate results in a new led... To activate the LED you have to set the bits corresponding to those led sequence..

To enable and disable a bit on the led you have to apply a mask. Depending on the microcontroller each way to represent it differs.

http://www.iguanalabs.com/7segment.htm

It consists of 7 bits, a0 a1 a2 a3 a4 a5 a6. If you look at the chart in the website you could see which one is which. Within your lowlevel programming language you just mask that range with what you care about resulting on bright LEDs.

If you tell me which programming language your working with, I could tell you exactly how. Very simple...


EDIT:
Yea so just apply the mask to that bus which connects the 7seg display. Look at your display manual to know which leds are which. And just mask it(BCD ) it

2006-06-28 20:32:23 · answer #1 · answered by ? 6 · 0 0

you can also get a BCD to 7-segment display driver chip. all you do is write out the BCD number to it and the driver does the rest. example:

write out a 1 (0001) and it dislpays a 1
write out a 9 (1001) and it displays a 9

2006-06-29 09:21:28 · answer #2 · answered by justme 7 · 0 0

fedest.com, questions and answers