What if I detach AVR microcontroller from the Arduino Board after uploading program? Does the microcontroller still have the program on it? Or the program will be deleted?
On the board where does Arduino store hex file?
I am very beginner in Embedded Programming. I am learning about microcontroller and Arduino. While learning about programming Arduino-Uno I got these question in my mind.
-
the microcontroller itself stores the program in flash, so you can remove the part and move it elsewhere and the program goes with it.old_timer– old_timer2017年04月22日 13:48:37 +00:00Commented Apr 22, 2017 at 13:48
-
Just look at the documentation for the AVR part it describes where the application lives.old_timer– old_timer2017年04月22日 13:49:20 +00:00Commented Apr 22, 2017 at 13:49
-
historically there have been boards (basic stamp, etc) that the program on the microcontroller was an interpreter for a bytecode that actually lived on another device on the board, eeprom or flash. No reason to do this on an arduino, since you are learning examine the schematic and see what else you see on the board, where else could the program live? (combined with reading datasheets for the parts you find)old_timer– old_timer2017年04月22日 13:51:01 +00:00Commented Apr 22, 2017 at 13:51
-
Make sure to check this link (arduino.cc/en/main/standalone)Elbehery– Elbehery2017年04月22日 14:36:34 +00:00Commented Apr 22, 2017 at 14:36
1 Answer 1
The AVR μC got a flash memory that can store the code loaded in. That mean you can load the code with the arduino board, detach the avr and put it on another circuit. If the μC is powered well, it will behave just like the arduino.
Don't forget to set the /reset pin to high, if you do, the μC will be stuck to the 1st line of code ;)