Revision: 1837
Author: [email protected]
Date: Thu Mar 25 21:39:19 2010
Log: Updated ICSP schematic to Microchip specs. Changed connector, same as
PIC Kit 2
http://code.google.com/p/jallib/source/detail?r=1837
Modified:
/trunk/doc/dita/TOPUBLISH
/trunk/doc/dita/tutorials/images/icsp_circuit.jpg
/trunk/doc/dita/tutorials/tutorial_ICSP.xml
/trunk/doc/dita/tutorials/tutorial_changelog.xml
=======================================
--- /trunk/doc/dita/TOPUBLISH Sun Mar 21 16:52:07 2010
+++ /trunk/doc/dita/TOPUBLISH Thu Mar 25 21:39:19 2010
@@ -24,14 +24,14 @@
tutorials/tutorial_adc_intro.xml japp_config.py
2010031201
tutorials/tutorial_basics.xml japp_config.py
2010012501
tutorials/tutorial_blink_a_led.xml japp_config.py
2010012901
-tutorials/tutorial_changelog.xml japp_config.py
2010032101
+tutorials/tutorial_changelog.xml japp_config.py
2010032501
tutorials/tutorial_externals.xml japp_config.py
2010012501
tutorials/tutorial_getting_started.xml japp_config.py
2010021101
tutorials/tutorial_gp2d02.xml japp_config.py
2010012501
tutorials/tutorial_i2c1.xml japp_config.py
2010012701
tutorials/tutorial_i2c2.xml japp_config.py
2010012701
tutorials/tutorial_i2c3.xml japp_config.py
2010012701
-tutorials/tutorial_ICSP.xml japp_config.py
2010012501
+tutorials/tutorial_ICSP.xml japp_config.py
2010032501
tutorials/tutorial_installation.xml japp_config.py
2010012801
tutorials/tutorial_lcd.xml japp_config.py
2010012501
tutorials/tutorial_pata_hard_disk.xml japp_config.py
2010012501
=======================================
--- /trunk/doc/dita/tutorials/images/icsp_circuit.jpg Wed Jan 20 11:34:56
2010
+++ /trunk/doc/dita/tutorials/images/icsp_circuit.jpg Thu Mar 25 21:39:19
2010
Binary file, no diff available.
=======================================
--- /trunk/doc/dita/tutorials/tutorial_ICSP.xml Tue Jan 19 22:33:00 2010
+++ /trunk/doc/dita/tutorials/tutorial_ICSP.xml Thu Mar 25 21:39:19 2010
@@ -32,7 +32,7 @@
<li>You won't bend or break any pins</li>
<li>You won't damage your PIC by placing it in your
breadboard wrong</li>
<li>With a remote desktop software like VNC, you can program
your PIC from anywhere around the world. </li>
- <li>I can program my PIC in my livingroom on my laptop while I
watch tv with my wife! (I keep my mess in my office)</li>
+ <li>I can program my PIC in my living room on my laptop while I
watch tv with my wife! (I keep my mess in my office)</li>
</ol></p>
</section>
<section>
@@ -40,7 +40,7 @@
<p>When I got started in micro-controllers and JAL, I needed to
choose a programmer. At the time, I did not know anything about choosing a
programmer, so I just went on ebay and bought one that is able to program
many different PIC's.</p>
<p>For years, I used this programmer by putting my 16f877 chip into
it, programming it, and putting it into my circuit. I broke pins and wasted
a lot of time. Little did I know, my programmer has an ICSP output for
in-circuit programming. My programmer even says ICSP on it, but I did not
know what ICSP is.</p>
<p>Eventually I got sick and tired of moving my micro-controller
back and forth from the breadboard to the programmer, and I had herd some
talk about ICSP. I found a ICSP circuit on the net, and I took a harder
look at my programmer, it has 6 pins sticking up labeled ICSP. However, I
did not know what pin was what, they where not marked well, and I could not
find info about my programmer. One of the pins was marked pin 1 on the
programmer. If you know your ICSP pinouts already, you may skip to the
circuit diagram.</p>
- <p>I searched for 6-pin ICSP in Google with no results, mostly I
found 5 pin circuits. So, I took out my volt-meter and logic probe (and
oscilloscope, although it is not needed) and measured the voltages off each
pin while programming a chip and while not. I could see on the breadboard
that pin 6 is connected to ground. Here's what I got:</p>
+ <p>I searched for 6-pin ICSP in Google and found that pinouts are
different depending on the programmer. So, I took out my volt-meter and
logic probe (and oscilloscope, although it is not needed) and measured the
voltages off each pin while programming a chip and while not. I could see
on the PCB that pin 3 is connected to ground and pin 6 is connected to
nothing. Here's what I got:</p>
<p><table frame="all">
<tgroup cols="3">
<thead>
@@ -59,27 +59,27 @@
<row>
<entry>2</entry>
<entry>0v</entry>
- <entry>0v</entry>
- </row>
- <row>
- <entry>3</entry>
<entry>5v</entry>
- <entry>Pulsing 0v to 5v (random)</entry>
</row>
<row>
<entry>3</entry>
<entry>0v</entry>
- <entry>Pulsing 0v to 5v (square wave)</entry>
+ <entry>0v</entry>
</row>
<row>
<entry>4</entry>
- <entry>0v</entry>
<entry>5v</entry>
+ <entry>Pulsing 0v to 5v (random)</entry>
</row>
<row>
<entry>5</entry>
<entry>0v</entry>
- <entry>0v</entry>
+ <entry>Pulsing 0v to 5v (square wave)</entry>
+ </row>
+ <row>
+ <entry>6</entry>
+ <entry>not connected</entry>
+ <entry>0v - can see no connection on PCB</entry>
</row>
</tbody>
</tgroup>
@@ -88,10 +88,11 @@
<section>
<title>Get the pin names</title>
<p>The pin names for ICSP are VPP1, LOW, DATA, CLK, VCC, GND. So
lets match them up:</p>
- <p>0v pin 2 must be pin “GND”, I think this one is actually not
connected</p>
- <p>0v pin 6 must be pin “GND”</p>
- <p>pin 1 & 5 seem to be programming enable pins, VPP1 and VCC</p>
- <p>The two pulsing pins must be “CLK” and “DATA” (you may have to
guess which is which if you don't have a oscilloscope.</p>
+ <p>0v pin 6 must be pin “AUX”, I think this one is actually not
connected</p>
+ <p>0v pin 3 must be pin “GND”</p>
+ <p>pin 1 is a programming enable pin, VPP1</p>
+ <p>pin 2 is 5v, mostly used to power a not powered circuit during
programming.</p>
+ <p>pin 4/5 are pulsing pins. They must be “CLK” and “DATA” (you may
have to guess which is which if you don't ave a oscilloscope.</p>
<p>Lets make a new chart. I believe most ICSP ports have pins in
this order:</p>
<table frame="all">
<tgroup cols="3">
@@ -112,33 +113,33 @@
</row>
<row>
<entry>2</entry>
- <entry>Not Connected</entry>
+ <entry>VDD</entry>
<entry>0v</entry>
- <entry>0v</entry>
+ <entry>5v</entry>
</row>
<row>
<entry>3</entry>
+ <entry>GND</entry>
+ <entry>0v</entry>
+ <entry>0v</entry>
+ </row>
+ <row>
+ <entry>4</entry>
<entry>DATA</entry>
<entry>5v</entry>
<entry>Pulsing 0v to 5v (random)</entry>
</row>
<row>
- <entry>4</entry>
+ <entry>5</entry>
<entry>CLK</entry>
<entry>0v</entry>
<entry>Pulsing 0v to 5v (square wave)</entry>
</row>
<row>
- <entry>5</entry>
- <entry>VCC</entry>
- <entry>0v</entry>
- <entry>5v</entry>
- </row>
- <row>
<entry>6</entry>
- <entry>GND</entry>
- <entry>0v</entry>
- <entry>0v</entry>
+ <entry>AUX</entry>
+ <entry>not connected</entry>
+ <entry>not connected</entry>
</row>
</tbody>
</tgroup>
@@ -146,10 +147,11 @@
</section>
<section>
<title>Build a circuit with ICSP</title>
- <p>VCC can be connected to your PIC’s 5v supply for power-off
programming. It does not work on my circuit because there is too much
current drain. Do not connect both VCC directly to your power supply since
there may be a voltage difference. In my circuit, I will not use the VCC
pin, and I will program my chips while my circuit power supply is ON</p>
+ <p>VDD can be connected to your PIC’s 5v supply (as seen in the
schematic below), but many programmers do not need this pin. If you do not
need it you can disconnect it. I feel that it is more safe to disconnect it
if you are not going to use it. You can test disconnecting this wire after
you get ICSP working. </p>
+ <p>VDD is for power-off programming. Power-off programming does not
work in my circuit because there is too much current drain. In my projects,
I do use the VCC pin, and I will program my chips while my circuit power
supply is ON.</p>
<p>GND must be connected to your circuits ground. Follow this
circuit diagram:</p>
<image href="images/icsp_circuit.jpg" width="450"
otherprops="clickable"/>
- <p>Your done! Try to program your chip!</p>
+ <p>Your done! Turn on your power supply and try to program your
chip!</p>
</section>
</body>
</topic>
=======================================
--- /trunk/doc/dita/tutorials/tutorial_changelog.xml Sun Mar 21 16:52:07
2010
+++ /trunk/doc/dita/tutorials/tutorial_changelog.xml Thu Mar 25 21:39:19
2010
@@ -21,8 +21,12 @@
</thead>
<tbody>
<row>
+ <entry>2010/03/25</entry>
+ <entry>Updated ICSP schematic and tutorial to reflect PIC Kit
2 pinouts. ICSP schematic matches Microchip Specification</entry>
+ </row>
+ <row>
<entry>2010/03/12</entry>
- <entry>Updated SD Card Schematic. Added pull-up resistor on
chip-select line, changed resistor values for 5v-3v conversion</entry>
+ <entry>Updated SD Card schematic. Added pull-up resistor on
chip-select line, changed resistor values for 5v-3v conversion</entry>
</row>
</tbody>
</tgroup>
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.