Pin Configuration of 2x16 LCD
Sun Oct 08, 2017 5:30 pm
- maricatol_placidex
- Posts : 5
Join date : 2017-10-14
Re: Pin Configuration of 2x16 LCD
Sat Oct 14, 2017 9:23 pm
ma'am how can i send data from the lcd?
- harold_navia
- Posts : 5
Join date : 2017-10-14
Re: Pin Configuration of 2x16 LCD
Sat Oct 14, 2017 9:34 pm
I have an example here you can try this one
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
void setup()
{
Serial.begin(9600);
}
void loop()
{
if (Serial.available()) {
lcd.write(Serial.read());
}
}
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
void setup()
{
Serial.begin(9600);
}
void loop()
{
if (Serial.available()) {
lcd.write(Serial.read());
}
}
Re: Pin Configuration of 2x16 LCD
Sat Oct 14, 2017 10:06 pm
Sending data to LCD
- Make R/W low.
- Make RS=0 if data byte is a command and make RS=1 if the data byte is a data to be displayed.
- Place data byte on the data register.
- Pulse E from high to low.
- Repeat above steps for sending another data.
- Make R/W low.
- Make RS=0 if data byte is a command and make RS=1 if the data byte is a data to be displayed.
- Place data byte on the data register.
- Pulse E from high to low.
- Repeat above steps for sending another data.
- Agatep Claire
- Posts : 5
Join date : 2017-10-14
Re: Pin Configuration of 2x16 LCD
Sat Oct 14, 2017 11:03 pm
Ma'am what are the used of the pins?
Re: Pin Configuration of 2x16 LCD
Sat Oct 14, 2017 11:06 pm
Pins used by this
A register select (RS) pin that controls where in the LCD's memory you're writing data to. You can select either the data register, which holds what goes on the screen, or an instruction register, which is where the LCD's controller looks for instructions on what to do next.
A Read/Write (R/W) pin that selects reading mode or writing mode
An Enable pin that enables writing to the registers
8 data pins (D0 -D7). The states of these pins (high or low) are the bits that you're writing to a register when you write, or the values you're reading when you read.
There's also a display constrast pin (Vo), power supply pins (+5V and Gnd) and LED Backlight (Bklt+ and BKlt-) pins that you can use to power the LCD, control the display contrast, and turn on and off the LED backlight, respectively.
A register select (RS) pin that controls where in the LCD's memory you're writing data to. You can select either the data register, which holds what goes on the screen, or an instruction register, which is where the LCD's controller looks for instructions on what to do next.
A Read/Write (R/W) pin that selects reading mode or writing mode
An Enable pin that enables writing to the registers
8 data pins (D0 -D7). The states of these pins (high or low) are the bits that you're writing to a register when you write, or the values you're reading when you read.
There's also a display constrast pin (Vo), power supply pins (+5V and Gnd) and LED Backlight (Bklt+ and BKlt-) pins that you can use to power the LCD, control the display contrast, and turn on and off the LED backlight, respectively.
- Manalo Mark Anthony
- Posts : 9
Join date : 2017-10-18
Re: Pin Configuration of 2x16 LCD
Wed Oct 18, 2017 11:21 pm
Ma'am each pins po may ibat ibang functions and here are some
VSS, VDD and VEE
Pin 1 (VSS) is a ground pin and it is certainly needed that this pin should be grounded for LCD to work properly. VEE and VDD are given +5 vlots normally. However VEE may have a potentiometer voltage divider network to get the contrast adjusted. But VDD is always at +5V.
RS, R/W and E
These three pins are numbered 4, 5 and 6 as shown above. RS is used to make the selection between data and command register. For RS=0, command register is selected and for RS=1 data register is selected.
R/W gives you the choice between writing and reading. If set (R/W=1) reading is enabled. R/W=0 when writing.
Enable pins is used by the LCD to latch information presented to its data pins. When data is supplied to data pins, a high to low pulse must be applied to this pin in-order for the LCD to latch in the data present at the data pins. It maybe noted here that the pulse must be of minimum 450ns wide.
D0-D7
The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents of LCD's internal register.
VSS, VDD and VEE
Pin 1 (VSS) is a ground pin and it is certainly needed that this pin should be grounded for LCD to work properly. VEE and VDD are given +5 vlots normally. However VEE may have a potentiometer voltage divider network to get the contrast adjusted. But VDD is always at +5V.
RS, R/W and E
These three pins are numbered 4, 5 and 6 as shown above. RS is used to make the selection between data and command register. For RS=0, command register is selected and for RS=1 data register is selected.
R/W gives you the choice between writing and reading. If set (R/W=1) reading is enabled. R/W=0 when writing.
Enable pins is used by the LCD to latch information presented to its data pins. When data is supplied to data pins, a high to low pulse must be applied to this pin in-order for the LCD to latch in the data present at the data pins. It maybe noted here that the pulse must be of minimum 450ns wide.
D0-D7
The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents of LCD's internal register.
- Manalo Mark Anthony
- Posts : 9
Join date : 2017-10-18
Re: Pin Configuration of 2x16 LCD
Wed Oct 18, 2017 11:22 pm
Ma'am what is the difference between the 2x16 LCD to any other LCD?
- maricatol_placidex
- Posts : 5
Join date : 2017-10-14
Re: Pin Configuration of 2x16 LCD
Wed Oct 18, 2017 11:31 pm
Character lcd's come in many sizes 8x1, 8x2, 10x2, 16x1, 16x2, 16x4, 20x2, 20x4, 24x2, 30x2, 32x2, 40x2 etc . Many multinational companies like Philips, Hitachi, Panasonic make their own custom type of character lcd's to be used in their products. All character lcd's performs the same functions(display characters numbers special characters, ascii characters etc).Their programming is also same and they all have same 14 pins (0-13) or 16 pins (0 to 15).
In an mxn lcd. M denotes number of coulombs and n represents number of rows. Like if the lcd is denoted by 16x2 it means it has 16 coulombs and 2 rows. Few examples are given below. 16x2, 8x1 and 8x2 lcd are shown in the picture below. Note the difference in the rows and coulombs.
In an mxn lcd. M denotes number of coulombs and n represents number of rows. Like if the lcd is denoted by 16x2 it means it has 16 coulombs and 2 rows. Few examples are given below. 16x2, 8x1 and 8x2 lcd are shown in the picture below. Note the difference in the rows and coulombs.
Permissions in this forum:
You cannot reply to topics in this forum
|
|