Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Patrick Fitzgerald
Published

Upload Using External Programmer Arduino Board ISP/ICSP Port

We will program a board using a USBTiny external programmer. Your Uno board has a 6 pin ICSP port where we can upload our sketch.

ExpertProtip1 hour811
Upload Using External Programmer Arduino Board ISP/ICSP Port

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
usbtiny programming device
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

cCode.ino

Arduino
Arduino sketch for Uno
toggles IO pins on PORTB, PORTC, PORTD
// toggle IO pins on PORTB, PORTC and PORTD
#define F_CPU 16000000
#include <avr/io.h>
#include <util/delay.h>
int main (void) {   DDRB = 0xFF; DDRC = 0xFF; DDRD = 0xFF;      // set PORT output
      while(1)  {   PORTB++; PORTC++; PORTD++; _delay_ms(30); }} // toggle IOs

Credits

Patrick Fitzgerald

Patrick Fitzgerald

118 projects • 40 followers

Comments