Driving an Alphanumeric LCD with avrPrayog
- Posted by admin
- on Feb, 14, 2013
- in Arduino, Atmel AVR, Display, Electronics, General Know How, Interfacing Tutorial, Open Source Hardware
- Blog No Comments.
LCD’s of Many kinds
Interfacing with avrPrayog
Each kind of LCD has its own specific protocol for its interfacing with outside world. However we will be learning about 16×2 alphanumeric LCD interfacing with avrPrayog here. Interfacing protocol of 16×2 alphanumeric LCD does not have any specific protocol name because the protocol is pretty simple, basically its not a protocol at all, its all about writing to registers, When you have control data make RS (register select) pin High-Low and choose whether the 8 bit data on D0-D7 is Control data or actual data to be displayed.
Figure below shows the Pin configuration of Standard HD44870 based LCD, in most of the standard modules the Pin Outs is written at the backside of LCD panel. Standard HD44870 alphanumeric module has 16 pins…
In case you don’t know, it runs on accurate 5V, you can control the back light using pin 15 and 16, these two Pins are for Back light control ON-OFF.
Schematic
Firmware
People have already written pretty nice, easy to use libraries for these kind of LCD interfacing, for AVR’s one such library was written by a guy name Peter Fleury You can download the 4 bit LCD interfacing Library here, See online user manual and function reference of Peter Fleury’s library here
Example Firmware using avr-gcc
#include < avr/io.h >
#include "lcd.h"
int main(void)
{
/* initialize display, cursor off */
lcd_init(LCD_DISP_ON);
/* clear display and home cursor */
lcd_clrscr();
lcd_gotoxy(3,0);
/* put string to display (line 1) with linefeed */
lcd_puts("avrPrayog\n");
lcd_gotoxy(1,1);
/* cursor is now on 1st char of second line, write second line */
lcd_puts("electroons.com");
while(1);
}
I code, I simulate, I make it real!
Downloads
Comments & Responses
Recent Posts
- Make In India - What it means to Indian Maker’s Community ?
- Breadboard Power Supplies - Read before you Buy One
- Product Review : Discover Wi-Fi extension board for stm32f4 discovery
- Product Review: OKI78SR-5/1.5 Switching Regulator from muRata Power Solutions
- Product Review - STM8S- Discovery by ST Microelectronics
- Know How : Using GSM Modem - Part 2/2
- Know How : Using GSM Modem - Part 1/2
- ST Microelectronics launches STM32 Nucleo Series
- SW18020P Vibration Switch Testing “Shake Switch”
- TCM8230MD Camera Breakout Board PCB, Can also mount AT45DB Series Flash Memory Chip
- IC Packages of Many Kinds - A comprehensive list
- Keil project setup for STM32F4 Discovery
- DIY - 12V 7.2Ah SMF Battery Charger Circuit
- Lonely Night Projects : DIY PMMC and Series Motor Model
- Toys from Trash with Arvind Gupta
- BodyCom Technology by Microchip for Embedded Security & Authentication
- Programmers for Atmel AVR Microcontrollers
- Nikola Tesla - The Greatest Inventor Ever Lived
- Crystal, Resonator and Oscillators, what’s the difference ?
- Pitfalls in STM32 Standard Peripheral Library & Possible Solutions
- Interrupt Driven UART Serial Communication for Atmel AVR
- DIY PICkit2
- What Thomas Edison expected job candidates to know !
- What does ‘AVR’ stands for ?
- Interfacing MCP4725, 12 bit DAC with AVR Microcontroller #avrPrayog
- Interfacing AT93C46 SPI EEPROM with avrPrayog
- How to recover the Unallocated space on Your SD card due to Raspberry Pi OS
- Driving an Alphanumeric LCD with avrPrayog
- Using Arduino/Freeduino as AVR ICSP Programmer
- DoCircuits : Turn your Web Browser into Prototyping Desk
Things You find here
- ADC Interfacing (1)
- Analog Design (4)
- Analog Designs (7)
- Arduino (9)
- ARM Microcontroller (12)
- ARM7 (6)
- Atmel AVR (8)
- Battery Chargers (2)
- Camera Interfacing (1)
- Display (1)
- EAGLE (3)
- EEPROM (2)
- Electrical Enginnering (6)
- Electronics (28)
- General Interest (15)
- General Know How (25)
- GSM Modem (2)
- Hello World (4)
- I2C (2)
- Interfacing Tutorial (15)
- Lonely Night Projects (4)
- LPC21xx (4)
- Make (4)
- mbed (1)
- Microchip (1)
- Microchip PIC (1)
- NXP (4)
- Open Source Ecology (2)
- Open Source Hardware (9)
- PCB Designing (2)
- Physical Computing (5)
- PIC Related (1)
- Power Supply (5)
- Product Review (2)
- Raspberry PI (1)
- Repair Tricks (2)
- SPI (2)
- ST Micro (8)
- STM32 (8)
- STM32F4 Doscovery (8)
- stm8 bit (1)
- Switch Mode Power supply (2)
- Technology (3)
- UART (3)
- Uncategorized (1)
Recently Said
- st1114g on How to recover the Unallocated space on Your SD card due to Raspberry Pi OS
- KpT, on How to recover the Unallocated space on Your SD card due to Raspberry Pi OS
- Neomanderx3 on I2C EEPROM Interfacing with STM32F4 Discovery
- Gábor on DIY PICkit2
- sapher on I2C EEPROM Interfacing with STM32F4 Discovery
- Tonino on DIY PICkit2
- nate on How to recover the Unallocated space on Your SD card due to Raspberry Pi OS
- mahd on TCM8230MD Camera Breakout Board PCB, Can also mount AT45DB Series Flash Memory Chip
- Andrew on How to recover the Unallocated space on Your SD card due to Raspberry Pi OS
- pavan on DIY - 12V 7.2Ah SMF Battery Charger Circuit







