Back to ESAcademy Home Page


Microcontroller
Peripheral Timing
Calculator

Philips XA - Timer 0 and Timer 1

Enter your clock rate and the desired run-time of the timer,
then click on the "Calculate" button

 

Home

News

Training Classes

Products

Consulting

Technical Library

Contact Us

The calculated rates and values are pure run-time of the timer. No overhead is added for stopping, starting or (re-)loading the timers.

Clock frequency (in MHz): (mhz)
Desired run-time of timer (in milliseconds): (drt)

A prescaler can be set to divide the input frequency by 4, 16 or 64.

  Prescaler Osc/4 Prescaler Osc/16 Prescaler Osc/64
Duration of a single timer tic
(microseconds)

tic=1/(mhz/4)

tic=1/(mhz/16)

tic=1/(mhz/64)
Maximum run-time of timer
8-bit counter (milliseconds)

max=tic*255/1000

max=tic*255/1000

max=tic*255/1000
Maximum run-time of timer
16-bit counter (milliseconds)

max=tic*65535/1000

max=tic*65535/1000

max=tic*65535/1000
8-Bit reload value for
desired runtime (milliseconds)

rel=255-(drt/tic*1000)

rel=255-(drt/tic*1000)

rel=255-(drt/tic*1000)
16-Bit reload value for
desired runtime (milliseconds)

rel=65535-(drt/tic*1000)

rel=65535-(drt/tic*1000)

rel=65535-(drt/tic*1000)
Upcoming Classes
   

© ESAcademy, 2000
Author: Olaf Pfeiffer

All materials
provided 'as is'
see Disclaimer

www.esacademy.com
info@esacademy.com