Slice Timers for MCF5485

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Slice Timers for MCF5485

1,388 次查看
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 项奖励
回复
1 回复

1,230 次查看
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 项奖励
回复