Project 6  Monochrome Liquid-Crystal Display
Neff Site
Macros
pcd8544.h File Reference

Header file for the PCD8544 controller. More...

Go to the source code of this file.

Macros

#define PCD8544_NOP   0x00
 
#define PCD8544_FUNCTIONSET   0x20
 
#define PCD8544_ACTIVATE   0x00
 
#define PCD8544_POWERDOWN   0x04
 
#define PCD8544_VERTICAL_ADRESSING   0x02
 
#define PCD8544_HORIZONTAL_ADRESSING   0x00
 
#define PCD8544_BASIC_MODE   0x00
 
#define PCD8544_EXTENDED_MODE   0x01
 
#define PCD8544_DISPLAYCONTROL   0x08
 
#define PCD8544_DISPLAY_TEST   0x01
 
#define PCD8544_DISPLAY_BLANK   0x00
 
#define PCD8544_DISPLAY_NORMAL   0x04
 
#define PCD8544_DISPLAY_INVERSE   0x5
 
#define PCD8544_SET_YADDR   0x40
 
#define PCD8544_YADDR(Y)   ((Y) & 0x07)
 
#define PCD8544_SET_XADDR   0x80
 
#define PCD8544_XADDR(X)   ((X) & 0x7f)
 
#define PCD8544_TEMP_CONTROL   0x04
 
#define PCD8544_TEMP(T)   ((T) & 0x03)
 
#define PCD8544_SET_BIAS   0x10
 
#define PCD8544_BIAS(B)   ((B) & 0x07)
 
#define PCD8544_SET_VOP   0x80
 
#define PCD8544_VOP(V)   ((V) & 0x7f)
 

Detailed Description

Header file for the PCD8544 controller.

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

Author
Wolfgang Neff
Version
1.1
Date
2018-01-04
History
Created: 2012-08-27
Modified: 2018-01-04

Macro Definition Documentation

◆ PCD8544_ACTIVATE

#define PCD8544_ACTIVATE   0x00

◆ PCD8544_BASIC_MODE

#define PCD8544_BASIC_MODE   0x00

◆ PCD8544_BIAS

#define PCD8544_BIAS (   B)    ((B) & 0x07)

◆ PCD8544_DISPLAY_BLANK

#define PCD8544_DISPLAY_BLANK   0x00

◆ PCD8544_DISPLAY_INVERSE

#define PCD8544_DISPLAY_INVERSE   0x5

◆ PCD8544_DISPLAY_NORMAL

#define PCD8544_DISPLAY_NORMAL   0x04

◆ PCD8544_DISPLAY_TEST

#define PCD8544_DISPLAY_TEST   0x01

◆ PCD8544_DISPLAYCONTROL

#define PCD8544_DISPLAYCONTROL   0x08

◆ PCD8544_EXTENDED_MODE

#define PCD8544_EXTENDED_MODE   0x01

◆ PCD8544_FUNCTIONSET

#define PCD8544_FUNCTIONSET   0x20

◆ PCD8544_HORIZONTAL_ADRESSING

#define PCD8544_HORIZONTAL_ADRESSING   0x00

◆ PCD8544_NOP

#define PCD8544_NOP   0x00

◆ PCD8544_POWERDOWN

#define PCD8544_POWERDOWN   0x04

◆ PCD8544_SET_BIAS

#define PCD8544_SET_BIAS   0x10

◆ PCD8544_SET_VOP

#define PCD8544_SET_VOP   0x80

◆ PCD8544_SET_XADDR

#define PCD8544_SET_XADDR   0x80

◆ PCD8544_SET_YADDR

#define PCD8544_SET_YADDR   0x40

◆ PCD8544_TEMP

#define PCD8544_TEMP (   T)    ((T) & 0x03)

◆ PCD8544_TEMP_CONTROL

#define PCD8544_TEMP_CONTROL   0x04

◆ PCD8544_VERTICAL_ADRESSING

#define PCD8544_VERTICAL_ADRESSING   0x02

◆ PCD8544_VOP

#define PCD8544_VOP (   V)    ((V) & 0x7f)

◆ PCD8544_XADDR

#define PCD8544_XADDR (   X)    ((X) & 0x7f)

◆ PCD8544_YADDR

#define PCD8544_YADDR (   Y)    ((Y) & 0x07)
Contact