Myke Predko says:
When I was doing the second edition of my PICmicro microcontroller book, I did some hacking of the ICD Interface and I found that in "ICD mode", all the hardware registers could be written to, but any changes to them didn't take effect until *after* a "return" instruction was executed.While the PICmicro MCU was in ICD mode the only hardware resources that could be accessed correctly were:
- RB6/RB7 via 0x0106. Only the Programming "Data" pin's TRIS bit could be changed. The Clock bit stayed in input mode.
- Program memory flash read/write controls.
- ICKBUG and BIGBUG (according to DS51242A - I didn't have this document when I was playing around with it so I called the registers "Reserve_E" and "Reserve_F") could be read and written before executing a "return" to return to the executing application.
- STATUS, PCLATH, FSR
- All File Registers
If you are interested in seeing what I found, Take a look at pages 650 to 652 of the book. On the CD-ROM, in the EMU-II directory, you will find the source code that I created from the 256 instructions inserted into the ICD by the controller.
Questions:
See also:
| file: /Techref/microchip/icdhow.htm, 2KB, , updated: 2008/4/10 15:56, local time: 2012/2/8 22:43,
38.107.179.232:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/microchip/icdhow.htm"> How the Microchip ICD Works</A> |
| Did you find what you needed? |
|
The PICList shop now offers mugs, steins and... T-Shirts!!! |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.