Microchip® Advanced Software Framework

ili9341_regs.h File Reference

registers definition for ili9341 TFT display component.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define ILI9341_CMD_BACKLIGHT_CONTROL_1   0xB8
 backlight control1 More...
 
#define ILI9341_CMD_BACKLIGHT_CONTROL_2   0xB9
 backlight control2 More...
 
#define ILI9341_CMD_BACKLIGHT_CONTROL_3   0xBA
 backlight control3 More...
 
#define ILI9341_CMD_BACKLIGHT_CONTROL_4   0xBB
 backlight control 4 More...
 
#define ILI9341_CMD_BACKLIGHT_CONTROL_5   0xBC
 backlight control 5 More...
 
#define ILI9341_CMD_BACKLIGHT_CONTROL_7   0xBE
 backlight control 7 More...
 
#define ILI9341_CMD_BACKLIGHT_CONTROL_8   0xBF
 backlight control 8 More...
 
#define ILI9341_CMD_BLANKING_PORCH_CONTROL   0xB5
 blanking porch control More...
 
#define ILI9341_CMD_COLOR_SET   0x2D
 Color set. More...
 
#define ILI9341_CMD_COLUMN_ADDRESS_SET   0x2A
 Column address set. More...
 
#define ILI9341_CMD_DIGITAL_GAMMA_CONTROL_1   0xE2
 digital gamma control 1 More...
 
#define ILI9341_CMD_DIGITAL_GAMMA_CONTROL_2   0xE3
 digital gamma control 2 More...
 
#define ILI9341_CMD_DISP_INVERSION_OFF   0x20
 Display inversion off. More...
 
#define ILI9341_CMD_DISP_INVERSION_ON   0x21
 Display inversion on. More...
 
#define ILI9341_CMD_DISPLAY_FUNCTION_CTL   0xB6
 display function control More...
 
#define ILI9341_CMD_DISPLAY_INVERSION_CONTROL   0xB4
 display inversion control More...
 
#define ILI9341_CMD_DISPLAY_OFF   0x28
 Display off. More...
 
#define ILI9341_CMD_DISPLAY_ON   0x29
 Display on. More...
 
#define ILI9341_CMD_DRIVER_TIMING_CTL_A   0xE8
 driver timing control A More...
 
#define ILI9341_CMD_DRIVER_TIMING_CTL_B   0xEA
 driver timing control B More...
 
#define ILI9341_CMD_ENABLE_3_GAMMA_CONTROL   0xF2
 enable 3g gamma control More...
 
#define ILI9341_CMD_ENTER_SLEEP_MODE   0x10
 Enter sleep mode. More...
 
#define ILI9341_CMD_ENTRY_MODE_SET   0xB7
 entry mode set More...
 
#define ILI9341_CMD_FRAME_RATE_CONTROL_IDLE_8COLOR   0xB2
 frame control in idle mode More...
 
#define ILI9341_CMD_FRAME_RATE_CONTROL_NORMAL   0xB1
 frame control More...
 
#define ILI9341_CMD_FRAME_RATE_CONTROL_PARTIAL   0xB3
 frame control in partial mode More...
 
#define ILI9341_CMD_GAMMA_SET   0x26
 Gamma set. More...
 
#define ILI9341_CMD_GET_SCANLINE   0x45
 get scanline More...
 
#define ILI9341_CMD_IDLE_MODE_OFF   0x38
 Idle mode off. More...
 
#define ILI9341_CMD_IDLE_MODE_ON   0x39
 Idle mode on. More...
 
#define ILI9341_CMD_INTERFACE_CONTROL   0xF6
 Interface control. More...
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL   0x36
 Memory Access control. More...
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_BGR   (0x1u << 3)
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MH   (0x1u << 2)
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_ML   (0x1u << 4)
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MV   (0x1u << 5)
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MX   (0x1u << 6)
 
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MY   (0x1u << 7)
 
#define ILI9341_CMD_MEMORY_READ   0x2E
 Memory read. More...
 
#define ILI9341_CMD_MEMORY_WRITE   0x2C
 Memory write. More...
 
#define ILI9341_CMD_NEGATIVE_GAMMA_CORRECTION   0xE1
 negative gamma correction More...
 
