Download CodeVisionAVR User Manual - Sigma
Transcript
CodeVisionAVR 3.8 Defining Data Types ................................................................................................................. 104 3.9 Type Conversions..................................................................................................................... 105 3.10 Operators................................................................................................................................ 106 3.11 Functions ................................................................................................................................ 107 3.12 Pointers................................................................................................................................... 108 3.13 Compiler Directives ................................................................................................................ 111 3.14 Accessing the I/O Registers ................................................................................................... 115 3.14.1 Bit level access to the I/O Registers............................................................................... 117 3.15 Accessing the EEPROM......................................................................................................... 118 3.16 Using Interrupts ...................................................................................................................... 119 3.17 RAM Memory Organization and Register Allocation .............................................................. 121 3.18 Using an External Startup Assembly File ............................................................................... 124 3.19 Including Assembly Language in Your Program .................................................................... 126 3.19.1 Calling Assembly Functions from C................................................................................ 127 3.20 Creating Libraries ................................................................................................................... 128 3.21 Using the AVR Studio Debugger ............................................................................................ 131 3.22 Compiling the Sample Code of the ATxmega Application Notes from Atmel ........................ 132 3.23 Hints........................................................................................................................................ 132 3.24 Limitations............................................................................................................................... 132 4. Library Functions Reference........................................................................................................ 133 4.1 Character Type Functions ........................................................................................................ 134 4.2 Standard C Input/Output Functions.......................................................................................... 135 4.3 Standard Library Functions ...................................................................................................... 140 4.4 Mathematical Functions............................................................................................................ 142 4.5 String Functions........................................................................................................................ 145 4.6 Variable Length Argument Lists Macros .................................................................................. 150 4.7 Non-local Jump Functions ........................................................................................................ 151 4.8 BCD Conversion Functions ...................................................................................................... 153 © 1998-2009 HP InfoTech S.R.L. Page 5