CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

new compiler - new speed selections ?????????????

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Andreas



Joined: 25 Oct 2004
Posts: 136

View user's profile Send private message

new compiler - new speed selections ?????????????
PostPosted: Mon Sep 12, 2005 10:17 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 12, 2005 10:40 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Sep 12, 2005 10:52 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 12, 2005 1:03 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Sep 12, 2005 1:13 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=23829&highlight=pll+power
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group