5.2.7.7 LCDC Configuration Register 6
This register can only be written if WPCFGE is cleared in the LCDC Write Protection Mode Register.
GCLK must be running before writing in this register.| Name: | LCDC_LCDCFG6 |
| Offset: | 0x00000018 |
| Reset: | 0x00000000 |
| Property: | Read/Write |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| Access | |||||||||
| Reset |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| Access | |||||||||
| Reset |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| PWMCVAL[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| PWMPOL | PWMPS[3:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | R/W | ||||
| Reset | 0 | 0 | 0 | 0 | 0 | ||||
Bits 15:8 – PWMCVAL[7:0] LCDC PWM Compare Value
PWM compare value. Used to adjust the analog value obtained after an external filter to control the contrast of the display.
Bit 4 – PWMPOL LCDC PWM Signal Polarity
Defines the polarity of the PWM output signal.
| Value | Description |
|---|---|
| 0 | The output pulses are low level. |
| 1 | The output pulses are high level (the output is high whenever the value in the counter is less than the value PWMCVAL). |
Bits 3:0 – PWMPS[3:0] PWM Clock Prescaler
Selects the configuration of the counter prescaler module.
| Value | Name | Description |
|---|---|---|
| 0 | DIV_1 | The counter advances at a rate of fCOUNTER = fPWM_SELECTED_CLOCK |
| 1 | DIV_2 | The counter advances at a rate of fCOUNTER = fPWM_SELECTED_CLOCK/2 |
| 2 | DIV_4 | The counter advances at a rate of fCOUNTER = fPWM_SELECTED_CLOCK/4 |
| 3 | DIV_8 | The counter advances at a rate of fCOUNTER = fPWM_SELECTED_CLOCK/8 |
| 4 | DIV_16 | The counter advances at a rate of fCOUNTER = fPWM_SELECTED_CLOCK/16 |
| 5 | DIV_32 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/32 |
| 6 | DIV_64 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/64 |
| 7 | DIV_128 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/128 |
| 8 | DIV_256 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/256 |
| 9 | DIV_512 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/512 |
| 10 | DIV_1024 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/1024 |
| 11 | DIV_2048 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/2048 |
| 12 | DIV_4096 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/4096 |
| 13 | DIV_8192 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/8192 |
| 14 | DIV_16384 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/16384 |
| 15 | DIV_32768 | The counter advances at a of rate fCOUNTER = fPWM_SELECTED_CLOCK/32768 |
