I'm having trouble figuring this one out. I have code that works on my circuit board with a 4550, I changed to a 4553 so I could use a 12bit A/D. I moved the code that works with the 4550 to the 4553. Everything is working but I can't get the EUSART communication to work. It seems like it's not getting the interrupt, to trouble shoot I put an LCD message in the receive interrupt routine with a pause, the message is never displayed. I use DT interrupts for timers/clock and that part works, the RX_INT is in the same section, so I believe that should be OK. So my thought is there may be some difference in the DEFINES for the serial port baud rates etc. Trouble is the data sheet for the 4553 doesn't have a section for the EUSART so I can't put the data sheets side x side to compare. The data sheet for the 4553 is 46 pages, 4550 data sheet is 438 pages.
Tomorrow I plan to solder some wires to the board so I can connect the serial to my PC to see if I can send/receive anything to my computer.
For now I guess I have two questions, where is the complete data sheet for the 18F4553, and do you know if the serial defines I included would work on the 4553? These work just fine on the 18F4550.
Code:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 164 ' Enable brg, Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 10 ' 115200 Baud @ 20MHz, -1.36% pg 245 spbrg vals
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
Thanks
Bookmarks