kkdelabaca
Full Member level 2
Hello,
to control 20 RGB leds I need to create one easy sequence:
This sequence consist in create one Reset of 50us, and then send 480 pulses. I'm using one CPLD from altera and my system clock is 60MHz.
Reset duration = 50us (3000 clock's @60MHz).
The board have 20 leds connected in serial. Each led have 3 registers of 8 bits (one for Red, other for Green and other for Blue). Now to fill all the registers I need to send 480 pulses (20 leds x 3 registers x 8 bits).
Each pulse have one specific duty cycle:
- 400ns at positive duty (24 sys clock) and 850ns at negative duty (51 clock's).
I tried to create this sequence in Quartus II but the result is bad. Is my first program and I think that I have problems of metastability.
Somebody can suggest to me how I can start with this sequence?
Thanks a lot!
to control 20 RGB leds I need to create one easy sequence:
This sequence consist in create one Reset of 50us, and then send 480 pulses. I'm using one CPLD from altera and my system clock is 60MHz.
Reset duration = 50us (3000 clock's @60MHz).
The board have 20 leds connected in serial. Each led have 3 registers of 8 bits (one for Red, other for Green and other for Blue). Now to fill all the registers I need to send 480 pulses (20 leds x 3 registers x 8 bits).
Each pulse have one specific duty cycle:
- 400ns at positive duty (24 sys clock) and 850ns at negative duty (51 clock's).
I tried to create this sequence in Quartus II but the result is bad. Is my first program and I think that I have problems of metastability.
Somebody can suggest to me how I can start with this sequence?
Thanks a lot!