#define ILI9341_CMD_NOP   0x00
 ili9341 LCD Registers More...
 
#define ILI9341_CMD_NORMAL_DISP_MODE_ON   0x13
 Normal display mode on. More...
 
#define ILI9341_CMD_NVMEM_PROTECTION_KEY   0xD1
 NV memory protection key. More...
 
#define ILI9341_CMD_NVMEM_STATUS_READ   0xD2
 NV memory status read. More...
 
#define ILI9341_CMD_NVMEM_WRITE   0xD0
 NV memory write. More...
 
#define ILI9341_CMD_PAGE_ADDRESS_SET   0x2B
 Page address set. More...
 
#define ILI9341_CMD_PARTIAL_AREA   0x30
 Partial area. More...
 
#define ILI9341_CMD_PARTIAL_MODE_ON   0x12
 Partial mode on. More...
 
#define ILI9341_CMD_PIXEL_FORMAT_SET   0x3A
 Pixel Format set. More...
 
#define ILI9341_CMD_POSITIVE_GAMMA_CORRECTION   0xE0
 positive gamma correction More...
 
#define ILI9341_CMD_POWER_CONTROL_1   0xC0
 power control 1 More...
 
#define ILI9341_CMD_POWER_CONTROL_2   0xC1
 power control 2 More...
 
#define ILI9341_CMD_POWER_CONTROL_A   0xCB
 Power control A. More...
 
#define ILI9341_CMD_POWER_CONTROL_B   0xCF
 Power control B. More...
 
#define ILI9341_CMD_POWER_ON_SEQUENCE_CONTROL   0xED
 power-on sequence control More...
 
#define ILI9341_CMD_PUMP_RATIO_CONTROL   0xF7
 pump ration control More...
 
#define ILI9341_CMD_READ_CONTENT_ADAPT_BRIGHTNESS   0x56
 read content adaptive brightness control More...
 
#define ILI9341_CMD_READ_CTRL_DISPLAY   0x54
 read control display More...
 
#define ILI9341_CMD_READ_DISP_ID   0x04
 Read Display Identification information. More...
 
#define ILI9341_CMD_READ_DISP_IMAGE_FORMAT   0x0D
 Read display image format. More...
 
#define ILI9341_CMD_READ_DISP_MADCTRL   0x0B
 Read display MADCTL. More...
 
#define ILI9341_CMD_READ_DISP_PIXEL_FORMAT   0x0C
 Read display pixel format. More...
 
#define ILI9341_CMD_READ_DISP_POWER_MODE   0x0A
 Read display power mode. More...
 
#define ILI9341_CMD_READ_DISP_SELF_DIAGNOSTIC   0x0F
 read display self-diagnostic resutl More...
 
#define ILI9341_CMD_READ_DISP_SIGNAL_MODE   0x0E
 Read display signal mode. More...
 
#define ILI9341_CMD_READ_DISP_STATUS   0x09
 Read display status. More...
 
#define ILI9341_CMD_READ_DISPLAY_BRIGHTNESS   0x52
 read display brightness More...
 
#define ILI9341_CMD_READ_ID1   0xDA
 Read ID1. More...
 
#define ILI9341_CMD_READ_ID2   0xDB
 Read ID2. More...
 
#define ILI9341_CMD_READ_ID3   0xDC
 Read ID3. More...
 
#define ILI9341_CMD_READ_ID4   0xD3
 Read ID4. More...
 
#define ILI9341_CMD_READ_MEMORY_CONTINUE   0x3E
 Read memory continue. More...
 
#define ILI9341_CMD_READ_MIN_CAB_LEVEL   0x5F
 read CABC minimum brightness More...
 
#define ILI9341_CMD_RGB_SIGNAL_CONTROL   0xB0
 Level 2 Commands (from the display Datasheet) More...
 
#define ILI9341_CMD_SET_TEAR_SCANLINE   0x44
 set tear scanline More...
 
#define ILI9341_CMD_SLEEP_OUT   0x11
 Sleep out. More...
 
#define ILI9341_CMD_SOFTWARE_RESET   0x01
 Software reset. More...
 
