ATSTK500 Atmel, ATSTK500 Datasheet - Page 57

PROGRAMMER AVR STARTER KIT

ATSTK500

Manufacturer Part Number
ATSTK500
Description
PROGRAMMER AVR STARTER KIT
Manufacturer
Atmel
Series
AVR®r
Type
MCUr
Datasheets

Specifications of ATSTK500

Contents
Board, Cable, CD and Documentation
Data Bus Width
8 bit
Interface Type
RS-232
For Use With/related Products
Atmel AVR Devices
For Use With
ATADAPCAN01 - EXTENSION CAN ADD-ON TO STK500/1
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
9.1
AVR STK500 User Guide
Using LEDs and
Switches
Connect PORTB to LEDS and PORTD to SWITCHES.
LEDs will operate differently depending on what switch is pressed.
Tip: Copy the code from this document into AVR Studio.
;***** STK500 LEDS and SWITCH demonstration
.include “8515def.inc”
.def
.def
.def
;***** Initialization
RESET:
;**** Test input/output
LOOP:
ser
out
out
sbis
inc
sbis
Temp
DDRB,Temp
PORTB,temp
PIND,0x00
Temp
PIND,0x01
Temp
Delay
Delay2
=r16
=r17
=r18
Example Applications
; Temporary register
; Delay variable 1
; Delay variable 2
; Set PORTB to output
; Update LEDS
; If (Port D, pin0 == 0)
; then count LEDS one down
; If (Port D, pin1 == 0)
Section 9
Rev. 1925C–AVR–3/03
9-1

Related parts for ATSTK500