https://learn.adafruit.com/arduino-tips ... arduinoisp
After you've burned the bootloader, how do you program it?
Question
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Question
You can program it via the ISP.
Or via serial using the bootloader and an FTDI cable or FTDI Friend: http://aeturnalus.com/robotics/poor-man ... d-arduino/
Or indirectly using the USB/Serial capabilities of an Arduino board: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Or you can stick it directly into an Arduino board and program it that way.
Or via serial using the bootloader and an FTDI cable or FTDI Friend: http://aeturnalus.com/robotics/poor-man ... d-arduino/
Or indirectly using the USB/Serial capabilities of an Arduino board: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Or you can stick it directly into an Arduino board and program it that way.
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
How would I program it with the arduino ISP? What are the steps if I got it in the avr board and have my sketch ready?
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
Also it does work with Arduino Uno right?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Question
The bootloader is just a program that loads other programs. You can load any program you want via the ISP. It doesn't have to be a bootloader. Just compile and upload your program as you would the bootloader.
And yes. If you are programming Atmega328 chips, they can be used in the Uno.
And yes. If you are programming Atmega328 chips, they can be used in the Uno.
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
So the "programmer" option just needs to be on arduino as ISP and then everything I upload will be uploaded to the chip?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Question
Yes. Using the ISP, you can write your program directly to flash. If you want to upload a program via the serial port, you need a bootloader on the chip that can read from the serial port and write to flash for you.
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
What is flash (sorry kinda new to arduino and electronics in general)?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Question
Flash is non-volatile program memory. One of the three types of memory on the Arduino: http://learn.adafruit.com/memories-of-an-arduino
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
What if the chip needs an external resonator or crystal? Is the pin connections set up in a way that it can use the on board crystal?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Question
There are fuse settings that determine the clock source. If you purchase a raw chip, they usually come programmed to use the internal clock source. If you buy one pre-programmed for Arduino use, it will have fuse settings appropriate for use with the Arduino 16MHz crystal.
It's is good to familiarize yourself with the fuse settings before experimenting with them. You can 'brick' a chip with the wrong settings.
http://www.atmel.com/Images/doc8161.pdf
It's is good to familiarize yourself with the fuse settings before experimenting with them. You can 'brick' a chip with the wrong settings.
http://www.atmel.com/Images/doc8161.pdf
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
Well the ones I got is pre programmed and needs an external crystal/resonator. So should I just solder one to the clock pins?
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
Also if I solder a resonator or crystal with capacitors would I then be able to program chips that use the internal clock without de-soldering the resonator/crystal? Like will it break a chip to get external clock signals if it uses the internal clock?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Question
.This link shows the basic circuit for an external clock: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
If you re-program to use the internal clock, the external circuit can be eliminated.
If you re-program to use the internal clock, the external circuit can be eliminated.
-
- Posts: 17
- Joined: Tue May 06, 2014 12:07 pm
Re: Question
Well yes, but my question was: If I bought the kit could I just solder a resonator to the clock pins? And will it break a chip to give it external clock signals if it was configured to use it's internal clock?
Please be positive and constructive with your questions and comments.