07-28-2017 12:11 AM - edited 07-28-2017 12:46 AM
I have a Zedboard and I just want to implement a counter/timer in vivado or by my self in VHDL to measure the time for a led flash cycle.
It shall beginn counting after for example LED1 gets on and shall stop when LED1 gets off. Moreover it shall show the state from one task switching to another task.
Are there any examples or any ideas how to realize is or also more elegant ideas?
07-29-2017 09:40 PM
@tdirksens how do you propose to detect the led being on and off ? Do you have an external light sensor which you can use?
Assuming that you have such a circuit connected to your system, you can use the axi timer IP in capture mode (https://www.xilinx.com/support/documentation/ip_documentation/axi_timer/v2_0/pg079-axi-timer.pdf) to accomplish what you want.
08-02-2017 03:00 AM
@muzaffer no in software for example I create an app 1 which runs for a while and for this while the led 1 is on.
when task 1 ends led 1 goes off and task 2 starts. when task 2 starts led 2 is turned on and task 2 is running..
don't have any component or circuits which measure or check if the led is really on.