ks108 i '51

Witam, mam klopot z wysterowaniem lcd z ks108, wyswietlacz podlaczylem jako RAM czyli:

RS,RW,CS1,CS2, odpowiednio do wyjsc zatrzasku Q0,Q1,Q2,Q3 E sterowane jest z bramek nand i strobowane przez A15 uklad:

|A15|---------------------------| | ___ | | '51 |RD| --------| | | NAND|------------| | NAND|------ |E| 'LCD |RW|--------| NAND|----------| | ---- | | | |

W programie:

//LCD jako ram + zatrzask unsigned char xdata danea _at_ 0x8005 ; //aktywny a + dane //0101 unsigned char xdata daneb _at_ 0x8009 ; //aktywny b + dane //1001 unsigned char xdata kontrolerab _at_ 0x8000; //0000 //OBA unsigned char xdata kontrolerb _at_ 0x8008; //1000 //aktywny B + komendy prawy unsigned char xdata kontrolera _at_ 0x8004 ; //0100 //aktywny A + komendy lewy

void DisplayOn(void) { kontrolerab=0x3F; //wlacz kontrolerab=0xC0; //0 }

danea=0xFF; //pokaz kreske

i nic sie nie dzieje..., kontrast mam wyregulowany wyswietlacz ma zasilanie... galwaniczne polaczenia posprawdzalem i nic... moze ktos wie gdzie robie blad...

Pozdrawiam, Mariusz.

Reply to
angel
Loading thread data ...
Reply to
Adam Samborski

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.