Copyright | (c) David Cox 2021 |
---|---|
License | BSD 3-Clause |
Maintainer | standardsemiconductor@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
LED hard IP primitive from Lattice Ice Technology Library
Documentation
:: HiddenClock dom | |
=> Signal dom Bit | cs - CS to write LEDD IP registers |
-> Signal dom (BitVector 8) | dat - data to write into the LEDD IP registers |
-> Signal dom (BitVector 4) | addr - LEDD IP register address |
-> Signal dom Bool | en - data enable input to indicate data and address are stable |
-> Signal dom Bool | exe - enable to IP to run the blinking sequence. When it is LOW, the sequence stops at the nearest OFF state |
-> Unbundled dom (Bit, Bit, Bit, Bool) | (pwmOut0, pwmOut1, pwmOut2, LED on indicator) |
SB_LEDDA_IP primitive generates the RGB PWM outputs for the RGB LED drivers. The IP contains registers that are programmed in byte the SCI bus interface signals.
LED Control Bus Addressable Registers
LEDD_ADR[3:0] | Name | Usage | Access |
---|---|---|---|
1000 | LEDDCR0 | LED Driver Control Register 0 | W |
1001 | LEDDBR | LED Driver Pre-scale Register | W |
1010 | LEDDONR | LED Driver ON Time Register | W |
1011 | LEDDOFR | LED Driver OFF Time Register | W |
0101 | LEDDBCRR | LED Driver Breathe On Control Register | W |
0110 | LEDDBCFR | LED Driver Breate Off Control Register | W |
0001 | LEDDPWRR | LED Driver Pulse Width Register for RED | W |
0010 | LEDDPWRG | LED Driver Pulse Width Register for GREEN | W |
0011 | LEDDPWRB | LED Driver Pulse Width Register for BLUE | W |