Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ctboard:peripherals:lcd_bg [2016/02/25 13:33] – created feur | ctboard:peripherals:lcd_bg [2022/12/27 16:35] (current) – ruan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Background Light ====== | + | ====== |
- | Each colour of the background light is controlled by a 16 bit PWM generator. \\ | + | Each RGB colour of the background light is controlled by an individual |
- | The brightness can be regulated from 0x0000 (0% / off) to 0xffff (100%). To adapt the brightness curve to the human eye a adadption | + | The brightness |
- | > {{ctboard: | + | > {{ctboard: |
- | > Supported [[ctboard: | + | > Supported [[ctboard: |
\\ | \\ | ||
+ | |||
+ | ===== Registers ===== | ||
+ | |||
+ | The Registers are read / write. | ||
+ | |||
+ | \\ {{ctboard_lcd_pwm_reg.svg}} \\ \\ | ||
===== Programming Example ===== | ===== Programming Example ===== | ||
- | The code snippet bellow shows how to set the background light on the LCD. | + | The code snippets below show how to set the background light on the LCD. |
<code c> | <code c> | ||
Line 22: | Line 28: | ||
<code asm> | <code asm> | ||
- | ADDR_LCD_BG | + | ADDR_LCD_BG |
| | ||
LDR r0, =ADDR_LCD_BG | LDR r0, =ADDR_LCD_BG | ||
+ | LDR r1, =0xffff | ||
STRH r1, [r0, #0] ; Set PWM value for red background light. | STRH r1, [r0, #0] ; Set PWM value for red background light. | ||
STRH r1, [r0, #2] ; Set PWM value for green background light. | STRH r1, [r0, #2] ; Set PWM value for green background light. | ||
Line 30: | Line 37: | ||
</ | </ | ||
\\ | \\ | ||
- | |||
- | ===== Registers ===== | ||
- | |||
- | The Registers are read / write. | ||
- | |||
- | \\ {{ctboard_lcd_pwm_reg.svg}} \\ \\ |