Friday, April 18, 2008

[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.




(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.


A friend of mine asked me to make him a cable. So I made one for him. I tested it with ATmega32.


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.


A friend of mine asked me to make him a cable. So I made one for him. I tested it with ATmega32.



To program go to Lancos and download the latest version of Ponyprog from there (http://www.lancos.com/prog.html). 




Researcher and academician by Trade. Hobbyist webdeveloper, photographer and ametuer musician.

16 comments:

  1. Hi Sajid,
    One 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

    ReplyDelete
  2. Regarding LM2936-Z5:
    Sajid 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)"

    ReplyDelete
  3. Sajid Muhaimin ChoudhurySeptember 28, 2008 at 2:10 PM

    Thank you, benjamin.

    Actually, 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.

    ReplyDelete
  4. 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?
    Thanks!

    ReplyDelete
  5. Sajid Muhaimin ChoudhuryOctober 4, 2008 at 8:12 PM

    Hi Florin,

    Thank 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

    ReplyDelete
  6. Are 2N3904 and 2N2222 suitable replacements for the BC547?

    ReplyDelete
  7. RE : circuit simulations

    have 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

    ReplyDelete
  8. @ashish:
    live-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.

    ReplyDelete
  9. SIR WILL THIS WORK WITH AT89S52????????

    ReplyDelete
  10. sir will this work with at89s52

    ReplyDelete
  11. atmega8l-8pu sir not option plz help

    ReplyDelete
  12. sir my circuit not working plz help

    ReplyDelete
  13. Hello Sajid
    1 - you need an external circuit 5v or not
    2 - You need to Crystal Oscillator

    ReplyDelete
  14. Hello Sajid
    1 - you need an external circuit 5v or not
    2 - You need to Crystal Oscillator

    ReplyDelete
  15. HI, the programmer work if you use an adaptator RS232 <=> USB ?

    ReplyDelete
  16. Hello,
    This 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.

    ReplyDelete

Visit My Official Website at BUET

Contact Me
Sajid Choudhury
+9665650
Dhaka, Bangladesh