sci error after restart qg8

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

sci error after restart qg8

跳至解决方案
2,606 次查看
danijv
Contributor II

Hi!

 

first of all, excuse me because of my bad english ..

 

well, i'm designing a project for QG8 which uses some modules (ADC, SCI, RTI, MTIM...). It measures two analog sensors and sends the information through SCI.

 

When I started to use the SCI module it was so easy, and it worked properly. Now I have a problem.

 

When I burn my program in the QG8, it sends the bytes properly. But if I switch off and next I switch on, it doesn't send the bytes it should. I mean..

 

For example, I want to send " AA 55 BB 22 CC 33 ", so when I burn the code with CW it sends ok, but when the QG8 has been restarted it sends "5A 97 ED 5F"...

 

Could anybody help me?

 

thank you !!

Message Edited by danijv on 2009-05-28 11:50 PM
标签 (1)
0 项奖励
回复
1 解答
1,148 次查看
danijv
Contributor II

Hi!!

 

Finally, I solved the problem. I had no trimmed the internal clock.

 

In debug mode, I read the values of ICSTRM and ICSSC_FTRM. Next, my code copy this values to these registers and it works!!

 

Thank you very much for your help,

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,149 次查看
danijv
Contributor II

Hi!!

 

Finally, I solved the problem. I had no trimmed the internal clock.

 

In debug mode, I read the values of ICSTRM and ICSSC_FTRM. Next, my code copy this values to these registers and it works!!

 

Thank you very much for your help,

 

0 项奖励
回复
1,148 次查看
danijv
Contributor II
it is the internal clock, and i don't know how to trim it ....
0 项奖励
回复
1,148 次查看
peg
Senior Contributor IV

Hi,

I don't have time at the moment for you but if you put "trim" into the search box at the bottom of the page you will find lots of info on this.

 

0 项奖励
回复
1,148 次查看
danijv
Contributor II

Hi again !

 

I forgot to say that I've tried it from 300 baud to 9600.. it always happen ...

 

thanksssss

0 项奖励
回复
1,148 次查看
peg
Senior Contributor IV

Hello and welcome to the fora, danijv.

 

What clock source are you using?

If it is the internal clock are you trimming it properly? i.e. transfering the trim values from the non-volatile register to the working ones.

 

 

0 项奖励
回复