[AVR Programmer - III] (Further) Simplification ofthe LancOs's SI Prog the Serial Port Porgrammer
Ok. I guess the most popular microcontrollers now a days in Bangladesh are ATmega8 and ATmega32. These microcontrollers have inverted reset, that does not work with the second circuit. So I am posting a circuit specially for these sort of noninverted IC. If your AVRs reset pin in datasheet have a bar on the name of it. ( Reset ) (or has a circle outsidethe pin of it), then this programmer is suitable for you. In the circuit diagram I have already shown the pin out of the BC 547 ic.
Ok. I guess the most popular microcontrollers now a days in Bangladesh are ATmega8 and ATmega32. These microcontrollers have inverted reset, that does not work with the second circuit. So I am posting a circuit specially for these sort of noninverted IC. If your AVRs reset pin in datasheet have a bar on the name of it. ( Reset ) (or has a circle outsidethe pin of it), then this programmer is suitable for you. In the circuit diagram I have already shown the pin out of the BC 547 ic.
(Note: My programmer was not working. I tried to debug it and found that the Emitter and Base of the 547 IC was short circuit. So, to check if your BC547 is working properly, take your multimeter in diode mode, and check if an approximately 0.7 Volt drop occur between base and emitter. This will save your valuable time of debugging. (3 hours in my case. )
The completed circuit is shown in picture. It is programming my ATmega8 microcontroller.
To program go to Lancos and download the latest version of Ponyprog from there (http://www.lancos.com/prog.html).
Ok. I guess the most popular microcontrollers now a days in Bangladesh are ATmega8 and ATmega32. These microcontrollers have inverted reset, that does not work with the second circuit. So I am posting a circuit specially for these sort of noninverted IC. If your AVRs reset pin in datasheet have a bar on the name of it. ( Reset ) (or has a circle outsidethe pin of it), then this programmer is suitable for you. In the circuit diagram I have already shown the pin out of the BC 547 ic.
(Note: My programmer was not working. I tried to debug it and found that the Emitter and Base of the 547 IC was short circuit. So, to check if your BC547 is working properly, take your multimeter in diode mode, and check if an approximately 0.7 Volt drop occur between base and emitter. This will save your valuable time of debugging. (3 hours in my case. )
The completed circuit is shown in picture. It is programming my ATmega8 microcontroller.
To program go to Lancos and download the latest version of Ponyprog from there (http://www.lancos.com/prog.html).
Hi Sajid,
ReplyDeleteOne question. Don't we need the voltage regulator LM2936-Z5, as suggested in the original PonyProg site ?
May I know your reasons for omitting it ?
regards,
Seemanta
Regarding LM2936-Z5:
ReplyDeleteSajid has posted the following in an other blog post regarding the component reduction process, and i qoute:
"If you take a good look at the circuit, you’ll see that a lot of mumbo-jumbos have been done just to drain power from the serial port. I thought that it was unnecessary. If you are not too fuzzy about power, you can just use a 7805 IC and use an adapter to power your microcontroller on your bread board. If that is done, you can omit all the switching diodes (4148s) and the rare-to-find voltage regulator (LM2936Z-5). (I couldn’t find it in my country, Bangladesh, the shopkeeper demanded that it was just equivalent to 78L05, but the Lancos sheet asks not to use a 78L05)"
Thank you, benjamin.
ReplyDeleteActually, if it works without the regulator IC, why not just omit it? The programmer works fine without the regulator, and as far as I understand, the regulator was there to draw power from Serial port.
Hi Sajid. I tryed your scheme and it dosen't work for me. I have an atmega8l-8pu and i use an usb-rs232 cable.Can you tell me why it dosen't work?
ReplyDeleteThanks!
Hi Florin,
ReplyDeleteThank you for trying the schematic out. Actually your post partly answers your question. What you have is a USB-RS232 converter. In SI Prog, lancos has not implemented the programmer using RS-232 protocol. It has used some other pins of serial port than the TX, RX and GND pins. So if the USB to RS232 converter does not implement the functionality of those pins, the programmer will not work. You could try a USB-parallel converter if you don't have a serial port.
I am currently working on implementing a STK200 compatible (i.e. ponyprog compatible) USB programmer. I'll post it in my blog as soon as I am finished.
regards,
Sajid
Are 2N3904 and 2N2222 suitable replacements for the BC547?
ReplyDeleteRE : circuit simulations
ReplyDeletehave you tried live-wire? few of my friends used to play with that for simulation. this might be useful.
http://www.new-wave-concepts.com/ed/lw_lib.html
cheers
@ashish:
ReplyDeletelive-wire looks nice. But I'm not sure if it can simulate Microcontrollers. Proteus obviously has upper hand in that. Proteus Demo version allows you to run simulations in unregistered version (not save them). Live wire does not allow that unfortunately.
SIR WILL THIS WORK WITH AT89S52????????
ReplyDeletesir will this work with at89s52
ReplyDeleteatmega8l-8pu sir not option plz help
ReplyDeletesir my circuit not working plz help
ReplyDeleteHello Sajid
ReplyDelete1 - you need an external circuit 5v or not
2 - You need to Crystal Oscillator
Hello Sajid
ReplyDelete1 - you need an external circuit 5v or not
2 - You need to Crystal Oscillator
HI, the programmer work if you use an adaptator RS232 <=> USB ?
ReplyDeleteHello,
ReplyDeleteThis is such a brilliant post. Very informative and helpful writing this one. Thank you for your good sharing. Hope you post your next article soon.