need help, retriggerable one-shot

Joined
Oct 5, 2007
Messages
6
Reaction score
0
Hello all,

I'm trying to create different delays (retriggerable one-shots) in which the inputs are a trigger input and an 8Hz clock. If you could help me work out how to create this and get an output of a 10 second HIGH pulse I would appreciate it and I'm sure the other delays would come naturally.

Thanks, Skipper
 
Joined
Oct 5, 2007
Messages
6
Reaction score
0
found the answer:

Process(clock, trigger)
variable count: integer range 0 to 9;
begin
if rising_edge(clock) then
if trigger = '0' then
count := 0;
output <= '1';
elsif (count = 9) then
output <= '0';
else
count := count + 1;
end if;
end if;
end process;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top