What is 52233DEMO clock freq for 25MHz external crystal osc

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

What is 52233DEMO clock freq for 25MHz external crystal osc

跳至解决方案
1,945 次查看
TVNAIDU
Contributor III

I have 52233DEMO board, I can see 25MHz crystal on DEMO board, but DEMO user fuide says, it can run at 60MHz, with 25MHz crystal, is clock running at 60MHz?.

 

thanks,

Message Edited by TVNAIDU on 2009-11-11 04:25 AM
标签 (1)
0 项奖励
回复
1 解答
1,148 次查看
mjbcswitzerland
Specialist V

Hi

 

The "bus clock" is in fact half the PLL clock.

 

The following is a define to calculate the PIT using a 1k prescaler (where REQUIRED_MS is the value in ms):

#define TICK_DIVIDE (((PLL_CLOCK/2/1048) + REQUIRED_MS/2)/REQUIRED_MS)

 

See also http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=726&query.id=57187#M7...

 

Regards

 

Mark

 

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,148 次查看
mjbcswitzerland
Specialist V

Hi

 

In the clock module the following are set:

- CCHR = 4 (divides the input frequency from 25MHz to 5MHz)

- SYNCR = 0x4007 (sets the PLL up to generate 60MHz internal clock)

 

Regards

 

Mark

 

0 项奖励
回复
1,148 次查看
TVNAIDU
Contributor III

Thanks.

 

PIT document referring Internel Bus clock below, Is Internal Bus clock is 60MHz (PLL Freq)?.  I have 52233DEMO, on that board, there is one 25MHz crystal, to calculate modulus value, if I set PRE to 8 (1000), then what clock speed I have to assume?.

 

The PIT’s timeout value is given here:

1/(Internal Bus clock) * 2(Prescaler Value+1) * Module Value = Time (seg).

0 项奖励
回复
1,149 次查看
mjbcswitzerland
Specialist V

Hi

 

The "bus clock" is in fact half the PLL clock.

 

The following is a define to calculate the PIT using a 1k prescaler (where REQUIRED_MS is the value in ms):

#define TICK_DIVIDE (((PLL_CLOCK/2/1048) + REQUIRED_MS/2)/REQUIRED_MS)

 

See also http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=726&query.id=57187#M7...

 

Regards

 

Mark

 

 

 

0 项奖励
回复