Forum Discussion
Altera_Forum
Honored Contributor
10 years agoTimer Period not correctly
Hi all, my goal is to set a timer with a period time of 1ms and start it. After the time is elapsed it should rise an IRQ (once). The timer itself with interrupt works, but the time is always ab...
Altera_Forum
Honored Contributor
10 years agoWhen using a timer as a one shot, you need to write the wanted delay in the snapshot counter registers, not the period registers.
When you send the "start" command, the timer counts down from the value currently stored in the snapshot counter. The period value is only copied in the counter once the counter reaches 0.