DataSheet.es    


PDF AVR32000 Data sheet ( Hoja de datos )

Número de pieza AVR32000
Descripción 32-bit Microcontrollers
Fabricantes ATMEL Corporation 
Logotipo ATMEL Corporation Logotipo



Hay una vista previa y un enlace de descarga de AVR32000 (archivo pdf) en la parte inferior de esta página.


Total 6 Páginas

No Preview Available ! AVR32000 Hoja de datos, Descripción, Manual

AVR32000: Introduction to AVR32 header files
Features
Register and Bit-Name Definitions
Use of Bit-field and Bit-mask
Use of type definitions
Use of Macros
Deviance Between Hardware Registers and Header Register Naming
32-bit
Microcontrollers
1 Introduction
The purpose of this application note is to give new users a basic introduction to the
header files for AVR®32 microcontrollers. The usage of I/O registers, bit-names
and module type definitions. It will also cover more advanced usage of the header
files like the I/O modules structures. This application note is specific for IAR
Systems® AVR32 compiler and GNU GCC for AVR32 compiler.
www.DataSheet4U.com
Rev. 32005A-AVR32-05/06

1 page




AVR32000 pdf
AVR32000
A general convention is used when a register has a reserved name; an underscore is
added to the end of the register name in the header file.
Example setting the register if in a module MODULE, would according to the previous
standard be written as:
(&AVR32_MODULE)->if = 0;
But due to “if” being a reserved word, the header file name of the register is altered:
(&AVR32_MODULE)->if_ = 0;
5 Macro file
5.1 Example usage
Included with this application note is a header file containing macros for accessing the
system register by using the mfsr and mtsr. The header file is located under
src/macro.h. This file is also shipped with the header files for AVR32 devices.
The example below set, clear, toggle and read the global interrupt flag.
#include <avr32/io.h>
#include “macro.h”
int main( int argc, char * argv[] )
{
AVR32_SET_SR_BIT(AVR32_SR, AVR32_SR_GM);
AVR32_CLEAR_SR_BIT(AVR32_SR, AVR32_SR_GM);
AVR32_TOGGLE_SR_BIT(AVR32_SR,AVR32_SR_GM);
volatile unsigned int readSystemRegister;
AVR32_READ_SR_REG(AVR32_SR, readSystemRegister);
return 0;
} /* End main */
5.2 Doxygen documentation
All source code is prepared for doxygen automatic documentation generation.
Premade doxygen documentation is also supplied with the source to this application
note, located in src/doxygen/index.html.
Doxygen is a tool for generating documentation from source code by analyzing the
source code and using known keywords. For more details see
http://www.stack.nl/~dimitri/doxygen/.
32005A-AVR32-05/06
5

5 Page










PáginasTotal 6 Páginas
PDF Descargar[ Datasheet AVR32000.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
AVR3200032-bit MicrocontrollersATMEL Corporation
ATMEL Corporation

Número de piezaDescripciónFabricantes
SLA6805M

High Voltage 3 phase Motor Driver IC.

Sanken
Sanken
SDC1742

12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters.

Analog Devices
Analog Devices


DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares,
permitiéndote verlos en linea o descargarlos en PDF.


DataSheet.es    |   2020   |  Privacy Policy  |  Contacto  |  Buscar