Slice Timers for MCF5485

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Slice Timers for MCF5485

1,074 Views
preetuabraham
Contributor III

Hi,

I have a MCF5485 processor with a CLKIN of 28.6363 Mhz,how to select the terminal count for SLT0 and SLT1.

SLT1 is used for task scheduler for 5 ms and I used a terminal count value of 0x0008BD00.

Slice Timer 0 is used as the watchdog interrupt procedure.How to set the terminal count value for SLT0

0 Kudos
Reply
1 Reply

916 Views
miduo
NXP Employee
NXP Employee

Hi,

Slice timers works with XLB bus frequency.
Time-out period the formula for determining right value of Terminal Count Reister is
time-out = TC /100 MHZ (provided that XLB = 100 MHZ).
(TC is value of SLT terminal count register)
So TC = 100 MHZ * time-out ;
TC = 500 (0x1f4) ( for example to get 5ms)

0 Kudos
Reply