Loading...
Searching...
No Matches
pcd8544_internal.h File Reference

Internal definitions for PCD8544 displays. More...

Detailed Description

Internal definitions for PCD8544 displays.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file pcd8544_internal.h.

Go to the source code of this file.

#define RESET_DELAY   (5000) /* keep reset low for 5ms */
 Delay for resetting the device.
 

Communication modes: command or data

#define MODE_CMD   (0)
 we are sending a command
 
#define MODE_DTA   (1)
 we are sending some data
 

Maximum parameter values

#define CONTRAST_MAX   (127U)
 maximum possible contrast value
 
#define TEMP_MAX   (3U)
 maximum possible temp coefficient
 
#define BIAS_MAX   (7U)
 maximum possible bias value
 

Display commands

#define CMD_DISABLE   (0x24)
 set LCD into power down mode
 
#define CMD_ENABLE_H   (0x20)
 ON using horizontal addressing.
 
#define CMD_ENABLE_V   (0x22)
 ON using vertical addressing.
 
#define CMD_EXTENDED   (0x21)
 enter extended instruction set mode
 
#define CMD_MODE_BLANK   (0x08)
 display nothing
 
#define CMD_MODE_NORMAL   (0x0c)
 display memory content
 
#define CMD_MODE_ALLON   (0x09)
 display 'black' screen
 
#define CMD_MODE_INVERSE   (0x0d)
 display inverted memory content
 
#define CMD_SET_Y   (0x40)
 set 3-bit y address, OR with Y value
 
#define CMD_SET_X   (0x80)
 set 7-bit x address, OR with X value
 
#define CMD_EXT_TEMP   (0x04)
 select temperature coefficient
 
#define CMD_EXT_BIAS   (0x10)
 select BIAS value
 
#define CMD_EXT_CONTRAST   (0x80)
 set contrast, OR with [0 - 127]
 

Macro Definition Documentation

◆ BIAS_MAX

#define BIAS_MAX   (7U)

maximum possible bias value

Definition at line 46 of file pcd8544_internal.h.

◆ CMD_DISABLE

#define CMD_DISABLE   (0x24)

set LCD into power down mode

Definition at line 53 of file pcd8544_internal.h.

◆ CMD_ENABLE_H

#define CMD_ENABLE_H   (0x20)

ON using horizontal addressing.

Definition at line 54 of file pcd8544_internal.h.

◆ CMD_ENABLE_V

#define CMD_ENABLE_V   (0x22)

ON using vertical addressing.

Definition at line 55 of file pcd8544_internal.h.

◆ CMD_EXT_BIAS

#define CMD_EXT_BIAS   (0x10)

select BIAS value

Definition at line 67 of file pcd8544_internal.h.

◆ CMD_EXT_CONTRAST

#define CMD_EXT_CONTRAST   (0x80)

set contrast, OR with [0 - 127]

Definition at line 68 of file pcd8544_internal.h.

◆ CMD_EXT_TEMP

#define CMD_EXT_TEMP   (0x04)

select temperature coefficient

Definition at line 66 of file pcd8544_internal.h.

◆ CMD_EXTENDED

#define CMD_EXTENDED   (0x21)

enter extended instruction set mode

Definition at line 56 of file pcd8544_internal.h.

◆ CMD_MODE_ALLON

#define CMD_MODE_ALLON   (0x09)

display 'black' screen

Definition at line 60 of file pcd8544_internal.h.

◆ CMD_MODE_BLANK

#define CMD_MODE_BLANK   (0x08)

display nothing

Definition at line 58 of file pcd8544_internal.h.

◆ CMD_MODE_INVERSE

#define CMD_MODE_INVERSE   (0x0d)

display inverted memory content

Definition at line 61 of file pcd8544_internal.h.

◆ CMD_MODE_NORMAL

#define CMD_MODE_NORMAL   (0x0c)

display memory content

Definition at line 59 of file pcd8544_internal.h.

◆ CMD_SET_X

#define CMD_SET_X   (0x80)

set 7-bit x address, OR with X value

Definition at line 64 of file pcd8544_internal.h.

◆ CMD_SET_Y

#define CMD_SET_Y   (0x40)

set 3-bit y address, OR with Y value

Definition at line 63 of file pcd8544_internal.h.

◆ CONTRAST_MAX

#define CONTRAST_MAX   (127U)

maximum possible contrast value

Definition at line 44 of file pcd8544_internal.h.

◆ MODE_CMD

#define MODE_CMD   (0)

we are sending a command

Definition at line 36 of file pcd8544_internal.h.

◆ MODE_DTA

#define MODE_DTA   (1)

we are sending some data

Definition at line 37 of file pcd8544_internal.h.

◆ RESET_DELAY

#define RESET_DELAY   (5000) /* keep reset low for 5ms */

Delay for resetting the device.

Definition at line 30 of file pcd8544_internal.h.

◆ TEMP_MAX

#define TEMP_MAX   (3U)

maximum possible temp coefficient

Definition at line 45 of file pcd8544_internal.h.