Set Instruksi AVR Pengelompokan Instruksi �Arithmetic & Logic Unit �Conditional Branch �Data Transfer �Bit & Bit Test �MCU Control
Contoh Software Assembler AVR ; My Very First AVR Project. include "8535 def. inc" ; Includes the 8515 definitions file. def Temp = R 16 ; Gives "Defines" Register R 16 the name Temp. org 0 x 0000 ; Places the following code from address 0 x 0000 rjmp RESET ; Take a Relative Jump to the RESET Label RESET: ; Reset Label ldi Temp, 0 x. FF ; Store 255 in R 16 (Since we have defined R 16 = ; Temp) out DDRB, Temp ; Store this value in The PORTB Data direction ; Register Loop: ; Loop Label out PORTB, Temp ; Write all highs (255 decimal) to PORTB dec Temp ; Decrement R 16 (Temp) rjmp Loop ; Take a relative jump to the Loop label