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 !!
已解决! 转到解答。
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,
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,
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.