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 support@ccsinfo.com

18F8722 serial problems

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



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

18F8722 serial problems
PostPosted: Wed Mar 29, 2006 8:23 am     Reply with quote

Hi all,

I'm facing some problems regarding EUSART with 18F8722.

I have a program running on a PIC18F8720 for more than 2 years without any problems. due the fact that this PIC is not easy to find anymore, I had to change for a 18F8722.

everything is running OK BUT the first EUSART.

I am using a CCS compiler.

the first EUSART is used to send data in a RS485 bus and the second one in a RS232.

both have the same configuration:

9600, parity even, 8 bits.

on the second one everything works fine, but with the first one the slave doesn't recognize a valid message.

the only thing that I change in my source code was de header file.

could any one help me in this subject?

Thanks

Dinho
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 29, 2006 3:14 pm     Reply with quote

Look at the errata for the 18F8722:
http://ww1.microchip.com/downloads/en/DeviceDoc/80221b.pdf
There are many EUSART bugs. Look at the bug list and also at the ASM
code generated by the compiler (in your .LST file) and see if your
problem is caused by one of the erratas. If so, try to re-write the
code to use the suggested work-around.
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Thu Mar 30, 2006 7:46 am     Reply with quote

Hi,

I thought that it could be the problem, but do you know how CCS compiler deals with it?

shouldn't it be in charge of the compiler?

thanks

Dinho
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