Mike
you have already found the the solution to your problem.
you just haven't realised it.
The problem is with:
trisc = %00000000
the HWUSART TX and RX pins are on portc.6 and portc.7
and you are setting RX (which is supposed to be an input) to output.
This will stop the ICD from working
since bidirectional communitaction between PIC and PC is no longer possible.
with
trisc = %10000000
it should work.
Last edited by NavMicroSystems; - 3rd February 2005 at 21:33.
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Bookmarks