Hi All! Turns out that the 18F1320 is a "unique" PIC requiring special handling. First the following lines are required for it to operate at 20 Mhz:
#CONFIG
__CONFIG _CONFIG1H, _HS_OSC_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
__CONFIG _CONFIG4L, _LVP_OFF_4L
#ENDCONFIG
Next a very wonderful person Dannel Taylor sent me the attached file for the ICD to work. As part of the "trouble shooting" process I discovered that if you jumper the TX and RX out of the MAX232 that goes to the PIC in MicroCode Studioss you can open VIEW, Serial Communicator, then "connect" and type something and if your computer is talking to the MAX232 then it will echo back what you typed! If it does not then you can check that your computer comm port settings are correct and that the MAX232 is working. It's nice to have the warm and fuzzy feelings knowing at least how far things are working! Hope this helps others.
Best, Ed




Bookmarks