#define ILI9341_CMD_TEARING_EFFECT_LINE_OFF   0x34
 Tearing effect line off. More...
 
#define ILI9341_CMD_TEARING_EFFECT_LINE_ON   0x35
 Tearing effect line on. More...
 
#define ILI9341_CMD_VCOM_CONTROL_1   0xC5
 VCOM control 1. More...
 
#define ILI9341_CMD_VCOM_CONTROL_2   0xC7
 VCOM control 2. More...
 
#define ILI9341_CMD_VERT_SCROLL_DEFINITION   0x33
 Vertical scrolling definition. More...
 
#define ILI9341_CMD_VERT_SCROLL_START_ADDRESS   0x37
 Vetical scrolling start address. More...
 
#define ILI9341_CMD_WRITE_CONTENT_ADAPT_BRIGHTNESS   0x55
 write content adaptive brightness control More...
 
#define ILI9341_CMD_WRITE_CTRL_DISPLAY   0x53
 write control display More...
 
#define ILI9341_CMD_WRITE_DISPLAY_BRIGHTNESS   0x51
 write display brightness More...
 
#define ILI9341_CMD_WRITE_MEMORY_CONTINUE   0x3C
 write memory continue More...
 
#define ILI9341_CMD_WRITE_MIN_CAB_LEVEL   0x5E
 write CABC minimum brightness More...
 
#define ILI9341_DISP_FUNC_CTL_GS   (0x1u << 6)
 
#define ILI9341_DISP_FUNC_CTL_ISC(value)
 
#define ILI9341_DISP_FUNC_CTL_ISC_MSK   (0x0F << 0)
 
#define ILI9341_DISP_FUNC_CTL_ISC_POS   0
 
#define ILI9341_DISP_FUNC_CTL_REV   (0x1u << 7)
 
#define ILI9341_DISP_FUNC_CTL_SM   (0x1u << 4)
 
#define ILI9341_DISP_FUNC_CTL_SS   (0x1u << 5)
 

#define ILI9341_CMD_BACKLIGHT_CONTROL_1   0xB8

backlight control1

#define ILI9341_CMD_BACKLIGHT_CONTROL_2   0xB9

backlight control2

#define ILI9341_CMD_BACKLIGHT_CONTROL_3   0xBA

backlight control3

#define ILI9341_CMD_BACKLIGHT_CONTROL_4   0xBB

backlight control 4

#define ILI9341_CMD_BACKLIGHT_CONTROL_5   0xBC

backlight control 5

#define ILI9341_CMD_BACKLIGHT_CONTROL_7   0xBE

backlight control 7

#define ILI9341_CMD_BACKLIGHT_CONTROL_8   0xBF

backlight control 8

#define ILI9341_CMD_BLANKING_PORCH_CONTROL   0xB5

blanking porch control

#define ILI9341_CMD_COLOR_SET   0x2D

Color set.

#define ILI9341_CMD_COLUMN_ADDRESS_SET   0x2A

Column address set.

Referenced by ili93xx_send_draw_limits(), and ili93xx_set_window().

#define ILI9341_CMD_DIGITAL_GAMMA_CONTROL_1   0xE2

digital gamma control 1

#define ILI9341_CMD_DIGITAL_GAMMA_CONTROL_2   0xE3

digital gamma control 2

#define ILI9341_CMD_DISP_INVERSION_OFF   0x20

Display inversion off.

#define ILI9341_CMD_DISP_INVERSION_ON   0x21

Display inversion on.

#define ILI9341_CMD_DISPLAY_FUNCTION_CTL   0xB6

display function control

Referenced by ili93xx_init().

#define ILI9341_CMD_DISPLAY_INVERSION_CONTROL   0xB4

display inversion control

#define ILI9341_CMD_DISPLAY_OFF   0x28

Display off.

Referenced by ili93xx_display_off().

#define ILI9341_CMD_DISPLAY_ON   0x29

Display on.

Referenced by ili93xx_display_on(), and ili93xx_init().

#define ILI9341_CMD_DRIVER_TIMING_CTL_A   0xE8

driver timing control A

Referenced by ili93xx_init().

