hi
i am using PIC30F5011,
I want to display like 12 on SSDs,i have two SSD's with commaon anode and both common's are connected to Two NPN tranistor .some one suggested me use multiplexing,i am using PORTB0 to PORTB7 for SSD's..SSD pins are connected both SSD's are same.D5 and D1 are transistor pins .i try a code.can any one suggested me how to display different numbers like12.
<code>
unsigned int i=12,t;
while(1)
{
delay_5miliseconds{}
t=i%10;
SSD1(t);
LATDbits.LATD5=1;
LATDbits.LATD1=0;
delay_5milliseconds();
t=(i/10)%10;
SSD1(t);
LATDbits.LATD5=0;
LATDbits.LATD1=1;
}
void SSD1(unsigned int x)
{
switch(x)
{
case 0: LATB=0b10001000;
delay();
case 1: LATB=0b10111110;
break;
case 2: LATB=0b11000100;
break;
case 3: LATB=0b10010100;
break;
case 4: LATB=0b10110010;
break;
case 5: LATB=0b10010001;
break;
case 6: LATB=0b10000001;
break;
case 7: LATB=0b10111100;
break;
case 8: LATB=0b10000000;
break;
case 9: LATB=0b10010000;
break;
}
}
<code>