RGB¶
Register Listing for RGB¶
Register |
Address |
|---|---|
RGB_DAT¶
Address: 0xe0006800 + 0x0 = 0xe0006800
This is the value for the
SB_LEDDA_IP.DATregister. It is directly written into theSB_LEDDA_IPhardware block, so you should refer to http://www.latticesemi.com/view_document?document_id=50668. The contents of this register are written to the address specified inADDRimmediately upon writing this register.
RGB_ADDR¶
Address: 0xe0006800 + 0x4 = 0xe0006804
This register is directly connected to
SB_LEDDA_IP.ADDR. This register controls the address that is updated wheneverDATis written. Writing to this register has no immediate effect – data isn’t written until theDATregister is written.
RGB_CTRL¶
Address: 0xe0006800 + 0x8 = 0xe0006808
Control logic for the RGB LED and LEDDA hardware PWM LED block.
Field |
Name |
Description |
|---|---|---|
[0] |
EXE |
Connected to |
[1] |
CURREN |
Connected to |
[2] |
RGBLEDEN |
Connected to |
[3] |
RRAW |
Set this to |
[4] |
GRAW |
Set this to |
[5] |
BRAW |
Set this to |
RGB_RAW¶
Address: 0xe0006800 + 0xc = 0xe000680c
Normally the hardware
SB_LEDDA_IPblock controls the brightness of the LED, creating a gentle fading pattern. However, by setting the appropriate bit inCTRL, it is possible to manually control the three individual LEDs.
Field |
Name |
Description |
|---|---|---|
[0] |
R |
Raw value for the red LED when |
[1] |
G |
Raw value for the green LED when |
[2] |
B |
Raw value for the blue LED when |