LCD-TFT Controller LTDC 0x0 0x400 registers SSCR SSCR Synchronization Size Configuration Register 0x8 0x20 read-write 0x00000000 HSW Horizontal Synchronization Width (in units of pixel clock period) 16 12 VSH Vertical Synchronization Height (in units of horizontal scan line) 0 11 BPCR BPCR Back Porch Configuration Register 0xC 0x20 read-write 0x00000000 AHBP Accumulated Horizontal back porch (in units of pixel clock period) 16 12 AVBP Accumulated Vertical back porch (in units of horizontal scan line) 0 11 AWCR AWCR Active Width Configuration Register 0x10 0x20 read-write 0x00000000 AAW Accumulated Active Width (in units of pixel clock period) 16 12 AAH Accumulated Active Height (in units of horizontal scan line) 0 11 TWCR TWCR Total Width Configuration Register 0x14 0x20 read-write 0x00000000 TOTALW Total Width (in units of pixel clock period) 16 12 TOTALH Total Height (in units of horizontal scan line) 0 11 GCR GCR Global Control Register 0x18 0x20 0x00002220 HSPOL Horizontal Synchronization Polarity 31 1 read-write VSPOL Vertical Synchronization Polarity 30 1 read-write DEPOL Data Enable Polarity 29 1 read-write PCPOL Pixel Clock Polarity 28 1 read-write DEN Dither Enable 16 1 read-write DRW Dither Red Width 12 3 read-only DGW Dither Green Width 8 3 read-only DBW Dither Blue Width 4 3 read-only LTDCEN LCD-TFT controller enable bit 0 1 read-write SRCR SRCR Shadow Reload Configuration Register 0x24 0x20 read-write 0x00000000 VBR Vertical Blanking Reload 1 1 IMR Immediate Reload 0 1 BCCR BCCR Background Color Configuration Register 0x2C 0x20 read-write 0x00000000 BC Background Color Red value 0 24 IER IER Interrupt Enable Register 0x34 0x20 read-write 0x00000000 RRIE Register Reload interrupt enable 3 1 TERRIE Transfer Error Interrupt Enable 2 1 FUIE FIFO Underrun Interrupt Enable 1 1 LIE Line Interrupt Enable 0 1 ISR ISR Interrupt Status Register 0x38 0x20 read-only 0x00000000 RRIF Register Reload Interrupt Flag 3 1 TERRIF Transfer Error interrupt flag 2 1 FUIF FIFO Underrun Interrupt flag 1 1 LIF Line Interrupt flag 0 1 ICR ICR Interrupt Clear Register 0x3C 0x20 write-only 0x00000000 CRRIF Clears Register Reload Interrupt Flag 3 1 CTERRIF Clears the Transfer Error Interrupt Flag 2 1 CFUIF Clears the FIFO Underrun Interrupt flag 1 1 CLIF Clears the Line Interrupt Flag 0 1 LIPCR LIPCR Line Interrupt Position Configuration Register 0x40 0x20 read-write 0x00000000 LIPOS Line Interrupt Position 0 11 CPSR CPSR Current Position Status Register 0x44 0x20 read-only 0x00000000 CXPOS Current X Position 16 16 CYPOS Current Y Position 0 16 CDSR CDSR Current Display Status Register 0x48 0x20 read-only 0x0000000F HSYNCS Horizontal Synchronization display Status 3 1 VSYNCS Vertical Synchronization display Status 2 1 HDES Horizontal Data Enable display Status 1 1 VDES Vertical Data Enable display Status 0 1 L1CR L1CR Layerx Control Register 0x84 0x20 read-write 0x00000000 CLUTEN Color Look-Up Table Enable 4 1 COLKEN Color Keying Enable 1 1 LEN Layer Enable 0 1 L1WHPCR L1WHPCR Layerx Window Horizontal Position Configuration Register 0x88 0x20 read-write 0x00000000 WHSPPOS Window Horizontal Stop Position 16 12 WHSTPOS Window Horizontal Start Position 0 12 L1WVPCR L1WVPCR Layerx Window Vertical Position Configuration Register 0x8C 0x20 read-write 0x00000000 WVSPPOS Window Vertical Stop Position 16 11 WVSTPOS Window Vertical Start Position 0 11 L1CKCR L1CKCR Layerx Color Keying Configuration Register 0x90 0x20 read-write 0x00000000 CKRED Color Key Red value 16 8 CKGREEN Color Key Green value 8 8 CKBLUE Color Key Blue value 0 8 L1PFCR L1PFCR Layerx Pixel Format Configuration Register 0x94 0x20 read-write 0x00000000 PF Pixel Format 0 3 L1CACR L1CACR Layerx Constant Alpha Configuration Register 0x98 0x20 read-write 0x00000000 CONSTA Constant Alpha 0 8 L1DCCR L1DCCR Layerx Default Color Configuration Register 0x9C 0x20 read-write 0x00000000 DCALPHA Default Color Alpha 24 8 DCRED Default Color Red 16 8 DCGREEN Default Color Green 8 8 DCBLUE Default Color Blue 0 8 L1BFCR L1BFCR Layerx Blending Factors Configuration Register 0xA0 0x20 read-write 0x00000607 BF1 Blending Factor 1 8 3 BF2 Blending Factor 2 0 3 L1CFBAR L1CFBAR Layerx Color Frame Buffer Address Register 0xAC 0x20 read-write 0x00000000 CFBADD Color Frame Buffer Start Address 0 32 L1CFBLR L1CFBLR Layerx Color Frame Buffer Length Register 0xB0 0x20 read-write 0x00000000 CFBP Color Frame Buffer Pitch in bytes 16 13 CFBLL Color Frame Buffer Line Length 0 13 L1CFBLNR L1CFBLNR Layerx ColorFrame Buffer Line Number Register 0xB4 0x20 read-write 0x00000000 CFBLNBR Frame Buffer Line Number 0 11 L1CLUTWR L1CLUTWR Layerx CLUT Write Register 0xC4 0x20 write-only 0x00000000 CLUTADD CLUT Address 24 8 RED Red value 16 8 GREEN Green value 8 8 BLUE Blue value 0 8 L2CR L2CR Layerx Control Register 0x104 0x20 read-write 0x00000000 CLUTEN Color Look-Up Table Enable 4 1 COLKEN Color Keying Enable 1 1 LEN Layer Enable 0 1 L2WHPCR L2WHPCR Layerx Window Horizontal Position Configuration Register 0x108 0x20 read-write 0x00000000 WHSPPOS Window Horizontal Stop Position 16 12 WHSTPOS Window Horizontal Start Position 0 12 L2WVPCR L2WVPCR Layerx Window Vertical Position Configuration Register 0x10C 0x20 read-write 0x00000000 WVSPPOS Window Vertical Stop Position 16 11 WVSTPOS Window Vertical Start Position 0 11 L2CKCR L2CKCR Layerx Color Keying Configuration Register 0x110 0x20 read-write 0x00000000 CKRED Color Key Red value 15 9 CKGREEN Color Key Green value 8 7 CKBLUE Color Key Blue value 0 8 L2PFCR L2PFCR Layerx Pixel Format Configuration Register 0x114 0x20 read-write 0x00000000 PF Pixel Format 0 3 L2CACR L2CACR Layerx Constant Alpha Configuration Register 0x118 0x20 read-write 0x00000000 CONSTA Constant Alpha 0 8 L2DCCR L2DCCR Layerx Default Color Configuration Register 0x11C 0x20 read-write 0x00000000 DCALPHA Default Color Alpha 24 8 DCRED Default Color Red 16 8 DCGREEN Default Color Green 8 8 DCBLUE Default Color Blue 0 8 L2BFCR L2BFCR Layerx Blending Factors Configuration Register 0x120 0x20 read-write 0x00000607 BF1 Blending Factor 1 8 3 BF2 Blending Factor 2 0 3 L2CFBAR L2CFBAR Layerx Color Frame Buffer Address Register 0x12C 0x20 read-write 0x00000000 CFBADD Color Frame Buffer Start Address 0 32 L2CFBLR L2CFBLR Layerx Color Frame Buffer Length Register 0x130 0x20 read-write 0x00000000 CFBP Color Frame Buffer Pitch in bytes 16 13 CFBLL Color Frame Buffer Line Length 0 13 L2CFBLNR L2CFBLNR Layerx ColorFrame Buffer Line Number Register 0x134 0x20 read-write 0x00000000 CFBLNBR Frame Buffer Line Number 0 11 L2CLUTWR L2CLUTWR Layerx CLUT Write Register 0x144 0x20 write-only 0x00000000 CLUTADD CLUT Address 24 8 RED Red value 16 8 GREEN Green value 8 8 BLUE Blue value 0 8