Microcontroller › 8051 › problem with 16X2 LCD
- This topic has 10 replies, 3 voices, and was last updated 12 years, 4 months ago by AJISH ALFRED.
-
AuthorPosts
-
September 9, 2012 at 7:20 am #1942chandrasekharParticipant
PLEASE ANY ONE HELP HOW TO MAKE DATA PINS(D7-D14) OF LCD TO HIGH.
i use pull up resistor(connected to vcc) for making these pins high but these pins are shoeing the voltage levels as ov.
where the problem is
September 9, 2012 at 3:03 pm #8556chandrasekharParticipanti have another problem with downloading the code in to mc through serial port
when switch on the power supply.then terminal shows the o/p all the 4 cases i.e1.db9 connector 2&3 pins short2.max-232 13 &14 pins short.3.max-232 11&12 pins short.4.microcontroller 10&11 pins short.but when i tried to download the code in to the mc.it is showing reset the device in to isp mode now .even though after pressing the reset switch also.please anyone help where is the problemSeptember 9, 2012 at 5:25 pm #8557chandrasekharParticipantonly lcd 12th pin is showing voltage level high and remaining data pins are showing low.the pull up resistor(8 pins) connected to these data lines is showing low and pull up resistor 9th pin which is connected to vcc is high.we used 3 pull up resistors1.at port 1 used for 7 switches (here all the 9 pins of pull up resistor is showing high)2.at port2 used for data pins of lcd(only 9thpin showing high remaining pins is showing low)3.at port 0 used for control pins (here all the 9 pins of pull up resistor is showing high)please any one help where is the problemSeptember 11, 2012 at 7:20 am #8561srihari.neppaliParticipantwhen u initialise port as output port internal pullup are activated. if ur connecting data pins to P0 externall pullup n/w needed.
September 11, 2012 at 6:13 pm #8566AJISH ALFREDParticipantHi Chandrashekar,
It happen because your port pins has a default value (reset value). I assume that you are simply setting the pin as output and nothing else. Have you ever wondered what will be the value or voltage at that output pin, there should be some voltage no??
Go through your controller datasheet, that default value will be zero.
If the pin is generating zero voltage, it can never show high when you measure!!
September 12, 2012 at 1:56 am #8570chandrasekharParticipantmy mc is 89v51RD2.PORT2 (21-28) IS BIDIRECTIONAL I/O PORT WITH INTERNAL PULLUP’S.
MY PULL UP RESISTOR SPECIFICATION IS A103J.
September 12, 2012 at 5:00 pm #8574AJISH ALFREDParticipantHi,
No need to change the port. You should keep in mind that, there will be always a value at the port pins, either logic0 or logic1. Normally logic0 .i.e. 0V will be default.
If the pin produces logic0, then even if you pull up, the data lines will show 0volts only.
Simply set the pins as output and write a 1 (logic1) to those pins.
September 12, 2012 at 5:07 pm #8576AJISH ALFREDParticipantSeptember 12, 2012 at 6:48 pm #8579chandrasekharParticipantthank you sir.
so i need to change in code is it right
September 12, 2012 at 6:49 pm #8569chandrasekharParticipantthank you sir
iam using port2 for lcd data pins.where i have to change these port pin values
September 24, 2012 at 4:58 pm #8606AJISH ALFREDParticipantYa, I think so.
-
AuthorPosts
- You must be logged in to reply to this topic.