ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

16X2 Alphanumeric LCD Interfacing with ATmega16

56599
7
Mark as Favourite

LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. These modules are preferred over seven segments and other multi segment LEDs. When you start working with LCD modules you will start feeling the real power of MCU and your imaginations will be touching sky. The alphanumeric LCD that we are going to interface is a 16X2 alphanumeric LCD. It means the LCD can display 16 characters in each row and it has two rows. It is a HD44780 controller based LCD. There are two methods to interface any alphanumeric LCD with AVR ATmega16 microcontroller: 8-bit and 4-bit interfacing method. In 8-bit interfacing method, all the eight data pins of the alphanumeric LCD are used and in 4-bit interfacing method, only the upper 4 data pins (D4, D5, D6 and D7) of the alphanumeric LCD are used to send 8-bit data (or command) to the alphanumeric LCD from the microcontroller. In 8-bit method, the 8-bit data (or command) is sent at a time using the 8 data lines of the alphanumeric LCD but in 4-bit method, the 8-bit data (or command) cannot be sent at a time to the alphanumeric LCD. So, the upper 4 bits of data (or command) are sent first and the lower 4 bits are sent later.

In this project, we will learn How to interface a 16X2 alphanumeric LCD with AVR ATmega16 microcontroller using 8-bit interfacing method. Here, we will display “ABLab Solutions” in 1st row and “www.ablab.in” in 2nd row of the 16X2 alphanumeric LCD.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega16 1pc
AVR USB Programmer 1pc
RG1602A 16X2 Alphanumeric LCD Green 1pc
12V, 1A DC SMPS Adaptor 1pc
1 to 1 Connector-Female to Female 3pc
10 to 10 FRC Female to Female Connector 2pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for 16X2 Alphanumeric LCD Interfacing with ATmega16 is as follows

  • Steps - 1 ( 0f 8 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 8 )

    Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 8 )

    Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 4 ( 0f 8 )

    Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

  • Steps - 5 ( 0f 8 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 6 ( 0f 8 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

  • Steps - 7 ( 0f 8 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 8 ( 0f 8 )

    Download the 16X2 Alphanumeric LCD Interfacing with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 8 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 8 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 8 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 8 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 5 ( 0f 8 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 6 ( 0f 8 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 7 ( 0f 8 )

  • Download the 16X2 Alphanumeric LCD Interfacing with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 8 ( 0f 8 )

Downloads

16X2 Alphanumeric LCD Interfacing with ATmega16 Project File
  • 580 downloads 0 Kb

Post a Comment

    • PrashantKumar
      sir how to made it p10 moduls interface ps2 keyboard
      2017-04-06 13:50:49
      Reply
    • ImamFakhrurrozi
      ok
      2017-05-27 13:17:30
      Reply
    • Shrikant yadav
      sir when i build the program in atmel studio after writing from website it shows only 1 error all the time "no such file or directories" sir please help
      2017-06-21 00:49:26
      Reply
      • sumitshah
        If u change the frequency of crystal to 8000000 then the error can be solved
        2018-10-28 11:26:09
        Reply
    • LokeshKumar
      Very helpfull for all problems
      2017-06-27 19:42:21
      Reply
    • DeepaliPol
      Sir where is sample code. I want the sample code.
      2017-08-06 20:02:12
      Reply