Beginner’s Microcontroller Programming-III: (Further) Simplification of the 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).

Related Posts

  1. Beginner’s Microcontroller Programming-II: (Further) Simplification of the LancOs’s SI Prog the Serial Port Porgrammer
  2. Beginner’s Microcontroller Programming: Simplification of the LancOs’s SI Prog
  3. Beginner’s Microcontroller Programming-IV: Absolute minimalistic approach to the modified SIProg
  4. (Really) Beginners Microcontroller Guide (Part-II) Configuring Ponyprog properly and writing program to uC
  5. USBasp: The USB based AVR programmer
  1. #1 by Seemanta - September 2nd, 2008, 18 Bhadro 1415, 11:45

    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

  2. #2 by benjamin solberg - September 23rd, 2008, 8 Ashin 1415, 10:31

    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)”

  3. #3 by Sajid Muhaimin Choudhury - September 28th, 2008, 13 Ashin 1415, 08:10

    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.

  4. #4 by Florin - October 4th, 2008, 19 Ashin 1415, 12:54

    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!

  5. #5 by Sajid Muhaimin Choudhury - October 4th, 2008, 19 Ashin 1415, 14:12

    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

  6. #6 by G - January 12th, 2009, 29 Poush 1415, 06:06

    Are 2N3904 and 2N2222 suitable replacements for the BC547?

  7. #7 by ashish - May 25th, 2009, 11 Joishtho 1416, 12:37

    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

  8. #8 by Sajid Muhaimin Choudhury - May 25th, 2009, 11 Joishtho 1416, 13:55

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

(will not be published)

  1. No trackbacks yet.