#define ILI9341_CMD_DRIVER_TIMING_CTL_B   0xEA

driver timing control B

Referenced by ili93xx_init().

#define ILI9341_CMD_ENABLE_3_GAMMA_CONTROL   0xF2

enable 3g gamma control

#define ILI9341_CMD_ENTER_SLEEP_MODE   0x10

Enter sleep mode.

#define ILI9341_CMD_ENTRY_MODE_SET   0xB7

entry mode set

#define ILI9341_CMD_FRAME_RATE_CONTROL_IDLE_8COLOR   0xB2

frame control in idle mode

#define ILI9341_CMD_FRAME_RATE_CONTROL_NORMAL   0xB1

frame control

#define ILI9341_CMD_FRAME_RATE_CONTROL_PARTIAL   0xB3

frame control in partial mode

#define ILI9341_CMD_GAMMA_SET   0x26

Gamma set.

#define ILI9341_CMD_GET_SCANLINE   0x45

get scanline

#define ILI9341_CMD_IDLE_MODE_OFF   0x38

Idle mode off.

#define ILI9341_CMD_IDLE_MODE_ON   0x39

Idle mode on.

#define ILI9341_CMD_INTERFACE_CONTROL   0xF6

Interface control.

#define ILI9341_CMD_MEMORY_ACCESS_CONTROL   0x36

Memory Access control.

Referenced by ili93xx_init(), ili93xx_set_display_direction(), and ili93xx_set_orientation().

#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_BGR   (0x1u << 3)
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MH   (0x1u << 2)
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_ML   (0x1u << 4)
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MV   (0x1u << 5)
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MX   (0x1u << 6)
#define ILI9341_CMD_MEMORY_ACCESS_CONTROL_MY   (0x1u << 7)
#define ILI9341_CMD_MEMORY_READ   0x2E

Memory read.

Referenced by ili93xx_read_gram(), and ili93xx_read_ram_prepare().

#define ILI9341_CMD_NEGATIVE_GAMMA_CORRECTION   0xE1

negative gamma correction

#define ILI9341_CMD_NOP   0x00

ili9341 LCD Registers

Level 1 Commands (from the display Datasheet) Nop operation

#define ILI9341_CMD_NORMAL_DISP_MODE_ON   0x13

Normal display mode on.

Referenced by ili93xx_disable_scroll().

#define ILI9341_CMD_NVMEM_PROTECTION_KEY   0xD1

NV memory protection key.

#define ILI9341_CMD_NVMEM_STATUS_READ   0xD2

NV memory status read.

#define ILI9341_CMD_NVMEM_WRITE   0xD0

NV memory write.

#define ILI9341_CMD_PAGE_ADDRESS_SET   0x2B

Page address set.

Referenced by ili93xx_send_draw_limits(), and ili93xx_set_window().

#define ILI9341_CMD_PARTIAL_AREA   0x30

Partial area.

#define ILI9341_CMD_PARTIAL_MODE_ON   0x12

Partial mode on.

#define ILI9341_CMD_PIXEL_FORMAT_SET   0x3A

Pixel Format set.

Referenced by ili93xx_init().

#define ILI9341_CMD_POSITIVE_GAMMA_CORRECTION   0xE0

positive gamma correction

#define ILI9341_CMD_POWER_CONTROL_1   0xC0

power control 1

Referenced by ili93xx_init().

#define ILI9341_CMD_POWER_CONTROL_2   0xC1

power control 2

Referenced by ili93xx_init().

#define ILI9341_CMD_POWER_CONTROL_A   0xCB

Power control A.

Referenced by ili93xx_init().

#define ILI9341_CMD_POWER_CONTROL_B   0xCF

Power control B.

Referenced by ili93xx_init().

#define ILI9341_CMD_POWER_ON_SEQUENCE_CONTROL   0xED

power-on sequence control

#define ILI9341_CMD_PUMP_RATIO_CONTROL   0xF7

pump ration control

Referenced by ili93xx_init().

#define ILI9341_CMD_READ_CONTENT_ADAPT_BRIGHTNESS   0x56

read content adaptive brightness control

#define ILI9341_CMD_READ_CTRL_DISPLAY   0x54

read control display

