For the display part, I would like to make a suggestion.
Since you will need to drive say PORTB with a HEX number to display a digit on the LED display, I would recommend storing HEX values in EEPROM.
Code:
EEPROM 0,[$c0,$F9,$A4,$B0,$99,$92,$82,$F8,$80,$90]
Incoming = 5
'from 0 to 9
READ Incoming, PORTB
So that you won't need to use a lookup table.
'==Display Configuration==
A PORTB.0
B PORTB.1
C PORTB.2
D PORTB.3
E PORTB.4
F PORTB.5
G PORTB.6
Dt PORTB.7
'NUMBER - HEX on Portb
'high pin turns off the led.
'low pin turns on the led.
0= $c0
1= $F9
2= $A4
3= $B0
4= $99
5= $92
6= $82
7= $F8
8= $80
9= $90
-= $BF
C= $C6
- This configuration was for 4x7 Segment LED display.
________________________--
Bookmarks