sci error after restart qg8

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

sci error after restart qg8

ソリューションへジャンプ
2,622件の閲覧回数
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,164件の閲覧回数
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,165件の閲覧回数
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,164件の閲覧回数
danijv
Contributor II
it is the internal clock, and i don't know how to trim it ....
0 件の賞賛
返信
1,164件の閲覧回数
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,164件の閲覧回数
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,164件の閲覧回数
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 件の賞賛
返信