#define ILI9341_CMD_READ_DISP_ID   0x04

Read Display Identification information.

#define ILI9341_CMD_READ_DISP_IMAGE_FORMAT   0x0D

Read display image format.

#define ILI9341_CMD_READ_DISP_MADCTRL   0x0B

Read display MADCTL.

#define ILI9341_CMD_READ_DISP_PIXEL_FORMAT   0x0C

Read display pixel format.

#define ILI9341_CMD_READ_DISP_POWER_MODE   0x0A

Read display power mode.

#define ILI9341_CMD_READ_DISP_SELF_DIAGNOSTIC   0x0F

read display self-diagnostic resutl

#define ILI9341_CMD_READ_DISP_SIGNAL_MODE   0x0E

Read display signal mode.

#define ILI9341_CMD_READ_DISP_STATUS   0x09

Read display status.

#define ILI9341_CMD_READ_DISPLAY_BRIGHTNESS   0x52

read display brightness

#define ILI9341_CMD_READ_ID1   0xDA

Read ID1.

#define ILI9341_CMD_READ_ID2   0xDB

Read ID2.

#define ILI9341_CMD_READ_ID3   0xDC

Read ID3.

#define ILI9341_CMD_READ_ID4   0xD3

Read ID4.

Referenced by ili93xx_device_type_identify().

#define ILI9341_CMD_READ_MEMORY_CONTINUE   0x3E

Read memory continue.

#define ILI9341_CMD_READ_MIN_CAB_LEVEL   0x5F

read CABC minimum brightness

#define ILI9341_CMD_RGB_SIGNAL_CONTROL   0xB0

Level 2 Commands (from the display Datasheet)

RGB interface signal control

#define ILI9341_CMD_SET_TEAR_SCANLINE   0x44

set tear scanline

#define ILI9341_CMD_SLEEP_OUT   0x11

Sleep out.

Referenced by ili93xx_init().

#define ILI9341_CMD_SOFTWARE_RESET   0x01

Software reset.

#define ILI9341_CMD_TEARING_EFFECT_LINE_OFF   0x34

Tearing effect line off.

#define ILI9341_CMD_TEARING_EFFECT_LINE_ON   0x35

Tearing effect line on.

#define ILI9341_CMD_VCOM_CONTROL_1   0xC5

VCOM control 1.

Referenced by ili93xx_init().

#define ILI9341_CMD_VCOM_CONTROL_2   0xC7

VCOM control 2.

Referenced by ili93xx_init().

#define ILI9341_CMD_VERT_SCROLL_DEFINITION   0x33

Vertical scrolling definition.

Referenced by ili93xx_vscroll_area_define().

#define ILI9341_CMD_VERT_SCROLL_START_ADDRESS   0x37

Vetical scrolling start address.

Referenced by ili93xx_scroll().

#define ILI9341_CMD_WRITE_CONTENT_ADAPT_BRIGHTNESS   0x55

write content adaptive brightness control

#define ILI9341_CMD_WRITE_CTRL_DISPLAY   0x53

write control display

#define ILI9341_CMD_WRITE_DISPLAY_BRIGHTNESS   0x51

write display brightness

#define ILI9341_CMD_WRITE_MEMORY_CONTINUE   0x3C
#define ILI9341_CMD_WRITE_MIN_CAB_LEVEL   0x5E

write CABC minimum brightness

#define ILI9341_DISP_FUNC_CTL_GS   (0x1u << 6)
#define ILI9341_DISP_FUNC_CTL_ISC (   value)
Value:
#define ILI9341_DISP_FUNC_CTL_ISC_MSK
Definition: ili9341_regs.h:176
#define ILI9341_DISP_FUNC_CTL_ISC_POS
Definition: ili9341_regs.h:175
#define ILI9341_DISP_FUNC_CTL_ISC_MSK   (0x0F << 0)
#define ILI9341_DISP_FUNC_CTL_ISC_POS   0
#define ILI9341_DISP_FUNC_CTL_REV   (0x1u << 7)
#define ILI9341_DISP_FUNC_CTL_SM   (0x1u << 4)
#define ILI9341_DISP_FUNC_CTL_SS   (0x1u << 5)