From 0c9fcab3477fadbdb56333d6e4a5ab3e1618c4b3 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Fri, 28 Aug 2020 13:22:16 +0200 Subject: Software Implemented basic functionality. --- Software/m16def.inc | 509 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 509 insertions(+) create mode 100644 Software/m16def.inc (limited to 'Software/m16def.inc') diff --git a/Software/m16def.inc b/Software/m16def.inc new file mode 100644 index 0000000..1f65ba3 --- /dev/null +++ b/Software/m16def.inc @@ -0,0 +1,509 @@ +;*************************************************************************** +;* 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 :"m16def.inc" +;* Title :Register/Bit Definitions for the ATmega16 +;* Date :07.09.2001 +;* Version :1.00 +;* Support telephone :+47 72 88 87 20 (ATMEL Norway) +;* Support fax :+47 72 88 87 18 (ATMEL Norway) +;* Support E-mail :avr@atmel.no +;* Target MCU :ATmega16 +;* +;* 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<