Guest
Hello,
I want to generate a signal which is periodically toggling for a
specified time of the order of, say 2 seconds i.e. it is like a clock
with 4 sec period.
What is available to me is a clock of 4MHz frequency.
I used the following approach, rather unsuccessfully: I used a counter
(a 20-bit counter rather ) to count the clock periods till it amounted
to 2 seconds. Using counter values I am toggling my output signal in a
concurrent statement. The counter should reset after 4 seconds but
since this counter doesn't count all the 20-bit values, it doesn't
reset automatically after 4 sec. So what can be the workaround? Can I
avoid a counter with 20-bits and do with a smaller one?
Sincerely,
I want to generate a signal which is periodically toggling for a
specified time of the order of, say 2 seconds i.e. it is like a clock
with 4 sec period.
What is available to me is a clock of 4MHz frequency.
I used the following approach, rather unsuccessfully: I used a counter
(a 20-bit counter rather ) to count the clock periods till it amounted
to 2 seconds. Using counter values I am toggling my output signal in a
concurrent statement. The counter should reset after 4 seconds but
since this counter doesn't count all the 20-bit values, it doesn't
reset automatically after 4 sec. So what can be the workaround? Can I
avoid a counter with 20-bits and do with a smaller one?
Sincerely,