Hi. I just started development of a system containing an XC161, wich I haven't worked with before. My problem is this. When I run an application from Tasking things seem to work OK, but when I flash the application to the board the application runs much slower. A lot slower. I think this has something to do with the internal clock-frequency being set to one thing by tasking, and by default to something else by the board. If anyone has any ideas of how to fix this it would be very nice to share them. regards, Dan.
Well, that is then basically the start of your problem. Take a look to the Keil examples. You need a startup file that configures the PLL. Reinhard
well, I've tried to configure PLLCON manualy, but it didn't make any difference. I might have done this incorrectly though. Do I always have to have a line in my program that configures the PLLCON or can I leave it out?
Yes, you should always write the PLLCON otherwise the default will always be the cpu frequency = osc/2. I am also confused if you are using Keil or Tasking tools? If you post your email I can send you a PLLCON configuration widget (2005 .NET). -Chris
As I stated earlier, about two posts ago, I work with Tasking, only. But, I mangaged to fix the problem by myself. Thank you anyway.
Hello Chris, I am interested in your widget. Since we have used until now a simple excel-sheet with macros. Could you e-mail it to my business mail address ? Stefan Fricke Munich - Thanks in advance -
"As I stated earlier, about two posts ago, I work with Tasking, only." So why are you posting on the Keil forum, then?!
Hi Stefan, Sure not a problem ;-) Best regards, Chris
Hello Chris, I got it. Many thanks. Stefan