In System Programming (ISP) for ATMEL chips
In System Programming (ISP) for ATMEL chips
In System Programming (ISP) for ATMEL chips
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>In</strong> <strong>System</strong> Programmer (<strong>ISP</strong>) <strong>for</strong> <strong>ATMEL</strong> micro controllers<br />
http://www.ikalogic.com/isp.php<br />
Page 14 of 29<br />
26-02-2008<br />
Anonymous<br />
visitor<br />
on: 02 Jun 2007<br />
Posted by:<br />
Ibrahim Kamal<br />
on: 02 Jun 2007<br />
Posted by:<br />
Abhay<br />
on: 05 Jun 2007<br />
Posted by:<br />
Ibrahim Kamal<br />
on: 05 Jun 2007<br />
[Quoting: Ibrahim Kamal]<br />
[Quoting: suetaM] Hello,I mounted the cable and I'm its ok to read the device.I<br />
understand that to read it I need both MOSI, MISO, CLK and RESET signals, cause one is<br />
the way of solicitations to 89s51 and other is the way of listening answers.I know both<br />
signals are operating ok, cause your software read only FF bytes when one of each cables<br />
are not plugged on my protoboard. And when are pluged, I read "real" values.So, all the<br />
four signals are operating ok to read, but when I try to write I have the "Write Error at<br />
adrress 0 ....." error.I tried to put the capacitor 10uF to the source and the error<br />
continues.I tried with four microcontroler, all showed the same error.So, some idea?I<br />
unbelieve the problem is at 89s51 cause it's understanding my solicitations and<br />
answering.Other question... where do I found 89s51 <strong>ATMEL</strong> <strong>ISP</strong> programmer?<br />
Thanks,suetaM<br />
well, let's start from the begining, did you connect pin 31 to 5V, and a crystal oscillator on<br />
18 and 19?try slowing down the process from the <strong>ISP</strong>prog software..what is the length of<br />
the cable?Try another power supply, if the power supply is not clean and too noizy it gives<br />
me the same symptomes. try operating from a battery and a 7805 regulator...let us know<br />
how it went.. good luck<br />
I download other software and, whith the same cable schematic shown on this page I solve<br />
the problem. So, I can say the problem is the software.The software I downloaded can be find<br />
at http://www.aec-electronics.co.nz/index.php?page_id=18I tried to take out the 7408 buffer<br />
and it operate. So I changed my source to a computer source (5.15V) and it didn't operate.So,<br />
I installed a 10K resistor betwen the RESET and ground and a 0.1 uF capacitor betwen source<br />
and RESET, and it operate.So, my schematic folows (without 7408 or any buffer):DB25<br />
89S516 RESET7 MOSI8 CLK10 MISO18-25 GROUNDI suggest a cable with one more wire (6 at<br />
total), where you will plug on microcontroler Vcc (Source). Lets call it signal by<br />
MIC_SOURCE.So, to finish your cable, install a capacitor 0.1uF betwen MIC_SOURCE wire and<br />
RESET wire and a resistor betwen wire RESET and GROUND and download software<br />
athttp://www.aec-electronics.co.nz/index.php?page_id=18Its possible to run with it's page<br />
software, but on my micro it didn't happened.So, is it andDá-lhe Grêmio!!!!!!! (Soccer World<br />
Championship 1983 and 2 times America Championship)<br />
Reply With Quote<br />
[Quoting: suetaM ] I download other software and, whith the same cable schematic shown<br />
on this page I solve the problem. So, I can say the problem is the software.The software I<br />
downloaded can be find at http://www.aec-electronics.co.nz/index.php?page_id=18I tried<br />
to take out the 7408 buffer and it operate. So I changed my source to a computer source<br />
(5.15V) and it didn't operate.So, I installed a 10K resistor betwen the RESET and ground<br />
and a 0.1 uF capacitor betwen source and RESET, and it operate.So, my schematic folows<br />
(without 7408 or any buffer):DB25 89S516 RESET7 MOSI8 CLK10 MISO18-25 GROUNDI<br />
suggest a cable with one more wire (6 at total), where you will plug on microcontroler Vcc<br />
(Source). Lets call it signal by MIC_SOURCE.So, to finish your cable, install a capacitor<br />
0.1uF betwen MIC_SOURCE wire and RESET wire and a resistor betwen wire RESET and<br />
GROUND and download software athttp://www.aec-electronics.co.nz/index.php?<br />
page_id=18Its possible to run with it's page software, but on my micro it didn't<br />
happened.So, is it andDá-lhe Grêmio!!!!!!! (Soccer World Championship 1983 and 2 times<br />
America Championship)<br />
Wow! suetaM I am impressed, nice problem solving approach!And thanks a lot <strong>for</strong> sharing<br />
such useful in<strong>for</strong>mation to the visitors.See you soon!<br />
Reply With Quote<br />
Ya ok good news ..... my programmer works...... hey one thing the program you have written<br />
is perfect no problems.... but few things must be noted..... the Atmel datasheet mentions the<br />
use of two 33 microf capacitors with the crystal oscillator.... you kno that had spoilt my entire<br />
programmer..... i screwed 3 <strong>chips</strong> using that capacitors...... i had used 2 33microfarad<br />
electrolytic capacitors with the crystal connected to ground.... incase any of you have used it<br />
take it out and then try else try out a ceramic 33 microfarad..... i dont kno whether using a<br />
ceramic capacitor will work or not but it is definitely worth a try...... one more thing i wanted<br />
to ask is the programming is done and the program read the microcontroller flash too and<br />
programs it but it doesnt seem to run the way it is intended..... apart from grounding reset<br />
and connectine ea(pin 31) to Vcc wat else should be done ..... i had written a stepper motor<br />
program where the the pins 1.2 and 1.3 keep going on and off with 1 second period but the<br />
pins in the microcontroller remains at 5.15 volts. no change i dont understand why .... i am<br />
guessing the chip is screwed.....<br />
I didn't write this software, All the credit goes to Adam Dybkowski<br />
Reply With Quote<br />
[Quoting: Abhay] hey one thing the program you have written is perfect no problems....<br />
[Quoting: Abhay]but few things must be noted..... the Atmel datasheet mentions the use of<br />
two 33 microf capacitors with the crystal oscillator.... you kno that had spoilt my entire<br />
programmer..... i screwed 3 <strong>chips</strong> using that capacitors...... i had used 2 33microfarad<br />
electrolytic capacitors with the crystal connected to ground....