📄 text02.html
字号:
<html> <head> <title></title> <meta content=""> <style type="text/css"> <!-- body{ background-image: url(bkgnd001.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="120"> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/icd/text01.html"> <img src="back_blv.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_c.gif" border="0" onMouseover="this.height=34;" onMouseout="this.height=32;"> </a> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/icd/text03.html"> <img src="forward0.gif" border="0" onMouseover="this.height=32;" onMouseout="this.height=30;"> </a> </td> </tr> </table> <br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="24"> <img src="1rightas.gif"> </td> <td valign="top"> <div class="t0">2. The Hardware </div> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="34"> <img src="2rightas.gif"> </td> <td valign="top"> <div class="t0">2.1. Processor </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 ICD is containing a PIC itself running at 20MHz clock. Depending of your spare box's contents, you can either take a PIC16F876 (28 pins, picture at right) or the <a target="_blank" href="http://home.t-online.de/home/520054661375/stolz.de.be/icd/pic16f877.html" onClick="window.open('pic16f877.html','','menubar=no,toolbar=no,width=420,height=535'); return false">larger PIC 16F877 (40 pins).</a> The PIC's digital I/O pins connects to the serial interface (RC6-7, RB4-5) and the target processor (RC0-5). Further, the analog inputs RA0, RA1 and RA3 are used to measure the voltage levels of Target's MCLR, Vdd and Vpp. </p></span> <br> <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="2rightat.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> connected at pins RB7(=PGD), RB6(=PGC) and RB3(=PGM) to flash the firmware. </p> </span> </td> </tr> </table> </td> </tr> </table> </td> <td valign="top" width="390"> <img src="pic16f87.gif" alt="PIC16F876"><br> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="34"> <img src="2rightas.gif"> </td> <td valign="top"> <div class="t0">2.2. Serial Interface </div> </td> </tr> </table> <br> <table width="100%" border="0" cellspacing="0" cellpadding="10"> <tr> <td valign="top" width="390"> <img src="max23200.gif" alt="max232"><br> </td> <td valign="top"> <span class="t2"><p style="text-align:justify;">As RS-232 Transceiver, a common MAX232 in standard application is used. If you take a MAX232A instead, replace the 1uF capacitors by 0.1uF ones. To the 9 pin female SUB-D connector establishing the connection to the COM-port, there is also a resistor and a zener diode connected for generating a reset signal (might be omitted...). </p></span> <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="2rightat.gif">Using USB instead of RS-232? </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;">Instead of a MAX232, an USB-to-serial chip like <a target="_blank" href="http://www.hitachi-hitec.com/oversea/prolific/ds_pl2303x_v11.pdf">PL2303</a> (3V but 5V-tolerant) or probably <a target="_blank" href="http://www.ftdichip.com/DS232B.htm">FT232</a> can be used. They need few external components, but have a very small package making soldering and wiring without a pcb very difficult... But you can modify a cheap commercial USB to serial adapter, removing its TTL to RS-232 level converter. Using USB, we can power our ICD2 from USB-bus without need for a heavy external power supply. </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="2rightas.gif"> </td> <td valign="top"> <div class="t0">2.3. Supply Voltages </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;">For seldom home use it seems good to take one power supply delivering the progamming voltage Vpp (+13V) and derive from that Vdd (+5V) via a 7805 voltage regulator. So we can adjust the Vpp if necessary, too. You could also take +5V (eg. from USB) and use a DC/DC converter for obtaining Vpp. </p></span> <br> </td> <td valign="top" width="390"> <img src="78050000.gif" alt="7805"><br> </td> </tr> </table> <br><br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="center" width="34"> <img src="2rightas.gif"> </td> <td valign="top"> <div class="t0">2.4. Target Processor Interface </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 Voltage of target's MCLR is controlled by RC0, RC1 and RC2 (all active low). When RC0 goes low, Vpp is enabled, and RC1 low enables Vdd. RC2 pulls MCLR to GND on demand - this is necessary if there is a pull-up resistor at the target's MCLR pin. If there is no pull-up resistor, this is not necessary because the resistors R5 and R6 of the voltage monitoring circuit ensure ground level. In this case, you can ommit T4, R4 and D2. Using this cheap version you have to remove a pull-up resistor at MCLR if existing everytime you want to debug, so I think you should add these three parts.<br>The two diodes should be germanium or schottky type because of the lower voltage drop across them. The values of resistors together with the limited current amplification of the transistors ensure that there won't flow high currents into the MCLR-Pin that might latch up the target's PIC.<br>The target processor gets connected by the three wires TARGET PGD, TARGET PGC and TARGET MCLR. </p></span> </td> </tr> </table> <br><br> <img src="vtarget0.gif" alt="Target"> <br><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_o.gif"> </td> <td valign="bottom"> <img src="copyrigi.gif" border="0"> </td> <td align="right" valign="bottom"> <a href="http://stolz.de.be/"> <img src="url00001.gif" border="0"> </a> </td> <td align="center" valign="bottom" width="64"> <a href="http://home.t-online.de/home/520054661375/stolz.de.be/icd/text01.html"> <img src="back_blv.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_c.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/icd/text03.html"> <img src="forward0.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/text02.html -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -