piclist 2004\10\06\055015a >
Thread: ICD2, was Newbie help getting started
www.piclist.com/techref/microchip/begin.htm?key=icd
face picon face BY : Alan B. Pearce email (remove spam text)



>I printed off some ICD2 docs to read on the train last
>night.  It seems to use the serial tx/rx  pins that i'll
>be wanting to use for rs232 in my circuit.  I imagine
>this makes it impossible for me to debug my intended circuit?

No it uses the programming pins. The program data and clock pins are on
separate pins to the UART pins.

However there is "gotcha" when using the ICD1 or 2. At the point where the
program is halted, the peripheral hardware also gets halted. This will cause
corruption of any data you are trying to send or receive through any of the
hardware peripherals (UART, I2C, SPI etc).

What I did when doing debugging was have loops at appropriate points in the
code that I could trigger the ICD halt at once the peripheral had finished
the transfer that was in progress. It also helps to have a special label
that you can use to locate the debug breakpoint, which makes it easier to
identify in the drop down box when setting a breakpoint - e.g. special debug
breakpoints might be "dbg-serial" inside the serial routine.

_______________________________________________
http://www.piclist.com
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist


seeking: microchip devices pic
<104701c4ab8a$25d50310$e7bdf682@space.rl.ac.uk> 7bit

See also: www.piclist.com/techref/microchip/begin.htm?key=icd
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) ICD2, was Newbie help getting started

month overview.

new search...