Jump to content
ELFORUM - Forumul electronistilor
Guest maddhawk

lcd display LCM1602

Recommended Posts

Guest maddhawk

Am un display 16x2

, dar problema e ca pe el scrie PRC1602SYL, la magazinele online de pe net apare ca LCM1602 ASL, iar pe pagina producatorului (palm technology) produsul care este identic ca specificatii apare ca pmc1602D.

 

N-am gasit nici unde datasheet pt el sau pt ceva asemanator(datasheetul de la producator nu poate fi deschis, e in chineza), si am cautat de m-am saturat.

 

Problema e ca pinii nu sunt ca la majoritatea display-urilor, adica 14 pe o linie, ci sunt asezati in 2 linii de cate 7, pe lateralul unitului (cam ca la Hitachi LM018L), si nu stiu care e ordinea in care sunt pusi.

 

A lucrat cineva cu asa ceva?[/url]

Link to post
Share on other sites

Pinii sunt normal asignati. Pe partea cu patratelul sunt pinii impari, (1,3,5,...) iar pe cealalta linie cei pari. Trebuie numai sa verifici cu un ohmetru sa nu aiba masa inversata la conector. Salutari, Costel

Link to post
Share on other sites

Guest maddhawk

MAi am o problema. Nu reusesc sa-l fac sa mearga. Din cate am vazut, se "blocheaza" atunci cand incerc sa opresc/pornesc displayul

 

Codul e cel de mai jos

 

...	movlw 0x0F	;pune 00001111 in W  	movwf TRISB	;pune 0 in TRISB (seteaza RB0..RB3 ca intrari					; si RB4..RB7 ca iesiri )....;****************************************;	INITIALIZE LCD						*;****************************************LCD_INIT	call DELAY_40		; delay 40 msec after power on	bcf LCD_RI			; Send an instruction to LCD	movlw 0x30			; Comanda de RESET	call LCD_OUT_NIBBLE	; send the nibble	call DELAY_5		; wait 5 ms	Strobe_E			; toggle the E pin	movlw 0x30			; Comanda de RESET		SECOND TIME	call LCD_OUT_NIBBLE	; send the nibble	movlw 0x33			;delay 159 usec	call DELAY_X	Strobe_E	movlw 0x30			; Comanda de RESET		THIRD TIME	call LCD_OUT_NIBBLE	; send the nibble	movlw 0x33			;delay 159 usec	call DELAY_X	Strobe_E	bcf LCD_RI				; Send an instruction to LCD	movlw 0x20			; set 4-bit interface mode	call LCD_OUT_NIBBLE	; send the nibble	movlw 0x40			;delay 198 usec	call DELAY_X	Strobe_E			; toggle the E pin  	movlw  0x28  	 	;  4 bit, 2 Line, 5x7 font  	call   LCD_INST_OUT  	movlw  0x01		;  Clear Display  ( RAM )  	call   LCD_INST_OUT	call DELAY_5  	movlw  0x06        ;  increment cursor  	call   LCD_INST_OUT	; (Set Cursor Move Direction); 		urmatoarea instructiune pare sa fie problema     <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  	movlw  0x0E        ;  display ON,  cursor ON  	call   LCD_INST_OUT	; (Enable Display & Cursor)	return	;****************************************;	Send a nibble to the LCD			*;****************************************LCD_OUT_NIBBLE	movwf PORTB	Strobe_E	nop	nop	return;****************************************;	Send the character in W to the LCD	*;****************************************LCD_SEND_ASCII	addlw '0'                     ;  Send the number's ASCII codeLCD_SEND_CHAR                 	  ;  Send the Character to the LCD	movwf  temp                   ;  Save the Temporary Value;	swapf  temp, w                ;  Send the High Nibble	bsf    LCD_RI                 ;  LCD_RI = 1	andlw	0xF0	call   LCD_OUT_NIBBLE	swapf  temp, w                ;  Send the LOW Nibble	andlw	0xF0	bsf    LCD_RI	call   LCD_OUT_NIBBLE	return;****************************************;	Send the inst in W out to the LCD 	*;****************************************LCD_INST_OUT                 	  ;  Send the Instruction to the LCD	movwf  temp                   ;  Save the Temporary Value;	swapf  temp, w                ;  Send the High Nibble	bcf    LCD_RI                 ;  LCD_RI = 0	andlw	0xF0	call   LCD_OUT_NIBBLE	swapf  temp, w                ;  Send the LOW Nibble	andlw	0xF0	bcf    LCD_RI	call   LCD_OUT_NIBBLE	return

Habar nu am ce sa-i ma fac, nu stiu unde poate fi problema

Link to post
Share on other sites

M-am procopsit si eu cu un astfel de LCD. De la Oradea...Inainte sa-l conectez am avut curiozitatea sa vad cum vine plusul si masa la el, ca am mai patit-o cu chinezarii. SURPRIZA! (ma rog...) Se pare ca pinul 1 e PLUS 5V, iar pinul 2 este GND!!!!!!! :axe: Pentru ca pinul 2 este si Katod la Led, si pare aberant sa ai masa pe unu pentru controller si masa la Led pe 2, nu?Poate confirma/infirma cineva?!? pentru PRC1602A-SYL. Adica 16x2 cu Led... :prayer:Costel

Link to post
Share on other sites

Ca sa nu mai existe dubii...Am gasit foaia la acest PRC1602. SI AM AVUT DREPTATE! In schimb nu stiu cum se vinde drept un LCD compatibil LCM1602, fara avertizarea prealabila ca sunt inversari de pini fata de standard... Standard care nu e mentionat, daca e compatibil cu Hitachi sau nu.Costel

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • 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