Jump to content
ELFORUM - Forumul electronistilor

Problema cu nokia 3310 lcd


lama

Recommended Posts

Salut

Nu stiu shield tau dar eu am folosit niste pcb cu 3310 montat pe ele.

Ce am constatat diferit la mine fata de tine sunt niste timpi in initializare

Plus eu am avut mari probleme cu contastul. A trebuie sa ma joc succesiv pana a aparut ceva pe ecran

La mine initializarea arata c-am asa

void init_nokia(void){	// nokia LCD init		nok_dc=1;				// bytes are stored in the display data ram, address counter, incremented automatically		nok_cs=1;				// chip disabled		__delay_ms(10);								nok_res=0;				// reset chip during 250ms		__delay_ms(250);		nok_res=1;							bytefornokia=0x21;		// set extins extended instruction set		nokia_write_command();				bytefornokia=0xc5;		// Vop  was 0xc5 // better is 0xa0		nokia_write_command();				bytefornokia=0x13;		// bias 		nokia_write_command();				bytefornokia=0x20;		// horizontal mode from left to right, X axe are incremented automatically , 0x22 for vertical addressing ,back on normal instruction set too 0x20 for horizontal		nokia_write_command();				bytefornokia=0x09;		// all on		nokia_write_command();				__delay_ms(250);		__delay_ms(250);							 		nokia_build_DDRAM();	// reset DDRAM, otherwise the lcd is blurred with random pixels				__delay_ms(10);				bytefornokia=0x08;		// mod control blank change (all off)		nokia_write_command();		__delay_ms(10);						bytefornokia=0x0c;		// mod control normal change 		nokia_write_command();				nokia_gotoxy(0,0);}
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

  • lama

    2

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines