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

Wrong data on the software UART
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tranz



Joined: 10 Feb 2007
Posts: 78

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

PostPosted: Fri Aug 15, 2008 8:51 am     Reply with quote

Yes I had performed the tests mentioned, I disconnected the two pics and checked the rate at which the data was sent. The 18F was throwing the data twice as fast than the 16F.

But I used the same code as before, just that put 10 sec delays on both of the PICs, and noted the time difference.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Aug 15, 2008 9:00 am     Reply with quote

We already knew one board is faster than the other, but which board is wrong? Is the PIC16 too slow or is the PIC18 too fast?

Most likely the 4xPLL circuit in the PIC18 is causing problems. Have you tried my suggested test of using the internal oscillator? This is easy to do as it requires only a software change.
tranz



Joined: 10 Feb 2007
Posts: 78

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger

PostPosted: Fri Aug 15, 2008 10:33 am     Reply with quote

Well, the data that I am sending via 18F is being received on the 16F...so I think changing the baud rate solved the problem. Since both the micros are running on different clock speeds.

No I have not tried that as of yet,since I thought it was working and there was no need to check it further, I will check it with the internal oscillator once I am done with the other side of the project. Will keep this thread posted with the latest.

Thanks for the suggestions

Much appreciated.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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