📄 text03.html
字号:
<html> <head> <title></title> <meta content=""> <style type="text/css"> <!-- body{ background-image: url(bkgnd002.jpg); background-repeat: repeat-y; background-position: center top} .t0 { font-family: Arial, Helvetica, sans-serif; font-size: 30px; font-weight: bold; font-style: normal} .t1 { font-family: "Times New Roman", Times, serif; font-size: 16px; font-style: italic; font-weight: bold; color: #000000} .t2 { font-family: font-size: 12px; font-weight: normal; font-style: normal} .t3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: italic; color: #000000; } .t4 { font-family: "Times New Roman", Times, serif; font-size: 14px; font-style: italic; font-weight: bold; color: #FFFFFF} .t5 { font-family: Arial, Helvetica, sans-serif; font-size: 30px; font-weight: bold; font-style: normal; color: #EFEFEF} --> </style> <meta http-equiv="Content-Type" content="text/html;charset=windows-1252"></head> <body> <table width="100%" height="48" border="0" bgcolor="#000080" cellspacing="0" cellpadding="0"> <tr> <td valign="center"> <div class="t5">In-Circuit Debugger </div> </td> <td align="center" valign="center" width="80"> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/icd/text02.html"> <img src="back_blw.gif" border="0" onMouseover="this.height=32;" onMouseout="this.height=30;"> </a> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/index.html"> <img src="gohome_d.gif" border="0" onMouseover="this.height=34;" onMouseout="this.height=32;"> </a> </td> </tr> </table> <br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="24"> <img src="1rightat.gif"> </td> <td valign="top"> <div class="t0">3. The Software </div> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="34"> <img src="2rightau.gif"> </td> <td valign="top"> <div class="t0">3.1. ICD's Firmware </div> </td> </tr> </table> <br> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td valign="top"> <span class="t2"><p style="text-align:justify;">The firmware for the original ICD2 is shipped within <a href="http://www.microchip.com/">Microchip's development environment MPLAB</a>. Download and install it. In MPLAB's subdirectory named Icd2 you will find a file named Bl??????.hex. (Actually this is nothing more than a bootloader. MPLAB later downloads the required operation system for the current target device by itself at runtime.)<br>You can load this file into your PIC before building the ICD if you own a normal programmer. If not or it's an ICSP one, build up the complete ICD including the unprogrammed PIC. Then, connect the three ICSP signals, power up the ICD and flash the PIC. </p></span> </td> <td valign="top"> <table border="0" cellspacing="0" cellpadding="5" bgcolor="#B0C0FF" width="100%"> <tr> <td> <table border="0" cellspacing="0" cellpadding="5" bgcolor="#B0C0FF" width="100%"> <tr> <td> <span class="t1"> <img src="2rightav.gif">How to get the firmware into this PIC? </span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="5" bgcolor="#C9DDFF" width="100%"> <tr> <td> <span class="t3"> <p style="text-align:justify;">If you don't own a PIC programmer, you could use the simple <a target="_bank" href="http://home.t-online.de/home/520054661375/stolz.de.be/lvpc/index.html">Low Voltage Programming Cable</a> connecting to the three ICSP pins RB7(=PGD), RB6(=PGC) and RB3(=PGM) for flashing the firmware. When using LVP, remember pin PGM needs to be pulled down additionally after programming! </p> </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="34"> <img src="2rightau.gif"> </td> <td valign="top"> <div class="t0">3.2. First connect to MPLAB </div> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td valign="top"> <span class="t2"><p style="text-align:justify;">Connect the first target device to the ICD. For programming purpose, this is a single PIC supplied with +5V power (e.g. from the ICD). If you want to try debugging, ensure that the PIC has an clock source, too.Connect your ICD to the computer's serial port and power it up. Disable this ports' FIFO buffers (windows' device manager) and perform a reboot. After this, start MPLAB and load or create a test project for your target device. Select ICD2 either as programmer or debugger and change its communication settings according to your system by selecting the menu item MPLAB ICD 2 Setup Wizard. Always select Target has own power supply, because our ICD isn't able of switching target power on or off. </p></span> </td> <td valign="top" width="30%"> <table border="0" cellspacing="0" cellpadding="5" bgcolor="#B0C0FF" width="100%"> <tr> <td> <table border="0" cellspacing="0" cellpadding="5" bgcolor="#B0C0FF" width="100%"> <tr> <td> <span class="t1"> <img src="2rightav.gif">Serial to USB adapters </span> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="5" bgcolor="#C9DDFF" width="100%"> <tr> <td> <span class="t3"> <p style="text-align:justify;">Ps: I use a well-working cheap PL-2303 adapter, since connecting through an Aten UC-232 seems to be ok only when using Win98 (message: didn't succed to read all requested bytes - bad XP/NT drivers?) </p> </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td valign="top"> <img src="connecte.gif"> </td> <td valign="top"> <span class="t2"><p style="text-align:justify;">Now choose menu item Connect. Since there is nothing more than the bootloader in the ICD yet, you have to download ICD 2 Operating System. You should get a display looking like this: </p></span> <span class="t2"><p style="text-align:justify;">If self test fails, ensure all voltages on the ICD are in of range. Take a look at the Settings/Status&Power dialog that will display all voltages. </p></span> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <span class="t2"><p style="text-align:justify;">Build your project and then choose menu item Program. Now your PIC is programmed and ready to debug. </p></span> <td valign="top"> <img src="debuggin.gif"> </td> </tr> </table> <br> <table width="100%" height="24" bgcolor="#000080" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="bottom" width="24"> <img src="window_p.gif"> </td> <td valign="bottom"> <img src="copyrigj.gif" border="0"> </td> <td align="right" valign="bottom"> <a href="http://stolz.de.be/"> <img src="url00002.gif" border="0"> </a> </td> <td align="center" valign="bottom" width="43"> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/icd/text02.html"> <img src="back_blw.gif" height="16" border="0" onMouseover="this.height=20;" onMouseout="this.height=16;"> </a> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/index.html"> <img src="gohome_d.gif" height="16" border="0" onMouseover="this.height=20;" onMouseout="this.height=16;"> </a> </td> </tr> </table> </body></html><!-- This document saved from http://home.t-online.de/home/520054661375/stolz.de.be/icd/text03.html -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -