View previous topic :: View next topic |
Author |
Message |
agrj
Joined: 26 Sep 2003 Posts: 48
|
18F8722 serial problems |
Posted: Wed Mar 29, 2006 8:23 am |
|
|
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
|
|
Posted: Wed Mar 29, 2006 3:14 pm |
|
|
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
|
|
Posted: Thu Mar 30, 2006 7:46 am |
|
|
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 |
|
|
|