longan register: LED_GLB_CTRL
Details
- Name
- LED_GLB_CTRL
- Offset
- cc00
- Feature
- LED
Description
External LED controller global register (of the RTL8231)
default: 0x0105_3658
Fields
Name | LSB | Bits | Description |
---|---|---|---|
CFG_MDX_DEALY | 28 | 4 |
MDX controller delay
|
LED_STACK_FTG_IGNORE | 27 | 1 |
Ignore First Trigger Pulse
|
LED_STACK | 25 | 2 |
LED trigger select Note, trigger signals configure GPIO23 as GPIO
|
LEDIC_PAGE_ACCESS | 24 | 1 |
Always reset RTL8231 page to GPIO Control Register after access Set address 0x1f to 0x1e after each access.
|
LEDIC_RESTART | 23 | 1 |
Restart RTL8231 every time Register 0x00, bit 1 (LED_Start) on RTL8231)
|
LED_ACTIVE | 22 | 1 |
Serial LED is active high/low Note: Only for serial LED mode, must be set to active high when scan LED mode.
|
LED_SIGNAL_INVERT | 21 | 1 |
LED signal stream invert mode Note: Only for serial LED mode, must be set to enable when scan LED mode.
|
BLINK_TIME_SEL | 18 | 3 |
LED blinking rate Also See LED_PORT_SW_CTRL for the same rates. Does not seem to match the blink rates from RTL8231 … On time is identical to off time (50% duty cycle).
|
LED_CLK_SEL | 16 | 2 |
Set LED period time (LED_CLK and LED_MDC) Note: Can be used in serial LED mode or scan LED mode.
|
LED_LOAD_EN | 15 | 1 |
LED load indication Note: LED_LOAD_EN is not available when LED configuration is TX = 0x4 or RX = 0x3
|
SYS_LED_MODE | 13 | 2 |
System LED blink mode Note: Only valid when SYS_LED_EN = 1
|
SYS_LED_EN | 12 | 1 |
System LED pin controller Configure GPIO0 (pin A0) as GPIO or as system LED
|
STP2_PWR_ON_LED | 8 | 4 |
Power on blinking rate (step 2)
|
STP1_PWR_ON_LED | 4 | 4 |
Power on blinking rate (step 1)
|
PWR_ON_BLINK_SEL | 2 | 2 |
Power On blink time
|
LED_MOD | 0 | 2 |
LED data output mode
|