??? 08/26/08 03:30 Modified: 08/26/08 03:43 Read: times |
#157750 - RE:printf and putchar lcd driver Responding to: ???'s previous message |
I forgotten to remove the sbit variables as i'm not using it.
Now that i removed the sbit varaible, and changed Timer0 ISR to this static void timer0_isr (void) interrupt 1 using 1//highest priority { unsigned i; TR0 = 0; i = TIMER0_COUNT + TL0 + (TH0<<8); TL0 = i; TH0 = i >> 8; TR0 = 1; address(1 << seg_count); write(LCD_digits[seg_count]); seg_count = (seg_count+1) & 0x07; } Because of slow refresh rate i still get flickering,however i get an stable output display this time because the ISR time has shorten because the code is shorten but its not "12345" yet.I think its because of my putchar function and translation table. My objective of doing multiplexing is to clear previous display and display new digit.Now i am going to look into my convert function and my shifting of bits. |
Topic | Author | Date |
printf and putchar lcd driver | 01/01/70 00:00 | |
Why so much code expansion? | 01/01/70 00:00 | |
RE:printf and putchar lcd driver | 01/01/70 00:00 | |
Solved first problem,now second one | 01/01/70 00:00 | |
Resistors? | 01/01/70 00:00 | |
y cannot edit previous thread | 01/01/70 00:00 | |
Mistake? | 01/01/70 00:00 | |
try to contact the Webmaster | 01/01/70 00:00 | |
ANG KAH BENG![]() | 01/01/70 00:00 |