Re: [stella] Math riddle : Loading TIM64T with 43 burns only 36scanlines (not 37)

Subject: Re: [stella] Math riddle : Loading TIM64T with 43 burns only 36scanlines (not 37)
From: mathys66@xxxxxxxxxx
Date: Tue, 11 May 2004 08:26:48 +0200
>Be very careful with this.  IIRC once the timer expires the RIOT starts
>counting the number of cycles since the timer expired.  So INTIM will be
>0
>for 64 CPU cycles, then start counting up from zero, incrementing every
CPU
>cycle.

i thought the timer counts always down (at least all my code relies on that,
and seems to work) ?

quoting the data sheet:
"When the timer has counted thru 00000000 on the next count time an interrupt
will occur and the counter will read 11111111. After interrupt, the timer
register decrements at a divide by "1" rate of the system clock..."

so what you have to take care of is that after the timer expired, it will
run at the osc's frequency, rather than at oscfreq/64.

???

cheers
thomas

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread