Need help with LCDOUT command, other pins affected
StampBeginner
Posts: 3
I searched the forum and didn't find anyone with the issue that I'm having.
I'm controlling a LCD using a BS2px, using the LCDOUT command. I'm using pin 1 as the enable pin for the LCD (the manual says you can select pin 0 or 1), and using pin 0 to power the LCD backlight.
It seems that after I turn on the backlight by doing:
HIGH 0
the light goes off when I execute the next line:
LCDOUT 1, [noparse][[/noparse]"Hello World"]
It seems like the LCDOUT command is bringing pin 0 low when it executes, because this doesn't happen if I put the backlight control on a different pin like pin 10. Is this normal? Why should Pin 0 be effected when I'm executing the LCDOUT command using pin 1? The same thing happens when I reverse the connections and code·by putting LCD control pin 0 and backlight control on pin 1.
Thanks in advance for your help.
·
I'm controlling a LCD using a BS2px, using the LCDOUT command. I'm using pin 1 as the enable pin for the LCD (the manual says you can select pin 0 or 1), and using pin 0 to power the LCD backlight.
It seems that after I turn on the backlight by doing:
HIGH 0
the light goes off when I execute the next line:
LCDOUT 1, [noparse][[/noparse]"Hello World"]
It seems like the LCDOUT command is bringing pin 0 low when it executes, because this doesn't happen if I put the backlight control on a different pin like pin 10. Is this normal? Why should Pin 0 be effected when I'm executing the LCDOUT command using pin 1? The same thing happens when I reverse the connections and code·by putting LCD control pin 0 and backlight control on pin 1.
Thanks in advance for your help.
·
Comments
rick
Thank you for that excellent explanation. It seemed like good organization to have pins 0-7 all dedicated to the LCD, but I see I'm probably going to lose the use of pin 0 or else risk unintended results. I'll have to experiment and see if any other functionality can be safely assigned to pin0.
Thanks again,
Larry