Flash programmer for ATmega168A

Discussion in 'Embedded Systems and Microcontrollers' started by LightningWalrus, Jun 2, 2016.

  1. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    Hello ! I'm going to buy this book http://amzn.com/1449355781 and start to learn programming ATmega 168A in C. In the books component list i found some alternatives for an ISP programmer which you need to programm your microchip. Here are some:



    1.An Arduino and six wires makes a totally workable flash programmer.



    - An original arduino is quite expensive but affordable. Will a fake arduino copy work as a Flash programmer ?





    2.USBTinyISP



    - I don't have a soldering iron and not planning to get one for a while.





    3.USBasp, from BaiTe in China



    -In the book it says that i need to flash the firmware into the AVR in the programmer. I don't really know what it means.





    4.USBTiny, tiny version from ehajo.de



    - Same as previous option





    5.A homemade programming spider, which plugs into a breadboard around the AVR chip and connects up the programming, power, and reset pins the right way every time. If you’re at all handy with a soldering iron and perfboard, you should make one of these.



    - Again, i don't have a soldering iron.







    I don't know what option to choose. Seems like options 2 and 5 won't work for me att all since i don't have a soldering iron. Options 3 and 4 are not completely clear. Option 1 is the most expensive one but easyest, may be a fake arduino copy would work as a Flash programmer ? I don't know. I would be happy if someone could educate me at this stuff with ISP programmers.
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    Depends on your location.
    In US of A I would just buy a copy of Uno for eight bucks and use that to program the chips.
     
    LightningWalrus likes this.
  3. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    Thanks for your answer ! I live in Finland and i can buy a copy of arduino from ebay or amazon. Any particular model would you recomend ?
     
  4. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    I don't have any specific suggestions. See if Arduino forums have some reviews or comments from people who bought their boards from ebay.
     
    LightningWalrus likes this.
  5. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    Thank you for help !
     
  6. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    Ebay Arduinos work fine.
     
    LightningWalrus likes this.
  7. dannyf

    Well-Known Member

    Sep 13, 2015
    1,832
    367
    I use usbasp, for simplicity and reliability.

    However, if you are into arduino, and. Have a spare one, getting to run as a programmer Haas it's appeals I think.
     
    LightningWalrus likes this.
  8. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    I've never used arduino. And i'm not planing into using Arduino IDE and Atmega328P with bootloader.

    I want to program Atmega128A in C by writing the code, compiling it and uploading it to the chip with a programmer.

    Would USBasp transfer compiled C code (machine code) into microchips flash memory with no additional hardware and any problems i should be aware of ?

    There was some reference to USBasp in the book which i'm looking at.

    [​IMG]

    Is that for all USBasps or only ones that you make yourself ?
     
  9. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    USBasp would program the microcontroller just fine.
     
    LightningWalrus likes this.
  10. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    Are asking about flashing the chip in the programmer? Yes, it is chicken and egg problem. I ran into the same thing when I was looking into building my own programmer. I pretty much found all the programming circuits you have found, but once you start reading though the instructions, you find that you need to somehow program the chip in the programmer that you are building...

    In my case I started looking for chip that has a bootloader on the chip from the factory. I already had some experience with Intel 8051 uC chips from school, so I found a couple of 8051 chips that come with bootloader from factory (Microchip and Maxim). I chose Microchip chip. However, these are not AVR chips. If you use AVR chips, like I wrote earlier, just getting cheap copy of some Arduino board would serve you very well, you can use that board to program other AVR chips and you can use it for projects.
     
    LightningWalrus likes this.
  11. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    I'm not planing on building my own programmer insted i'm considering buying this USBasp from eBay http://r.ebay.com/Pf5Jh1 and using it as a programmer for ATmega168A. By some reason i don't feel comfortable with using arduino uno as a programmer.
     
  12. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    LightningWalrus likes this.
  13. NorthGuy

    Active Member

    Jun 28, 2014
    605
    121
  14. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    Thanks for advice ! Will this programmer transfer the machince code to the flash memory of the chip without using or needing to install the bootloader ?

    Would it work like it is suggested in the book ?

    [​IMG]
    [​IMG]
     
  15. LightningWalrus

    Thread Starter New Member

    Mar 15, 2016
    26
    0
    Seems like a better alternative for me. I will likely buy it from this website.
     
  16. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    Compiler converts C to machine code.USBasp is just a programmer.
     
    LightningWalrus likes this.
Loading...