11.07.2015 Views

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

Imagecraft c compiler and development environment for the atmel avr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ICCV8 <strong>for</strong> AVR – C Compiler <strong>for</strong> Atmel AVRAccessing <strong>the</strong> UART, EEPROM, SPI, <strong>and</strong> O<strong>the</strong>r PeripheralsThe Application Builder generates initialization code <strong>for</strong> you using a point <strong>and</strong> clickinterface, making it easy to use <strong>the</strong> peripherals built into <strong>the</strong> AVR. In addition, sourcecode to some high-level functions is provided in <strong>the</strong> EXAMPLES directory(c:\iccv8<strong>avr</strong>\examples.<strong>avr</strong>, where c:\iccv8<strong>avr</strong> is <strong>the</strong> root of yourinstallation). To use <strong>the</strong>m, copy <strong>the</strong> source files to your working directory <strong>and</strong> makeany necessary modifications. Many of <strong>the</strong>se files are written by ImageCraft customers.There may be more examples provided than <strong>the</strong> ones listed in here. Please check <strong>the</strong>directory <strong>for</strong> details.UARTThe default library functions getchar <strong>and</strong> putchar reads <strong>and</strong> writes to <strong>the</strong> UARTusing polled mode. In <strong>the</strong> c:\iccv8<strong>avr</strong>\examples.<strong>avr</strong> directory, a set of interruptdriven buffered IO routines are provided; you may use <strong>the</strong>m instead of <strong>the</strong> defaultroutines.EEPROMA set of macros <strong>and</strong> functions are available. See Accessing EEPROM. Normalaccessing functions are included in <strong>the</strong> library, <strong>and</strong> real-time accessing functions areprovided in <strong>the</strong> files rteeprom.h <strong>and</strong> rteeprom.c in <strong>the</strong> EXAMPLES directory.SPIThe files spi.c <strong>and</strong> spi.h in <strong>the</strong> EXAMPLES directory contain example sourcecode. Use <strong>the</strong> Application Builder to generate <strong>the</strong> SPI initialization function.LCDThe file lcd.zip in <strong>the</strong> EXAMPLES directory contains source code <strong>and</strong> a demoprogram <strong>for</strong> a st<strong>and</strong>ard Hitachi or Toshiba <strong>and</strong> o<strong>the</strong>r compatible text LCD controller.I2CThe file lcd.zip in <strong>the</strong> EXAMPLES directory contains source code <strong>and</strong> a demoprogram <strong>for</strong> driving <strong>the</strong> I2C in Master mode.135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!