Project 5  Character Liquid-Crystal Display
Neff Site
Macros
hd44780.h File Reference

Header file for the HD44780 controller. More...

Go to the source code of this file.

Macros

#define HD44780_CLEARDISPLAY   0x01
 
#define HD44780_RETURNHOME   0x02
 
#define HD44780_ENTRYMODESET   0x04
 
#define HD44780_INCREMENT   0x02
 
#define HD44780_DECREMENT   0x00
 
#define HD44780_SHIFTON   0x01
 
#define HD44780_SHIFTOFF   0x00
 
#define HD44780_DISPLAYCONTROL   0x08
 
#define HD44780_DISPLAYON   0x04
 
#define HD44780_DISPLAYOFF   0x00
 
#define HD44780_CURSORON   0x02
 
#define HD44780_CURSOROFF   0x00
 
#define HD44780_BLINKON   0x01
 
#define HD44780_BLINKOFF   0x00
 
#define HD44780_CURSORCONTROL   0x10
 
#define HD44780_DISPLAYSHIFT   0x08
 
#define HD44780_CURSORMOVE   0x00
 
#define HD44780_RIGHT   0x04
 
#define HD44780_LEFT   0x00
 
#define HD44780_FUNCTIONSET   0x20
 
#define HD44780_8BITMODE   0x10
 
#define HD44780_4BITMODE   0x00
 
#define HD44780_2LINES   0x08
 
#define HD44780_1LINE   0x00
 
#define HD44780_5x10DOTS   0x04
 
#define HD44780_5x8DOTS   0x00
 
#define HD44780_SETCGRAMADDR   0x40
 
#define HD44780_CGRAMADDR(ADDR)   ((ADDR) & 0x3F)
 
#define HD44780_SETDDRAMADDR   0x80
 
#define HD44780_DDRAMADDR(ADDR)   ((ADDR) & 0x7F)
 

Detailed Description

Header file for the HD44780 controller.

This file defines mnemonics for the opcodes of the HD44780 controller. Please see page 24 of the HD44780 data sheet for the details.

Author
Wolfgang Neff
Version
1.1
Date
2017-11-19
History
Created: 2013-06-23
Modified: 2017-11-19

Macro Definition Documentation

◆ HD44780_1LINE

#define HD44780_1LINE   0x00

◆ HD44780_2LINES

#define HD44780_2LINES   0x08

◆ HD44780_4BITMODE

#define HD44780_4BITMODE   0x00

◆ HD44780_5x10DOTS

#define HD44780_5x10DOTS   0x04

◆ HD44780_5x8DOTS

#define HD44780_5x8DOTS   0x00

◆ HD44780_8BITMODE

#define HD44780_8BITMODE   0x10

◆ HD44780_BLINKOFF

#define HD44780_BLINKOFF   0x00

◆ HD44780_BLINKON

#define HD44780_BLINKON   0x01

◆ HD44780_CGRAMADDR

#define HD44780_CGRAMADDR (   ADDR)    ((ADDR) & 0x3F)

◆ HD44780_CLEARDISPLAY

#define HD44780_CLEARDISPLAY   0x01

◆ HD44780_CURSORCONTROL

#define HD44780_CURSORCONTROL   0x10

◆ HD44780_CURSORMOVE

#define HD44780_CURSORMOVE   0x00

◆ HD44780_CURSOROFF

#define HD44780_CURSOROFF   0x00

◆ HD44780_CURSORON

#define HD44780_CURSORON   0x02

◆ HD44780_DDRAMADDR

#define HD44780_DDRAMADDR (   ADDR)    ((ADDR) & 0x7F)

◆ HD44780_DECREMENT

#define HD44780_DECREMENT   0x00

◆ HD44780_DISPLAYCONTROL

#define HD44780_DISPLAYCONTROL   0x08

◆ HD44780_DISPLAYOFF

#define HD44780_DISPLAYOFF   0x00

◆ HD44780_DISPLAYON

#define HD44780_DISPLAYON   0x04

◆ HD44780_DISPLAYSHIFT

#define HD44780_DISPLAYSHIFT   0x08

◆ HD44780_ENTRYMODESET

#define HD44780_ENTRYMODESET   0x04

◆ HD44780_FUNCTIONSET

#define HD44780_FUNCTIONSET   0x20

◆ HD44780_INCREMENT

#define HD44780_INCREMENT   0x02

◆ HD44780_LEFT

#define HD44780_LEFT   0x00

◆ HD44780_RETURNHOME

#define HD44780_RETURNHOME   0x02

◆ HD44780_RIGHT

#define HD44780_RIGHT   0x04

◆ HD44780_SETCGRAMADDR

#define HD44780_SETCGRAMADDR   0x40

◆ HD44780_SETDDRAMADDR

#define HD44780_SETDDRAMADDR   0x80

◆ HD44780_SHIFTOFF

#define HD44780_SHIFTOFF   0x00

◆ HD44780_SHIFTON

#define HD44780_SHIFTON   0x01
Contact