diff --git a/projekte/attiny13/Makefile b/projekte/attiny13/Makefile new file mode 100644 index 0000000..3056501 --- /dev/null +++ b/projekte/attiny13/Makefile @@ -0,0 +1,7 @@ +default: blink.hex + +blink.hex: blink.asm tn13def.inc + avra blink.asm + +clean: + rm -f blink.hex blink.cof blink.eep.hex blink.obj diff --git a/projekte/attiny13/blink.asm b/projekte/attiny13/blink.asm new file mode 100644 index 0000000..5930c14 --- /dev/null +++ b/projekte/attiny13/blink.asm @@ -0,0 +1,17 @@ +.INCLUDE "tn13def.inc" + + sbi DDRB, 1 ; PB1 +loop: + cbi PORTB, 1 + +loop1: + sbiw ZL, 1 + brne loop1 + + sbi PORTB, 1 + +loop2: + sbiw ZL, 1 + brne loop2 + + rjmp loop diff --git a/projekte/attiny13/tn13def.inc b/projekte/attiny13/tn13def.inc new file mode 100644 index 0000000..b4f706a --- /dev/null +++ b/projekte/attiny13/tn13def.inc @@ -0,0 +1,455 @@ +;***** THIS IS A MACHINE GENERATED FILE - DO NOT EDIT ******************** +;***** Created: 2005-01-11 10:31 ******* Source: ATtiny13.xml ************ +;************************************************************************* +;* A P P L I C A T I O N N O T E F O R T H E A V R F A M I L Y +;* +;* Number : AVR000 +;* File Name : "tn13def.inc" +;* Title : Register/Bit Definitions for the ATtiny13 +;* Date : 2005-01-11 +;* Version : 2.14 +;* Support E-mail : avr@atmel.com +;* Target MCU : ATtiny13 +;* +;* DESCRIPTION +;* When including this file in the assembly program file, all I/O register +;* names and I/O register bit names appearing in the data book can be used. +;* In addition, the six registers forming the three data pointers X, Y and +;* Z have been assigned names XL - ZH. Highest RAM address for Internal +;* SRAM is also defined +;* +;* The Register names are represented by their hexadecimal address. +;* +;* The Register Bit names are represented by their bit number (0-7). +;* +;* Please observe the difference in using the bit names with instructions +;* such as "sbr"/"cbr" (set/clear bit in register) and "sbrs"/"sbrc" +;* (skip if bit in register set/cleared). The following example illustrates +;* this: +;* +;* in r16,PORTB ;read PORTB latch +;* sbr r16,(1<