Control brightness of LEDs using VHDL

Guest #5416491
Rate this post
• ▲ useful
▼ not useful
I'm at the beginner level in VHDL programming. Recently, I would like to 
develop a component in VHDL using an application with 4 LEDs connected 
to an FPGA board.

By controlling the FPGA with a controlword/-byte the following functions 
need to be implemented for the LEDs:

The 4 LEDs should be controllable unindependantly in brightness 10%, 
30%, 60%, 85% and in frequency 0.2Hz, 0.5Hz, 1Hz, 2Hz.

The chosen functionality should be repeated until another controlbyte is 
given.

Any help or hints would be much appreciated to solve the task.
Moderator (Company: Titel) #5416511
Rate this post
• ▲ useful
▼ not useful
Tanjila Tahsin wrote:
> Any help or hints would be much appreciated to solve the task.
Spilt the big problem in small problems and solve them one after the 
other. Connect the solved components together and you're done.

> The 4 LEDs should be controllable unindependantly in brightness 10%,
> 30%, 60%, 85% and in frequency 0.2Hz, 0.5Hz, 1Hz, 2Hz.
What means frequency here? Should that become a chasing light with 
dimmable LED?  Or should each LED blink with it's own frequency in its 
own brightness?

> By controlling the FPGA with a controlword/-byte
Where does that come from?
100% brightness is not needed?
Then a 2 bit control word for brightness and a 2 bit word for the 
frequency is enough for one LED. Therefore you need 16 bit to control 
each LED independently.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.