Frequency Problem - ICS

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

Frequency Problem - ICS

642 次查看
CarlosCba
Contributor II

Hi,

I was trying to configure the SCI module of my MC9S08SH and I make a very simple code, it just send a "2" by the TxD.

But it never works, so I start to look for the problem in RS232 circuit and in the PC but nothing. So I doubt about the frequency clock, because I supposed that it was 8 Mhz just because I read an example, but reading different articles I discover the ICS register.And now I am thinking that the problem is there, because the configured frequency is not the one I thought.

My debbuger is an OSBDM and CW 10.1. I read that "during the flash programming process, the internal reference needs to be calibrated for a frequency of 39.0625 kHz.  This is the "non-volatile (NV) trim", and is programmed to a specific flash memory location"

A really do not know how to calibrate the bus frequency, Which register I must load to have a 39.0625kHz frequency? How to do it?

If somebody could help me to know which is the bus frequency , and how it works and can be calibrated I will be very grateful.

Thanks very much for your help in advance.

 

PD: Sorry for my english is not my native language.

标签 (1)
0 项奖励
回复
1 回复

491 次查看
CarlosCba
Contributor II

I can add that once I debbug the project the ICS registers has these values:

 

ICSC1 = 0x04

ICSC2 = 0x40

ICSTRM = 0xa5

ICSSC = 0x11

 

Any help? 

0 项奖励
回复