A simple way to accomplish this is to power the complete system (programmer // and target) at 3V3. ) as // the programmer, make sure to not expose any of the programmer's pins to 5V. // IMPORTANT: When using an Arduino that is not 5V tolerant (Due, Zero. // Alternatively you can use any other digital pin by configuring // software ('BitBanged') SPI and having appropriate defines for PIN_MOSI, // PIN_MISO and PIN_SCK. This will work even when not // using an Uno. If you find this wiring more // practical, have a define USE_OLD_STYLE_WIRING. That is why many tutorials instruct // you to hook up the target to these pins. GND // // On some Arduinos (Uno.), pins MOSI, MISO and SCK are the same pins as // digital pin 11, 12 and 13, respectively. On all Arduinos, these pins can be found // on the ICSP/SPI header: // // MISO °. // By default, the hardware SPI pins MISO, MOSI and SCK are used to communicate // with the target. ArduinoISP // Copyright (c) 2008-2011 Randall Bohn // If you require a license, see // // // This sketch turns the Arduino into a AVRISP using the following Arduino pins: // // Pin 10 is used to reset the target microcontroller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |