View previous topic :: View next topic |
Author |
Message |
Andreas
Joined: 25 Oct 2004 Posts: 136
|
new compiler - new speed selections ????????????? |
Posted: Mon Sep 12, 2005 10:17 am |
|
|
Hi friends,
I was working with the ver 3.222 for a long time and now I changed
to the new version 3.234 and had a bad result:
without changing NOTHING in the source codethe speed of the
RS232 port is only 1/4 of the supposed speed !!!
Anybody out therewho had the same experience ?
Any help very much appreciated
thanks
Andreas |
|
|
Andreas
Joined: 25 Oct 2004 Posts: 136
|
|
Posted: Mon Sep 12, 2005 10:40 am |
|
|
Hi,
Dont ask me why, after stopping and restarting the compiler several times. after setting the delay statement to different values --
the program is working as it should !!!!!!!
BTW, what speed to I have to set in the use delay statement ?
the crystal speed or the real oscillator speed ??
e.g. Osc 6.140000 MHz
real speed 24150000
Hope somebody has a clue
best regards
Andreas |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Sep 12, 2005 10:52 am |
|
|
If your using a H4/PLL you will need to power cycle the pic to get the the pll to lock in.
Are/were you using H4? ? ?
The one number is NOT 4x the other ? ? ? ?
6.14 * 4 == 24.56
AND BTW #use will take the 4x speed. I have a 10MhZ cyrstal .. my #use is...
#USE DELAY(CLOCK=40000000)
Last edited by treitmey on Mon Sep 12, 2005 2:13 pm; edited 1 time in total |
|
|
Andreas
Joined: 25 Oct 2004 Posts: 136
|
|
Posted: Mon Sep 12, 2005 1:03 pm |
|
|
Hello,
Yes I know that its not the x4 but someday I measured the really delay
times that�s why I made it that odd number
Can I find it somewhere in the manual ?
The compiler should know it from the fusesetting that I am using the HS PLL so it can be calculated by itself.
best regards
Andreas |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|