LCD Interfacing Tutorial: LCD 4-bit Mode Introduction
Discussion in "Project Addition or Changes" started by dvjayk Jun 8, 2017.
Thu Jun 08 2017, 11:43 am
I have seen the tuorial(link): https://www.8051projects.net/lcd-interfacing/lcd-4-bit.php
its working.
but I want LCD interfacing using a single port that is Port0 only.
In our circuit RS, RWa and En are connected to P0.1, P0.2 and P0.3 repectively. and
LCD's D4 to D7 connected to P0.4 to P0.7 respectively
But its not working.
Expecting a solution from you.
Thanks.
its working.
but I want LCD interfacing using a single port that is Port0 only.
In our circuit RS, RWa and En are connected to P0.1, P0.2 and P0.3 repectively. and
LCD's D4 to D7 connected to P0.4 to P0.7 respectively
But its not working.
Expecting a solution from you.
Thanks.
Thu Jun 08 2017, 11:16 pm
Tutorial already shows an example where lcd is connected to port3. you can change it to Port0 easily. in 4bit mode RW pin is usually grounded. This will save you a port pin.
check tutorial here: https://www.8051projects.net/lcd-interfacing/lcd-4-bit-programming.php
check tutorial here: https://www.8051projects.net/lcd-interfacing/lcd-4-bit-programming.php
Fri Jun 09 2017, 11:05 am
The code in the tutorial uses certain pins for data and control.
To change it for your pins, you will need to edit around 1/3 of the lines.
The 'C 'version will be easier to change than the assembly version.
Remember that port 0 will need pull-up resistors that are not
needed on the other ports.
To change it for your pins, you will need to edit around 1/3 of the lines.
The 'C 'version will be easier to change than the assembly version.
Remember that port 0 will need pull-up resistors that are not
needed on the other ports.
[ Edited Fri Jun 09 2017, 11:21 pm ]
Powered by e107 Forum System