GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
PCD8544.h File Reference

Constants relating to PCD8544 LCD Controller (Nokia 5110 LCD). More...

Go to the source code of this file.

Macros

#define PCD8544_MAX_BANKS   6
 
#define PCD8544_MAX_COLS   84
 
Function set commands
#define PCD8544_NOP   0
 
#define PCD8544_FUNCTION_SET   (1<<5)
 
#define PCD8544_POWER_DOWN   (1<<2)
 
#define PCD8544_HORIZONTAL_ADDRESSING   0
 
#define PCD8544_VERTICAL_ADDRESSING   (1<<1)
 
#define PCD8544_EXTENDED_INSTRUCTION   (1<<0)
 
Basic instruction set (H=0)
#define PCD8544_DISPLAY_CONTROL   (1<<3)
 
#define PCD8544_DISPLAY_BLANK   0x0
 
#define PCD8544_DISPLAY_NORMAL   (1<<2)
 
#define PCD8544_DISPLAY_ALL_ON   (1<<0)
 
#define PCD8544_DISPLAY_INVERTED   (1<<2|1<<0)
 
#define PCD8544_SET_Y_ADDRESS   0x40
 
#define PCD8544_SET_X_ADDRESS   0x80
 
Extended instruction set (H=1)
#define PCD8544_SET_TEMP   (1<<2)
 
#define PCD8544_TEMPCO_0   0b00
 
#define PCD8544_TEMPCO_1   0b01
 
#define PCD8544_TEMPCO_2   0b10
 
#define PCD8544_TEMPCO_3   0b11
 
#define PCD8544_SET_BIAS   (1<<4)
 
#define PCD8544_SET_VOP   (1<<7)
 

Detailed Description

Constants relating to PCD8544 LCD Controller (Nokia 5110 LCD).

Author
Andy Gock

Definition in file PCD8544.h.

Macro Definition Documentation

#define PCD8544_DISPLAY_ALL_ON   (1<<0)

Definition at line 57 of file PCD8544.h.

#define PCD8544_DISPLAY_BLANK   0x0

Definition at line 55 of file PCD8544.h.

#define PCD8544_DISPLAY_CONTROL   (1<<3)

Definition at line 54 of file PCD8544.h.

#define PCD8544_DISPLAY_INVERTED   (1<<2|1<<0)

Definition at line 58 of file PCD8544.h.

#define PCD8544_DISPLAY_NORMAL   (1<<2)

Definition at line 56 of file PCD8544.h.

#define PCD8544_EXTENDED_INSTRUCTION   (1<<0)

Definition at line 47 of file PCD8544.h.

#define PCD8544_FUNCTION_SET   (1<<5)

Definition at line 43 of file PCD8544.h.

#define PCD8544_HORIZONTAL_ADDRESSING   0

Definition at line 45 of file PCD8544.h.

#define PCD8544_MAX_BANKS   6

Definition at line 78 of file PCD8544.h.

#define PCD8544_MAX_COLS   84

Definition at line 79 of file PCD8544.h.

#define PCD8544_NOP   0

Definition at line 42 of file PCD8544.h.

#define PCD8544_POWER_DOWN   (1<<2)

Definition at line 44 of file PCD8544.h.

#define PCD8544_SET_BIAS   (1<<4)
Todo:
Check if these instructions are from this group

Definition at line 74 of file PCD8544.h.

#define PCD8544_SET_TEMP   (1<<2)

Definition at line 67 of file PCD8544.h.

#define PCD8544_SET_VOP   (1<<7)

Definition at line 75 of file PCD8544.h.

#define PCD8544_SET_X_ADDRESS   0x80

Definition at line 60 of file PCD8544.h.

#define PCD8544_SET_Y_ADDRESS   0x40

Definition at line 59 of file PCD8544.h.

#define PCD8544_TEMPCO_0   0b00

Definition at line 68 of file PCD8544.h.

#define PCD8544_TEMPCO_1   0b01

Definition at line 69 of file PCD8544.h.

#define PCD8544_TEMPCO_2   0b10

Definition at line 70 of file PCD8544.h.

#define PCD8544_TEMPCO_3   0b11

Definition at line 71 of file PCD8544.h.

#define PCD8544_VERTICAL_ADDRESSING   (1<<1)

Definition at line 46 of file PCD8544.h.