⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asm.lst

📁 在基于avr内核的单片机上实现MP3播放器的功能
💻 LST
📖 第 1 页 / 共 3 页
字号:
  16               	     contributors may be used to endorse or promote products derived
  17               	     from this software without specific prior written permission.
  18               	
  19               	  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20               	  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21               	  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22               	  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  23               	  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  24               	  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  25               	  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  26               	  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  27               	  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  28               	  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  29               	  POSSIBILITY OF SUCH DAMAGE. */
  30               	
  31               	/* $Id: iom32.h,v 1.7 2004/12/21 17:32:54 arcanum Exp $ */
  32               	
  33               	/* avr/iom32.h - definitions for ATmega32 */
  34               	
  35               	#ifndef _AVR_IOM32_H_
  36               	#define _AVR_IOM32_H_ 1
  37               	
  38               	/* This file should only be included from <avr/io.h>, never directly. */
  39               	
  40               	#ifndef _AVR_IO_H_
  41               	#  error "Include <avr/io.h> instead of this file."
  42               	#endif
  43               	
  44               	#ifndef _AVR_IOXXX_H_
  45               	#  define _AVR_IOXXX_H_ "iom32.h"
  46               	#else
  47               	#  error "Attempt to include more than one <avr/ioXXX.h> file."
  48               	#endif 
  49               	
  50               	/* I/O registers */
  51               	
  52               	/* TWI stands for "Two Wire Interface" or "TWI Was I2C(tm)" */
  53               	#define TWBR    _SFR_IO8(0x00)
  54               	#define TWSR    _SFR_IO8(0x01)
  55               	#define TWAR    _SFR_IO8(0x02)
  56               	#define TWDR    _SFR_IO8(0x03)
  57               	
  58               	/* ADC */
  59               	#ifndef __ASSEMBLER__
  60               	#define ADC     _SFR_IO16(0x04)
  61               	#endif
  62               	#define ADCW    _SFR_IO16(0x04)
  63               	#define ADCL    _SFR_IO8(0x04)
  64               	#define ADCH    _SFR_IO8(0x05)
  65               	#define ADCSRA  _SFR_IO8(0x06)
  66               	#define ADMUX   _SFR_IO8(0x07)
  67               	
  68               	/* analog comparator */
  69               	#define ACSR    _SFR_IO8(0x08)
  70               	
  71               	/* USART */
  72               	#define UBRRL   _SFR_IO8(0x09)
  73               	#define UCSRB   _SFR_IO8(0x0A)
  74               	#define UCSRA   _SFR_IO8(0x0B)
  75               	#define UDR     _SFR_IO8(0x0C)
  76               	
  77               	/* SPI */
  78               	#define SPCR    _SFR_IO8(0x0D)
  79               	#define SPSR    _SFR_IO8(0x0E)
  80               	#define SPDR    _SFR_IO8(0x0F)
  81               	
  82               	/* Port D */
  83               	#define PIND    _SFR_IO8(0x10)
  84               	#define DDRD    _SFR_IO8(0x11)
  85               	#define PORTD   _SFR_IO8(0x12)
  86               	
  87               	/* Port C */
  88               	#define PINC    _SFR_IO8(0x13)
  89               	#define DDRC    _SFR_IO8(0x14)
  90               	#define PORTC   _SFR_IO8(0x15)
  91               	
  92               	/* Port B */
  93               	#define PINB    _SFR_IO8(0x16)
  94               	#define DDRB    _SFR_IO8(0x17)
  95               	#define PORTB   _SFR_IO8(0x18)
  96               	
  97               	/* Port A */
  98               	#define PINA    _SFR_IO8(0x19)
  99               	#define DDRA    _SFR_IO8(0x1A)
 100               	#define PORTA   _SFR_IO8(0x1B)
 101               	
 102               	/* 0x1C..0x1F EEPROM */
 103               	
 104               	#define UBRRH   _SFR_IO8(0x20)
 105               	#define UCSRC   UBRRH
 106               	
 107               	#define WDTCR   _SFR_IO8(0x21)
 108               	
 109               	#define ASSR    _SFR_IO8(0x22)
 110               	
 111               	/* Timer 2 */
 112               	#define OCR2    _SFR_IO8(0x23)
 113               	#define TCNT2   _SFR_IO8(0x24)
 114               	#define TCCR2   _SFR_IO8(0x25)
 115               	
 116               	/* Timer 1 */
 117               	#define ICR1    _SFR_IO16(0x26)
 118               	#define ICR1L   _SFR_IO8(0x26)
 119               	#define ICR1H   _SFR_IO8(0x27)
 120               	#define OCR1B   _SFR_IO16(0x28)
 121               	#define OCR1BL  _SFR_IO8(0x28)
 122               	#define OCR1BH  _SFR_IO8(0x29)
 123               	#define OCR1A   _SFR_IO16(0x2A)
 124               	#define OCR1AL  _SFR_IO8(0x2A)
 125               	#define OCR1AH  _SFR_IO8(0x2B)
 126               	#define TCNT1   _SFR_IO16(0x2C)
 127               	#define TCNT1L  _SFR_IO8(0x2C)
 128               	#define TCNT1H  _SFR_IO8(0x2D)
 129               	#define TCCR1B  _SFR_IO8(0x2E)
 130               	#define TCCR1A  _SFR_IO8(0x2F)
 131               	
 132               	#define SFIOR   _SFR_IO8(0x30)
 133               	
 134               	#define OSCCAL  _SFR_IO8(0x31)
 135               	#define OCDR    OSCCAL
 136               	
 137               	/* Timer 0 */
 138               	#define TCNT0   _SFR_IO8(0x32)
 139               	#define TCCR0   _SFR_IO8(0x33)
 140               	
 141               	#define MCUSR   _SFR_IO8(0x34)
 142               	#define MCUCSR  MCUSR
 143               	#define MCUCR   _SFR_IO8(0x35)
 144               	
 145               	#define TWCR    _SFR_IO8(0x36)
 146               	
 147               	#define SPMCR   _SFR_IO8(0x37)
 148               	
 149               	#define TIFR    _SFR_IO8(0x38)
 150               	#define TIMSK   _SFR_IO8(0x39)
 151               	
 152               	#define GIFR    _SFR_IO8(0x3A)
 153               	#define GIMSK   _SFR_IO8(0x3B)
 154               	#define GICR    GIMSK
 155               	
 156               	#define OCR0    _SFR_IO8(0x3C)
 157               	
 158               	/* 0x3D..0x3E SP */
 159               	
 160               	/* 0x3F SREG */
 161               	
 162               	/* Interrupt vectors */
 163               	
 164               	#define SIG_INTERRUPT0          _VECTOR(1)
 165               	#define SIG_INTERRUPT1          _VECTOR(2)
 166               	#define SIG_INTERRUPT2          _VECTOR(3)
 167               	#define SIG_OUTPUT_COMPARE2     _VECTOR(4)
 168               	#define SIG_OVERFLOW2           _VECTOR(5)
 169               	#define SIG_INPUT_CAPTURE1      _VECTOR(6)
 170               	#define SIG_OUTPUT_COMPARE1A    _VECTOR(7)
 171               	#define SIG_OUTPUT_COMPARE1B    _VECTOR(8)
 172               	#define SIG_OVERFLOW1           _VECTOR(9)
 173               	#define SIG_OUTPUT_COMPARE0     _VECTOR(10)
 174               	#define SIG_OVERFLOW0           _VECTOR(11)
 175               	#define SIG_SPI                 _VECTOR(12)
 176               	#define SIG_USART_RECV          _VECTOR(13)
 177               	#define SIG_UART_RECV           _VECTOR(13) /* For backwards compatibility */
 178               	#define SIG_USART_DATA          _VECTOR(14)
 179               	#define SIG_UART_DATA           _VECTOR(14) /* For backwards compatibility */
 180               	#define SIG_USART_TRANS         _VECTOR(15)
 181               	#define SIG_UART_TRANS          _VECTOR(15) /* For backwards compatibility */
 181               	#elif defined (__AVR_ATmega323__)
 182               	#  include <avr/iom323.h>
 183               	#elif defined (__AVR_ATmega325__)
 184               	#  include <avr/iom325.h>
 185               	#elif defined (__AVR_ATmega3250__)
 186               	#  include <avr/iom3250.h>
 187               	#elif defined (__AVR_ATmega16__)
 188               	#  include <avr/iom16.h>
 189               	#elif defined (__AVR_ATmega161__)
 190               	#  include <avr/iom161.h>
 191               	#elif defined (__AVR_ATmega162__)
 192               	#  include <avr/iom162.h>
 193               	#elif defined (__AVR_ATmega163__)
 194               	#  include <avr/iom163.h>
 195               	#elif defined (__AVR_ATmega165__)
 196               	#  include <avr/iom165.h>
 197               	#elif defined (__AVR_ATmega168__)
 198               	#  include <avr/iom168.h>
 199               	#elif defined (__AVR_ATmega169__)
 200               	#  include <avr/iom169.h>
 201               	#elif defined (__AVR_ATmega8__)
 202               	#  include <avr/iom8.h>
 203               	#elif defined (__AVR_ATmega48__)
 204               	#  include <avr/iom48.h>
 205               	#elif defined (__AVR_ATmega88__)
 206               	#  include <avr/iom88.h>
 207               	#elif defined (__AVR_ATmega8515__)
 208               	#  include <avr/iom8515.h>
 209               	#elif defined (__AVR_ATmega8535__)
 210               	#  include <avr/iom8535.h>
 211               	#elif defined (__AVR_AT90S8535__)
 212               	#  include <avr/io8535.h>
 213               	#elif defined (__AVR_AT90C8534__)
 214               	#  include <avr/io8534.h>
 215               	#elif defined (__AVR_AT90S8515__)
 216               	#  include <avr/io8515.h>
 217               	#elif defined (__AVR_AT90S4434__)
 218               	#  include <avr/io4434.h>
 219               	#elif defined (__AVR_AT90S4433__)
 220               	#  include <avr/io4433.h>
 221               	#elif defined (__AVR_AT90S4414__)
 222               	#  include <avr/io4414.h>
 223               	#elif defined (__AVR_ATtiny22__)
 224               	#  include <avr/iotn22.h>
 225               	#elif defined (__AVR_ATtiny26__)
 226               	#  include <avr/iotn26.h>
 227               	#elif defined (__AVR_AT90S2343__)
 228               	#  include <avr/io2343.h>
 229               	#elif defined (__AVR_AT90S2333__)
 230               	#  include <avr/io2333.h>
 231               	#elif defined (__AVR_AT90S2323__)
 232               	#  include <avr/io2323.h>
 233               	#elif defined (__AVR_AT90S2313__)
 234               	#  include <avr/io2313.h>
 235               	#elif defined (__AVR_ATtiny2313__)
 236               	#  include <avr/iotn2313.h>
 237               	#elif defined (__AVR_ATtiny13__)
 238               	#  include <avr/iotn13.h>
 239               	/* avr1: the following only supported for assembler programs */
 240               	#elif defined (__AVR_ATtiny28__)
 241               	#  include <avr/iotn28.h>
 242               	#elif defined (__AVR_AT90S1200__)
 243               	#  include <avr/io1200.h>
 244               	#elif defined (__AVR_ATtiny15__)
 245               	#  include <avr/iotn15.h>
 246               	#elif defined (__AVR_ATtiny12__)
 247               	#  include <avr/iotn12.h>
 248               	#elif defined (__AVR_ATtiny11__)
 249               	#  include <avr/iotn11.h>
 250               	#else
 251               	#  if !defined(__COMPILING_AVR_LIBC__)
 252               	#    warning "device type not defined"
 253               	#  endif
 254               	#endif
 255               	
 256               	#include <avr/portpins.h>
   1               	/* Copyright (c) 2003  Theodore A. Roth
   2               	   All rights reserved.
   3               	
   4               	   Redistribution and use in source and binary forms, with or without
   5               	   modification, are permitted provided that the following conditions are met:
   6               	
   7               	   * Redistributions of source code must retain the above copyright
   8               	     notice, this list of conditions and the following disclaimer.
   9               	
  10               	   * Redistributions in binary form must reproduce the above copyright
  11               	     notice, this list of conditions and the following disclaimer in
  12               	     the documentation and/or other materials provided with the
  13               	     distribution.
  14               	
  15               	   * Neither the name of the copyright holders nor the names of
  16               	     contributors may be used to endorse or promote products derived
  17               	     from this software without specific prior written permission.
  18               	
  19               	  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20               	  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21               	  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22               	  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  23               	  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  24               	  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  25               	  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  26               	  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  27               	  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  28               	  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  29               	  POSSIBILITY OF SUCH DAMAGE. */
  30               	
  31               	/* $Id: portpins.h,v 1.3 2004/11/02 18:16:07 arcanum Exp $ */
  32               	
  33               	#ifndef _AVR_PORTPINS_H_
  34               	#define _AVR_PORTPINS_H_ 1
  35               	
  36               	/* This file should only be included from <avr/io.h>, never directly. */
  37               	
  38               	#ifndef _AVR_IO_H_
  39               	#  error "Include <avr/io.h> instead of this file."
  40               	#endif
  41               	
  42               	/* Define Generic PORTn, DDn, and PINn values. */
  43               	
  44               	/* Port Data Register (generic) */
  45               	#define    PORT7        7

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -