sci error after restart qg8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sci error after restart qg8

Jump to solution
1,921 Views
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
Labels (1)
0 Kudos
1 Solution
463 Views
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,

 

View solution in original post

0 Kudos
5 Replies
464 Views
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 Kudos
463 Views
danijv
Contributor II
it is the internal clock, and i don't know how to trim it ....
0 Kudos
463 Views
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 Kudos
463 Views
danijv
Contributor II

Hi again !

 

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

 

thanksssss

0 Kudos
463 Views
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 Kudos