Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
PIC18F4220
// Code Table for 7 Segment Display
//0,1,2,3,4,5,6,7,8,9,A,b,c,d,E,F,h,J,L,n,o,P,r,u,[]
volatile unsigned char uc_chartable[25]={
0b00111111,/*0*/
0b00001100,
0b01011011,
0b01011110,
0b01101100,
0b01110110,
0b01110111,
0b00011100,
0b01111111,
0b01111110,/*9*/
0b01111101,/*A*/
0b01100111,/*b*/
0b01000011,/*c*/
0b01001111,/*d*/
0b01110011,/*E*/
0b01110001,/*F*/
0b01101101,/*H*/
0b00011110,/*J*/
0b00100011,/*L*/
0b01000101,/*n*/
0b01000111,/*o*/
0b01111001,/*p*/
0b01000001,/*r*/
0b00000111,/*u*/
0b00000000};/*Leerzeichen*/
// Timer 0 overflow interrupt service routine
interrupt [TIM0_OVF] void timer0_ovf_isr(void)
{
#asm("SEI"); /* Interrupts für Stoppuhr freigeben !*/
switch (uc_segmentcounter)
{
case 0:
PORTC=0;
PORTA.5=0;
delay_us(20);
PORTA.0=1;
PORTC=uc_segment[uc_segmentcounter];
if(PINB.2>0)
{
PORTC.7=1;
};
break;
case 1:
PORTC=0;
PORTA.0=0;
delay_us(20);
PORTA.1=1;
PORTC=uc_segment[uc_segmentcounter];
break;
case 2:
PORTC=0;
PORTA.1=0;
delay_us(20);
PORTA.2=1;
PORTC=uc_segment[uc_segmentcounter];
break;
case 3:
PORTC=0;
PORTA.2=0;
delay_us(20);
PORTA.3=1;
PORTC=uc_segment[uc_segmentcounter];
break;
case 4:
PORTC=0;
PORTA.3=0;
delay_us(20);
PORTA.4=1;
PORTC=uc_segment[uc_segmentcounter];
break;
case 5:
PORTC=0;
PORTA.4=0;
delay_us(20);
PORTA.5=1;
PORTC=uc_segment[uc_segmentcounter];
break;
};
uc_segmentcounter++;
if(uc_segmentcounter>5){uc_segmentcounter=0;};
}
Yes. On regular displays you would connect the VBB pin on the MIC5891's to the 5v VDD pin and on the large multi-led-per-segment displays you would connect VBB to whatever high voltage you needed.This should work with both the small and large digits right?
That's the tricky part.How do you tie multiple chips together?
mike, what s'ware app do u use to create those drawings?
Look at Mikes last schematic it will meet your requirements for small & large displays.
Could u attach one of those....sheets pls...I never noticed those part shapes.