Mail Archives: djgpp/1999/04/26/07:45:18
On Mon, 26 Apr 1999 cssl AT geocities DOT com wrote:
> The following program (partially copied from PDMLWP sources) on my
> machine, the FIRST time it's run it prints "cnt=1", all the following
> times it prints "cnt=7" or "cnt=8", that's the result I'm expecting...
What's strange about this? Simply, as soon as you enable the periodic
interrupt, you get the first interrupt, and the counter gets bumped to
1. The rest are coming in at 250-ms intervals, since you never
reprogram the clock back to its original interrupt rate before the
program exits.
- Raw text -