Jump to content
ELFORUM - Forumul electronistilor
Guest yo9hnh

display dem16101 + pic16f876

Recommended Posts

Guest yo9hnh

Salutare am un display DEM16101 1 X 16 caractere , l-am legat la portul B al unui pic16f876.In simulare cu Proteus afiseaza pe toate cele 16 caractere disponibile,dar in real afiseaza doar pe 8 si nu stiu de ce.Am studiat datasheetul sa vad poate gasesc ceva si nimic.Ati intampinat si d-voastra aceeasi problema ?Si cum ati rezolvat-o ?

Link to comment
Share on other sites

Guest yo9hnh

Problema este rezolvata.Pentru cei care au nevoie de ajutor here it is : Displayul DEM16101 ( 1x 16 ) are arhitectura interna ca cel cu 2 x 8 .In primul rand displayul trebuie initializat pe 2 linii si daca vreti sa scrieti de la caracterul 9 is sus trebuie sa ii setati adresa DDRAM manual.In cazul meu :INITCALL D40ms ; wait 40 ms until VCC reaches at 5VBCF PORTC,0 ; clear RC0BCF PORTC,1 ; clear RC1MOVLW B'00111100' ; load binary value into W registerMOVWF PORTB ; put value on PORTBCALL ENABLEPULSE ; ENABLECALL DELAY50 ; wait 50 usMOVLW B'00001111' ; load binary value into W registerMOVWF PORTB ; put value on PORTBCALL ENABLEPULSE ; ENABLECALL DELAY50 ; wait 50 usMOVLW B'00000001' ; load binary value into W registerMOVWF PORTB ; put value on PORTBCALL ENABLEPULSE ; ENABLECALL D2ms ; 2 ms delayMOVLW B'00000110' ;MOVWF PORTB ;CALL ENABLEPULSE ;Asta este rutina de initializare a displayului,Pentru a afisa text :STARTBCF PORTC,0 ; clear RC0BCF PORTC,1 ; clear RC1MOVLW 0xC0 ; aici setez adresa DDRAM 0xC0 = 11000000MOVWF PORTBCALL ENABLEPULSECALL DELAY50BSF PORTC,0BCF PORTC,1MOVLW A'H'MOVWF PORTBCALL ENABLEPULSEMOVLW A'e'MOVWF PORTBCALL ENABLEPULSEMOVLW A'l'MOVWF PORTBCALL ENABLEPULSEMOVLW A'l'MOVWF PORTBCALL ENABLEPULSEMOVLW A'o'MOVWF PORTBCALL ENABLEPULSELOOP ; bucla infinitaGOTO LOOPyo9hnh

Link to comment
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