CABLAGE LCD AVEC PIC 18F2550

Forum de support pour les locuteurs de la langue française qui souhaitent écrire dans leur langue maternelle.

Moderator: Benj

Post Reply
zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

Bonjour, peut-on brancher un simple afficheur LCD standard (j'ai acquis le DEM10101H voir datasheet en attachement )sans avoir de EBlock et le brancher sur le port B comme ils le preconisent car je n'arrive pas du tout à le faire fonctionner ? (j'ai du me tromper qq part dans ma configuration de cablage : SUR LCD (PAGE N°3 DU DATASHEET)
PIN 1 GROUND
PIN 2 +5V
PIN 3 +5V , ou non cablé, j'ai pas d'affichage.
PIN 4 RS, port B bit 4 soit broche 25 du CPU
PIN 5 R/W, ground car je veux lire les instructions du CPU 18F, j'ai mis sur +5V, pas d'affichage non plus !
PIN 6 E, correspond à 'VALIDATION' je suppose donc port B bit 5 soit broche 26 du 18F
pin 7 à 10, ground car lecture en 4 bits ( correct ?)
pin 11 à 14, reliées à leur port respectif
où ais-je fait une erreur de compréhension ?
En vous remerciant
Attachments
TC7106CPL.pdf
(204.33 KiB) Downloaded 339 times

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by Dan81 »

bonjour

est ce la bonne doc ?

Daniel

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

LCD116A.pdf
(189.81 KiB) Downloaded 441 times
Désolé, effectivement, c'est pas la bonne doc !! Merci de votre remarque !

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by Dan81 »

Bonjour

La broche3 (VO) est le contraste, elle est connectée au curseur d'un potentiometre (alimenté entre 0 et 5v).

L'afficheur est il complement vierge ou vois tu des rectangles noirs à la place des caracteres ,

Daniel

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

L'afficheur est completement vierge. Après ta remarque, je viens de brancher un potentiomètre pour le VO et toujours pareil ! Bizarre !

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by Dan81 »

salut

ton µP est il bien configuré ? (poste ton prog)
peux tu verifer si les signaux arrivent sur le LCD (à l'oscillo).

Daniel

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

LCD_DEM16101.fcf
(6 KiB) Downloaded 475 times
sorties_data_LCD.jpg
(102.98 KiB) Downloaded 3515 times
Voici mon prog et une acquisition des signaux.
sur afficheur LCD
bleu = pin DB4
jaune= pin DB5
rouge= pin DB6
vert= pin DB7

et sur RS ou E, j'ai aussi un signal !!

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by Dan81 »

Bonjour

quel carte micro utilises tu ?
Y a t il coherence entre le 19.66 MHz et la valeur dans "configurer puce"

de plus dans ta config ton chien de garde est validé !

Daniel

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

LCD_DEM16101.fcf
(6.5 KiB) Downloaded 474 times
J'avais oublié de configurer le Pic dans ce nouveau prog de test ! Mais cela ne marche pas mieux pour autant !
Luc

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

De plus, je n'utilise aucune carte, c'est un montage personnel. C'est pour cela que je posais la question au debut du post pour savoir s'il etait possible, sans Eblock ou autres, de pouvoir brancher un afficheur LCD...C'est la première fois que j'utilise un afficheur LCD mais ce qui m'étonne, j'ai beau essayé plein de configuration de branchements et j'ai pas le moindre pixel qui s'allume malgré les signaux qui arrivent sur les broches !!
je me répète, c'est la première fois que j'utilise un afficheur LCD, donc je suis dans le flou !
Luc

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by dazz »

Salut
Pouvez-vous essayer la config dans la capture d'écran suivante, seulement changer les uns avec les flèches rouges laisser le reste car ils sont

Faites-nous savoir si cela fonctionne
Cordialement
Dazz


Hi
Can you try the config in the following screenshot, only change the ones with red arrows leave the rest as they are

Let us know if it works
Regards
Dazz

Untitled.jpg
(267.9 KiB) Downloaded 3468 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

Merci, mais toujours pareil, ça ne fonctionne pas !
je joins un autre diagramme mais avec le RS (en jaune) qui me semble bizarre , non ?
les autres signaux sont les data
sorties_data_et_RS.jpg
(103.62 KiB) Downloaded 3453 times

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

Ayant un doute sur le bon fonctionnement de cet afficheur, j'ai commandé et recu un LCD QC1602A avec puce HITACHI HD44780 comme le recommande Flowcode !
La connectique est identique, mais...TOUJOURS PAREIL! Ca ne fonctionne pas ! :cry:

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

Mon schema electronique.
Merci pour vos commentaires.
Attachments
schema_hitachi_hd44780_qc1602a_18f2550.jpg
schema_hitachi_hd44780_qc1602a_18f2550.jpg (83.23 KiB) Viewed 14212 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by dazz »

Hi
try the attached chart

Regards
Dazz
try this.fcf
(7.5 KiB) Downloaded 267 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

merci beaucoup mais meme probleme, toujours rien !!!!!!!!!!!!!!!!!

zebulon33
Posts: 35
Joined: Thu Mar 29, 2012 1:13 pm
Location: France
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: CABLAGE LCD AVEC PIC 18F2550

Post by zebulon33 »

Si,Si ca marche maintenant !!!!!!!!!! :D
Merci Dazz

Post Reply