Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
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 hour840
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
124 projects • 43 followers
Contact

Comments

Please log in or sign up to comment.