Page 1 of 1

Pin INT et LCD en commun

Posted: Wed Jan 23, 2019 5:42 pm
by zebulon33
Bonjour, sous flowcode V5
J'essaie de faire un Menu LCD et d'apprendre à utiliser les interruptions.
Pour un PIC 16F876A, ya t-il une solution electronique de pouvoir brancher un LCD alors que j'ai besoin de RB0/INT ?
Cela fonctionne en théorie sous Flowcode quand je mets pin D4 (RB0) du LCD 2x16 caractères en RA1 mais pas sous RealPic Simulator !
A quelle appli dois-je faire confiance?
Changer de PIC ?..
Merci de m'éclairer, en vous remerciant.
LC
1. RB0+LCD interrupts_876A.FCF
(21.42 KiB) Downloaded 291 times

Re: Pin INT et LCD en commun

Posted: Thu Jan 24, 2019 2:10 pm
by Benj
Bonjour,

Dans vos connexions pour l’écran LCD, D0 est connecté à la broche A0 et non à A1. Cela pourrait-il être le problème>

L'utilisation de broches alternatives pour l'écran LCD devrait fonctionner correctement sur le matériel.


Hello,

In your connections for the LCD Data 0 is connected to pin A0 and not A1. Could this be the problem>

Using alternate pins for the LCD should work fine on hardware.

Re: Pin INT et LCD en commun

Posted: Thu Jan 24, 2019 5:31 pm
by zebulon33
A0 ou A1, ne fonctionne pas meme en hardware. :(

Re: Pin INT et LCD en commun

Posted: Thu Jan 24, 2019 6:07 pm
by medelec35
Comment avez-vous câblé votre écran LCD? Pouvez-vous poster un schéma de câblage?


How have you wired up your LCD? Can you post a wiring diagram?

Re: Pin INT et LCD en commun

Posted: Thu Jan 24, 2019 6:53 pm
by zebulon33
Capture cablage LCD sous RealPicSimulator .PNG
(4.03 KiB) Downloaded 3521 times
Normalement en D4 vient RBO/INT
merci

Re: Pin INT et LCD en commun

Posted: Thu Jan 24, 2019 7:28 pm
by medelec35
LCD1.png
(2.89 KiB) Downloaded 3519 times
A0 est également connecté à un commutateur. Cela peut causer des problèmes.
A1 est également connecté à une LED Cela posera des problèmes.
Le mieux est d’utiliser une épingle qui n’est assignée à rien

A0 is also connected to a switch. This can cause issues.
A1 is also connected to an LED This will cause issues.
Best to use a pin not assigned to anything else

Re: Pin INT et LCD en commun

Posted: Fri Jan 25, 2019 11:00 am
by zebulon33
Merci, effectivement cela fonctionne maintenant !!
J'etais persuadé que l'on ne pouvait pas changer de port pour le LCD!