lcd and switch multiplexing with 18f452 portb

Status
Not open for further replies.

zeroskj1988

Member level 2
Joined
Jul 7, 2011
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,588
i am using pic18f452.inmy project,i have to multiplex LCD(jhd539,16X4) and switches. i am using lcd in 4 bit mode
i directly connected switch and data line of lcd to portb<1-4>.when am working with pgm there is random variations.my doubt is whether there is any problem in multiplexing directly. pls help me
thanks in advance
 

It would be better to see the schematic.
 

It is not advisable to connect datalines and keypad to same port pins directly.
 


You can easily connect the switches and LCD on the same lines. See the attached schematic. the pull up resistors are 4K7 and pull doen are 1K.



Cheers

Ravi
 
thank u sir
i using schematic similar to your,except the pull up resistor
but i am getting response that some keys pressed even if am not pressed it
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…