![]() |
![]() |
![]() |
|
|
|||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
New Member
|
Hi everyone
currently i m using the pic18f2331, but now i m replacing the lcd display with 7-seg 4dig to display the time (88:88) in order to prevent the lcd screen to break down when falling. i would like to know how do i connect the 7segment 4dig led display to the pic? do i need extra components such as multiplexer or timer or counter? |
|
|
|
|
|
(permalink) |
|
Experienced Member
|
The PIC has enough current to drive each of the segments of the display directly from the PIC (presuming the voltage necessary is less than 5V, in which case you'll want to include some resistors as appropriate, or run your PIC at a lower voltage if possible).
The only problem with the PIC you're using and doing this, is that you don't have enough I/O pins on the 18F2331 to have one each for all four seven-segment digits. The easiest way around this I can think of is to get either a 74LS47 (for common-anode displays) or 74LS48 (for common-cathode displays) binary-coded-decimal to seven-segment driver for each seven-segment digit. That way, you'll only have to use four I/O pins from the PIC for each digit (16 pins in total). The decimals (if you're using them for the ":" part of the display) can obviously be set by direct connection to your power source if they're not being toggled in any way. |
|
|
|
|
|
(permalink) |
|
Experienced Member
|
|
|
|
|
|
|
(permalink) |
|
Experienced Member
|
Thanks for the tip, Mike. I'd wondered how that worked exactly. westkid85: go with his suggestion.
If you really needed the extra 3 I/O pins (and to save 3 resistors, too), you could go with Gramo's idea, but using binary output and one of the BCD-to-7-segment ICs I mentioned above. |
|
|
|
|
|
(permalink) | |
|
Experienced Member
|
Quote:
|
|
|
|
|
|
|
(permalink) |
|
New Member
|
Thank everyone for the great help and offer
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Problem with LCD code? | spondootre | Micro Controllers | 15 | 29th April 2008 09:15 AM |
| calculator | chinmay7 | Micro Controllers | 1 | 14th October 2007 12:45 PM |
| asm attachments | eng1 | Feedback/Comments | 6 | 14th September 2007 03:01 PM |
| driving multiplexed 7 segment display | mathur2000 | Micro Controllers | 7 | 24th June 2007 10:07 PM |
| microchip application A590 /display is ok now | prosound90 | Micro Controllers | 20 | 18th November 2006 09:44 PM |