Guy's
I have located the real source of the problem. The crystal supplied
by maplins that is marked as 4.00MHz is actually a 3.5MHz crystal.
Hence why the baud rate calcs were off. I swapped this for a real 4.00MHz
crystal and bingo everything works fine. Including the ICD which is cool.
Just thought you should know to always check the actual frequency the pic
is operating at. If a crystal is quoted as 4Mhz and debug or serial routines
give junk and you do have
Define OSC 4
Then the chances are that the crystal is either off frequency or the padding caps are wrong or in my case is 500 odd KHz low.
I located this by first checking the PicBasic includes and their calculations
were correct 100% this pointed to only one thing the crystal was off frequency.
Hope this help someone else.
Mark G4LCH
Bookmarks