Simple-SW_LED3

Simple-SW_LED3 - /* * / / File Name : 'Simple-SW_LED3.c' /...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//********************************************************************* ******** // // File Name : 'Simple-SW_LED3.c' // Title : Simple demo program to turn on and off an LED on the STK500 // Author : Buff Furman // Created : 11FEB2006 // Revised : 13FEB2006 // Version : 1.0 // Target MCU : Atmel AVR series // Editor Tabs : 4 // // Description : Turns on LED3 on when SW3 is pressed, else turns it off // Assumes LEDs on STK500 connected to PORTC pins, switches to PORTD pins // // Revision History: // When Who Description of Change // ------- --------- --------------------------- // 13FEB2006 BF Changed PORTB to PORTC for LED I/O, // modified macros, and modified comments // 11FEB2006 BF Created program // //********************************************************************* ******** /*---------Macros----------*/ /*---------Include Files----------*/ #include <avr/io.h> // include I/O definitions (port and pin names, etc) #include "global.h" // include global settings for the microcontroller
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Simple-SW_LED3 - /* * / / File Name : 'Simple-SW_LED3.c' /...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online