TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (385 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139847 times)
  2. FAT32 Library (72210 times)
  3. Network Ethernet Library (57392 times)
  4. USB Device Library (47740 times)
  5. Network WiFi Library (43364 times)
  6. FT800 Library (42700 times)
  7. GSM click (29981 times)
  8. mikroSDK (28442 times)
  9. PID Library (26989 times)
  10. microSD click (26398 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

MikroC Pro for PIC driver routine for 74HC595 based serial LCD interface

Rating:

5

Author: Rajendra Bhatt

Last Updated: 2014-10-22

Package Version: 1.0.0.0

Category: Graphics & LCD

Downloaded: 3639 times

Followed by: 1 user

License: MIT license  

Contains library routines for 3-wire LCD interface based on 74HC595 shift register. More details are provided in the attached ReadMe document or posted at http://embedded-lab.com/blog/?p=30

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "MikroC Pro for PIC driver routine for 74HC595 based serial LCD interface " changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "MikroC Pro for PIC driver routine for 74HC595 based serial LCD interface " changes.

Do you want to report abuse regarding "MikroC Pro for PIC driver routine for 74HC595 based serial LCD interface ".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

HD44780 based character LCD displays are very popular among hobbyists. The LCD library routines provided with all of MikroElektronika's compilers make their interface with microcontrollers a lot easier. However, these LCDs require at least 6 I/O pins of microcontroller and therefore are not applicable for 8-pin devices like PIC12F series microcontrollers. But, with the use of an external serial-in parallel-out shift register, such as 74HC595, it is possible to interface a character LCD using only 3 I/O pins of the microcontroller, and therefore can be implemented with the 8-pin devices too.


Since 74HC595 is just a shift register with no intelligence of its own, the burden goes to the host microcontroller to appropriately transfer the LCD character/command data and control signals in serial format. I have written this driver routine in mikroC Pro for PIC for this purpose. It has the following six subroutines:


Initialize_LCD() : Initializes the 16×2 character LCD module to operate into 4-bit mode, 2 lines display, 5×7 size character, display ON, with cursor OFF.

Write_LCD_Data() : Sends a character byte to display at current cursor position.

Write_LCD_Nibble() : Used by Write_LCD_Data() and Write_LCD_Cmd() functions to send LCD data and command as two nibbles.

Write_LCD_Text() : Writes a character string at the current cursor position. Uses Write_LCD_Data() within a for loop.

Position_LCD() : Changes the current cursor position.


The following circuit diagram shows the serial LCD interfaced to PIC12F683 microcontroller.


More detail of this can be found HERE.

ALSO FROM THIS AUTHOR

Temperature measurement using TC74 (Microchip) thermal sensor and StartUSB for PIC

0

This project describes how to interface Microchip's TC74 sensor with a PIC microcontroller to measure ambient temperature. The code is written in mikroC Pro for PIC and is illustrated with StartUSB for PIC board.

[Learn More]

Learn how to put a PIC microcontroller to sleep

0

This is actually an experimental tutorial that shows how to put a PIC microcontroller into Sleep mode to lower the power consumption in battery-powered applications. I used PIC16F628A and MikroC Pro for PIC for illustration.

[Learn More]

LED Marquee using PIC16F1847 and shift registers

0

This project is about constructing a mono-color LED matrix display board that consists 320 LEDs arranged in 8 rows and 40 columns. The heart of this project is PIC16F1847 microcontroller and the firmware is developed using mikroC Pro for PIC compiler.

[Learn More]