EasyManuals Logo

Atmel AVR STK500 User Manual

Atmel AVR STK500
62 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #58 background imageLoading...
Page #58 background image
Example Applications
9-2 AVR STK500 User Guide
1925C–AVR–3/03
dec Temp ; then count LEDS one up
sbis PIND,0x02 ; If (Port D, pin2 == 0)
ror Temp ; then rotate LEDS one right
sbis PIND,0x03 ; If (Port D, pin3 == 0)
rol Temp ; then rotate LEDS one left
sbis PIND,0x04 ; If (Port D, pin4 == 0)
com Temp ; then invert all LEDS
sbis PIND,0x05 ; If (Port D, pin5 == 0)
neg Temp ; then invert all LEDS and add 1
sbis PIND,0x06 ; If (Port D, pin6 == 0)
swap Temp ; then swap nibbles of LEDS
;**** Now wait a while to make LED changes visible.
DLY:
dec Delay
brne DLY
dec Delay2
brne DLY
rjmp LOOP ; Repeat loop forever

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR STK500 and is the answer not in the manual?

Atmel AVR STK500 Specifications

General IconGeneral
BrandAtmel
ModelAVR STK500
CategoryController
LanguageEnglish

Related product manuals