piclist 2001\07\16\090014a >
Thread: In-Circuit Debugging
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
face BY : Tsvetan Usunov email (remove spam text)



>Re PIC16F87X, is the "debug executive program" <--> target PIC
>communications interface documentation available?  I'm looking for the
>sort of information one would need to design a simple debug tool to
>utilize the chip's onboard debugging capabilities.
>
>The documentation I've found indicates the debug data path is RB.6 and
>RB.7, but says nothing about data content, format, transmission
>scheme...

read Microchip's datasheet about the ICD registers in PIC16F87X at

www.microchip.com/Download/lit/pline/picmicro/families/16f87x/51242a.
pdf

as you can see there is nothing but additional interrupt source when the
execution address match the breakpoint register value
after that you have the program control, you may implement whatever you want
communication via RB6 and RB7
the reason for choosing those pins is that they are used for ICSP too so
your ICD can upload the debugger part easily in blank chips
if you want to build your debugger compatible with MPLAB though you have to
sniff their protocol between the PC and the ICD and to do the same,
otherwise you are free to do whatever you want with your code which handles
the interrupt

Best regards
Tsvetan
---
PCB prototypes for $26 at http://run.to/pcb

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


<001701c10dff$12c4e640$4b0524d4@ceco> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) In-Circuit Debugging

month overview.

new search...