AR Timer as 25ms Timebase
Company  
ST Home | Microcontrollers

Index  »  ST6  »  AR Timer as 25ms Timebase
     
   AR Timer as 25ms Timebase
 Moderated by :   »  Vikas

Author
beginning argument    ( Replies received: 1 )
AK   Posted 05-01-2007 at 11:11   



Registered on :
01-05-2007

From Germany

Messages : 2

 OFF-Line

Hello Folks,
i programmed the ART as freerunning Timer.

Fosc= 3,6864 MHz, ClkDiv= 3, Prescl= 128
Fin= 9600, RC= 10h

If my Calculations are correct, the above Settings = 25ms.
The Overflow Interrupt is used to update some Calcs(Tcyc.<2ms).

As far as i know, ARTs need no additional cycles for INT and Reload.
They run and run until RESET. OK, the INTMASK must be written but
it have no effect on the running Timer. Hey, its Hardware.

Is it the same with the ST6265 ART. Or are there add. Cycles?

best regards
Andreas




 Profile   Quote  
AK   Posted 16-01-2007 at 11:41   



Registered on :
01-05-2007

From Germany

Messages : 2

 OFF-Line

Hi again,

there are "dead" cycles when using the ART as INT source.

To check this out, i programmed a simple software RTC using the
ART OverflowINT as Timebase.
Every INT increments a register til 40d. 25ms*40=1s.

result: the clock runs ahead.

question: WHY?

Andreas




 Profile   Quote  
On Top

Search in the forums
 
Jump To