element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Flash programmer for ATmega 168A
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 391 subscribers
  • Views 1881 views
  • Users 0 members are here
  • flash programmer
  • arduino uno
  • microchip
  • isp
  • atmega168
Related

Flash programmer for ATmega 168A

Former Member
Former Member over 9 years ago

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.

  • Sign in to reply
  • Cancel
  • beacon_dave
    beacon_dave over 9 years ago

    The Arduino ISP programmer comes preassembled - no soldering required.

    https://www.arduino.cc/en/Main/ArduinoISP

    The six pin header is designed to plug directly onto the Arduino ICSP header. However you could use jumper wires to connect it to breadboard if you are working with a stand alone ATmega IC.

     

    ( Adafruit have a little accessory which allows you to use a 6 wire IDC header cable which makes this even easier but it does require soldering.

    https://www.adafruit.com/product/1465

     

    Adafruit also have a breadboard helper which would allow you to plug the ISP directly onto breadboard and this does not require soldering

    https://www.adafruit.com/products/2105  )

     

    Getting started with the ISP

    https://www.arduino.cc/en/Guide/ArduinoISP

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to beacon_dave

    Thanks for your answer, you helped a lot ! So if i buy one of these http://www.atmel.com/devices/atmega168a.aspx and plug them, onto a breadboard I can program it in C with Arduino ISP programmer with no problem and no additional divices ?

     

    I found one copy of arduino ISP on amazon. Would it work as it should ?

    http://amzn.com/B00LUJYI26

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 9 years ago

    Yes, you can use it to either upload the boot loader or to program a sketch directly onto the ATmega.

    You need to use the 'tools -> upload using programmer' option in the Arduino IDE however.

     

    There may be a little confusion over the Arduino ISP SJVCC option. On mine it already had a solder bridge applied (same as shown in the Amazon photo) which means that it can supply power to the target IC for programming. Without this bridge then you would have to either power the target IC on the breadboard or be creative and carefully attach a small clip to the ISP device.

     

    You will need 6 jumper wires to connect the ISP header to the breadboard and a some more to apply power and ground to the appropriate pins on the ATmega.

     

    Do a search for the Arduino ICSP pin out and download the data sheet for the ATmega so as you know which pins to connect to. Pin one of the ICSP jumper in the ISP is marked with a white dot.

     

    Basically you are doing the same as this:

    https://www.arduino.cc/en/uploads/Tutorial/SimpleBreadboardAVR.png

    except that the Arduino ISP replaces the Arduino Uno shown in the picture.

     

    You will need a USB to microUSB cable to connect to the ISP programmer to the host PC.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to beacon_dave

    You are a great help to me in this field. I wonder if Arduino IDE is an only way to program ATmega ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 9 years ago

    Ah - very good point - I was assuming that you were planning on using the Arduino IDE.

     

    You can use Atmel Studio to program and AVR Mega. Not sure if it can use the Arduino ISP though. I've used it with the Atmel AVR Dragon programmer/debugger.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 9 years ago in reply to Former Member

    Are you familiar with the Atmel Xplained evaluation boards ?

     

    You can use one of these directly with Atmel Studio via its USB connector

    ATmega168 Xplained Mini

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to beacon_dave

    Feels like programmer/debugger Atmel ARV Dragon and Atmel Studio feels like more advanced way ! Would it be more profitable to use theese tools to program ATmega ? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 9 years ago in reply to Former Member

    Yes, more powerful features available.

     

    The Dragon is a bit more expensive however

    ATAVRDRAGON - ATMEL - IN SYSTEM DEBUGGER / PROGRAMMER, AVR | Farnell element14

     

    Note that the Dragon does not come with a ZIF socket for programming - if you want that then you need to solder one onto it. It does come with a ICSP header similar to the Arduino ISP, so you can connect it to your breadboard project. This is how I've used the Dragon with an ATmega 1284p.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to beacon_dave

    I'm not sure if i need an advanced board like Atmel ARV Dragon since i'm a complete beginner. But i still have a question if  i can program ATmega with Arduino ISP in C like if you would programm in the Dragon ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 9 years ago in reply to Former Member

    I think the book you are looking at is based around using the AVR GCC compiler which will mean you will likely end up with a hex file that you need to transfer to the ATmega.

     

    You can do this with Atmel Studio and the Dragon via one of the command line tools. It doesn't look like Atmel Studio supports the Arduino ISP as a programmer though, and I don't think you can download a complied binary using Arduino IDE.

     

    Did you take a look at the ATmega168 Xplained Mini ? as that can be programmed directly from Atmel Studio via its USB connector.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube