Hi All! Hope y'all doing great...
Here's what I'm working on:
"I'm trying to drive two multiplexed 7 segment displays and make them display all the alphanumeric characters 0-9 and a-z except where no suitable 7 segment display can be created (as for X) in which case the display will indicate an '-', IE only segment G lit.
The value displayed will be changed by pressing a pushbutton with every press causing the sequence to move forward one character.
The left hand display merely indicating the previous value that was displayed on the right hand display. This will then present the effect of a right to left scrolling display. "
Here's what I've done so far:
- I've already built my circuit on breadboard using: PIC16F690, 2 x 7 segment displays (LSD5116-11, common cathod), 2 x npn transistors (CTBC547B), 1 pushbutton, 7 x 330 ohms resistors for 7 segment display, 1 x 10k ohm for pushbutton, 2 x 1k ohms for transistors. PLEASE see my pin configuration in the attachement!!!
- my code attached has DEFINATELY got problems...and I need your help on that...
- I tried working the multiplexing and switch debounce in the timer0 isr...but kind of messy...
- my BIG trouble is the TABLE...I tried doing some kind of state but no! Maybe not doing it well...
MY first question: what should be the code structure??? I mean what should the interrupt contain? What should the main program do?
Ok I think I can stop here for now
All your comments/ guidance/helps will be greatly appreciated!!!
Thanks All
Here's what I'm working on:
"I'm trying to drive two multiplexed 7 segment displays and make them display all the alphanumeric characters 0-9 and a-z except where no suitable 7 segment display can be created (as for X) in which case the display will indicate an '-', IE only segment G lit.
The value displayed will be changed by pressing a pushbutton with every press causing the sequence to move forward one character.
The left hand display merely indicating the previous value that was displayed on the right hand display. This will then present the effect of a right to left scrolling display. "
Here's what I've done so far:
- I've already built my circuit on breadboard using: PIC16F690, 2 x 7 segment displays (LSD5116-11, common cathod), 2 x npn transistors (CTBC547B), 1 pushbutton, 7 x 330 ohms resistors for 7 segment display, 1 x 10k ohm for pushbutton, 2 x 1k ohms for transistors. PLEASE see my pin configuration in the attachement!!!
- my code attached has DEFINATELY got problems...and I need your help on that...
- I tried working the multiplexing and switch debounce in the timer0 isr...but kind of messy...
- my BIG trouble is the TABLE...I tried doing some kind of state but no! Maybe not doing it well...
MY first question: what should be the code structure??? I mean what should the interrupt contain? What should the main program do?
Ok I think I can stop here for now
All your comments/ guidance/helps will be greatly appreciated!!!
Thanks All
Attachments
-
18.6 KB Views: 26
-
971 bytes Views: 18