Quote Originally Posted by Acetronics View Post
Hi, Malc



Just try

- a 12Mhz Xtal in HS PLL mode with 48 Mhz as a DEFINE



Code:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
DEFINE HSER_SPBRG 25  ' 115200 Baud @ 48MHz, 0.16%
SPBRGH = 0
BAUDCON.3 = 1         ' Enable 16 bit baudrate generator


Alain
Guys,

12 Mhz crystals arrived today, and using the above now have RS232 coms. Compared to the prototype running with a 20Mhz crystal and the HS_PLL setting, the PIC seems to run a little slower (didn't think you could actually overclock these PICs ) - but I can live with that. I much rather have the option of communicating with a PC over a little bit of speed.