20.6 Initialization and Configuration
Basic configuration of the LCD controller is as follows:
- Enable the LCD Controller in the System Control module using the RCGCLCD register. See Section 4.2.103.
- Enable the DMA, core and LIDD controller (if required) in the LCDCLKEN register.
- Select the LCD mode (LIDD or Raster) by programming the LCDMODE bit in the LCDCTL register. In addition, configure the LCDCP or LCDMCLK frequency through the CLKDIV field.
When operating in LIDD mode:
- Program the LCDLIDDCTL register along with the chip select configuration register, LIDDCSnCFG.
- Select the DMA parameters in the LCDDMACTL register. Program the frame buffer boundaries in the LCDDMABAFB0 and LCDDMACAFB0 registers.
- Enable any required interrupts in the LCDIM register.
- Initiate LIDD mode transactions by setting the DMAEN bit in the LCDLIDDCTL register.
When operating in Raster mode:
- Program the LCDRASTRCTL register along with the raster timings in the LCDRASTRTIMn registers.
- Configure the subpanel display in the LCDRASTRSUBPn registers.
- Select the DMA parameters such as burst size, and memory layout in the LCDDMACTL register. Program the frame buffer boundaries in the LCDDMABAFBn and LCDDMACAFBn registers.
- Enable any required interrupts in the LCDIM register.
- Initiate Raster mode transactions by setting the LCDEN bit in the LCDRASTRCTL register.
The LCD DMA may interface to internal SRAM or the external memory through EPI for transfer of data. To configure the EPI for use with LCD, see Section 16.
NOTE
When using the LCD with EPI to interface to external memory, the external code address space 0x1000.0000 must be selected by programing the ECADR field to 0x1 in the EPI Address Map (EPIADDRMAP) register at EPI offset 0x01C.