You defined a HS osc... it's suppose to be for a XTAL>4MHZ... but it souldn't be the main problem
OSCCON do nothing here as you're using an external one
You NEVER EVER tell to disable the LVP mode
9600 baud @ 4mhz will NEVER work unless you're using the PIC USART or maybe DEBUG in worst case. There's a BIG warning in the fabulous manual about that.
is uselessCode:DEFINE SHIFT_PAUSEUS 100
Bookmarks