This code has been compiled and tested using the AIR EWAVR 4.12A compiler.
The following file(s) should be added to the IAR project:
The compiler settings (Project options) should be set as follows to compile the code:
- Processor configuration = ATmega48 (in General Options->Target).
- Enable bit definitions in I/O-Include file (in General Options->System).
- Lock for global variables = 6 (in Compiler C/C++ ->Code).
- Linker output format for debug = UBROF8 (in Linker->output).
- Linker output format for release = Intel extended hex (in Linker->output).
- Optimization settings
- Release = high speed optimization (cross call enabled).
- Debug = low size optimization (default).
Compiler output files can be found in the debug and release directories. The debug output (UBROF8 format) is using low optimization, while the release output (intel extended hex format) is using high optimization (default is size optimization).
Code size for release is 427 bytes.
Generated on Tue Sep 18 08:53:13 2007 for AVR443 Sensor-based control of three phase Brushless DC Motor by
1.4.7