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
Summary of Contents for AVR STK500
Page 1: ...STK500 User Guide ...
Page 2: ......
Page 38: ...Hardware Description 3 28 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 40: ...Installing AVR Studio 4 2 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 52: ...In System Programming of an External Target System 6 2 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 56: ...Technical Support 8 2 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 60: ...Appendix A 10 2 AVR STK500 User Guide 1925C AVR 3 03 ...