Embedded tools that
make the difference™
CodeVisionAVR
Integrated Development Environment for the 8-bit Microchip AVR, AVR8X, AVR DA, AVR DB, AVR DD, AVR EA and XMEGA Microcontrollers
Download
Alphanumeric LCD
Simple demo to display a text on a 2x16 character LCD.
Demo to display an user defined character on a 2x16 character LCD.
Graphic Displays
Example for the ILITEK ILI9225B 220x176 pixels graphic TFT LCD controller.
Requires CodeVisionAVR Advanced V3.22 or later.
Examples for the ILITEK ILI9325 240x320 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V2.60 or later.
Examples for the ILITEK ILI9328 240x320 and 320x240 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V3.15 or later.
Examples for the ILITEK ILI9331 240x320 and 320x240 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V3.27 or later.
Examples for the ILITEK ILI9340 240x320 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V3.08 or later.
Example for the ILITEK ILI9341 graphic TFT LCD controller using serial SPI connection and
landscape 320x240 display mode.
Requires CodeVisionAVR Advanced V3.17 or later.
Example for the ILITEK ILI9341 240x320 pixels graphic TFT LCD controller using parallel interface
connection.
Requires CodeVisionAVR Advanced V3.08 or later.
Example for the ILITEK ILI9481 480x320 pixels graphic TFT LCD controller using a 16-bit parallel
interface connection on an Arduino shield and an Arduino Mega2560 board.
Requires CodeVisionAVR Advanced V3.47 or later.
Example of displaying a JPEG compressed image, located in FLASH memory, for the ILITEK
ILI9481 480x320 pixels graphic TFT LCD controller using a 16-bit parallel interface connection on
an Arduino shield and an Arduino Mega2560 board.
Requires CodeVisionAVR Advanced V3.47 or later.
Example of displaying a JPEG compressed image, stored on a SD card, for the ILITEK ILI9481
480x320 pixels graphic TFT LCD controller using a 16-bit parallel interface connection on an
Arduino shield and an Arduino Mega2560 board.
Requires CodeVisionAVR Advanced V3.47 or later.
Examples for the Samsung KS0108 (HD61202) graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.2 or later.
Examples for the Philips PCD8544 graphic LCD controller used in Nokia 5110 phones.
Require CodeVisionAVR Evaluation or Standard V2.05.4 or later.
Example for the RAIO Technology RA8875 TFT controller.
Uses an ER-TFTM070-5 display from East Rising Technology.
Requires CodeVisionAVR Advanced V3.19 or later.
Examples for the EPSON S1D13700 graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.4 or later.
Example for the Samsung S6D0164 220x176 pixels graphic TFT LCD controller.
Requires CodeVisionAVR Advanced V3.22 or later.
Examples for the Samsung S6D1121 240x320 pixels graphic TFT LCD controller.
Require CodeVisionAVR Evaluation or Standard V3.09 or later.
Examples for the EPSON SED1335 (RA8835) graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.4 or later.
Examples for the S-MOS SED5120 (NJU6450, PT6520) graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.2 or later.
Examples for the EPSON SED1530 graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.4 or later.
Examples for the Sunplus SPLC501C graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.4 or later.
Example for the Solomon Systech SSD1289 240x320 pixels graphic TFT LCD controller.
Requires CodeVisionAVR Advanced V2.60 or later.
Examples for the Solomon Systech SSD1303 (SH1101A) graphic OLED controller.
Require CodeVisionAVR Advanced V3.03 or later.
Examples for the Solomon Systech SSD1306 graphic OLED controller.
Require CodeVisionAVR Advanced V3.19 or later.
Examples for the Solomon Systech SSD1322 graphic OLED controller.
Require CodeVisionAVR Advanced V3.07 or later.
Example for the Solomon Systech SSD1331 graphic OLED controller.
Requires CodeVisionAVR Advanced V3.22 or later.
Example for the Solomon Systech SSD1332 graphic OLED controller.
Requires CodeVisionAVR Advanced V3.22 or later.
Example for the Solomon Systech SSD1351 graphic OLED controller.
Requires CodeVisionAVR Advanced V3.22 or later.
Example for the Solomon Systech SSD1963 480x272 pixels graphic TFT LCD controller.
Uses an ER-TFTM043-4 display from East Rising Technology.
Requires CodeVisionAVR Advanced V3.05 or later.
Examples for the Solomon Systech SSD2119 320x240 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V2.05.8 or later.
Examples for the Sitronix ST7565 graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.6 or later.
Examples for the Sitronix ST7567 graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V3.08 or later.
Examples for the Sitronix ST7781 240x320 and 320x240 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V3.27 or later.
Examples for the Sitronix ST7789S 240x320 and 320x240 pixels graphic TFT LCD controller.
Require CodeVisionAVR Advanced V3.26 or later.
Examples for the Sitronix ST7920 graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.8 or later.
Examples for the Toshiba T6963C graphic LCD controller.
Require CodeVisionAVR Evaluation or Standard V2.05.4 or later.
Examples for the UltraChip UC1608 240x128 pixels graphic LCD controller, using 4-bit, 8-bit
parallel and serial connections.
Require CodeVisionAVR Evaluation or Standard V3.10 or later.
Examples for the Electronic Assembly DOGXL 160-7 display with the UC1610 controller, using 4-
wire serial connection.
Require CodeVisionAVR Evaluation or Standard V3.24 or later.
MMC/SD Card
Several general examples using the CodeVisionAVR MMC/SD Card Library.
Require CodeVisionAVR Evaluation or Standard V2.05.8 or later.
Several examples how to display on a TFT LCD display, an image stored on a SD Card using the
ILI9325, SSD1289, SSD1963 and SSD2119 graphic controllers.
Require CodeVisionAVR Advanced V3.05 or later.
Touchscreen
Several examples using the ADS7846 (XPT2046) touchscreen controller, including calibration,
reading coordinates and drawing on TFT LCD displays with the SSD1289 and SSD1963 graphic
Require CodeVisionAVR Advanced V3.05 or later.
Example for the FocalTech Systems FT5206 capacitive touchscreen controller and the 800x480 ER-
TFTM070-5 TFT LCD module with the RA8875 graphic controller.
Requires CodeVisionAVR Advanced V3.20 or later.
I2C and TWI
Thermometer with RS232 serial ouput using the LM75 sensor.
Thermometer with LCD display using the LM75 sensor.
I2C master and slave examples using the TWI interface of 8-bit AVR chips.
Require CodeVisionAVR V2.05.1 or later.
I2C master example using the TWI interface of XMEGA chips.
A DS1621 temperature sensor is connected to the I2C bus and the measured temperature is
outputed using the XMEGA USART.
Requires CodeVisionAVR V2.05.1 or later.
Sample program to test the ATxmega128A1 TWIC master and TWID slave operation on a STK600
development board.
Requires CodeVisionAVR V2.05.1 or later.
Sample programs for the Bosch Sensortec BMP180 and Measurement Specialties MS5611-01BA
digital pressure sensors with TWI interface.
Require CodeVisionAVR V3.21 or later
Sample program for the Bosch Sensortec BMP280 digital pressure sensor with TWI interface.
Requires CodeVisionAVR V3.26 or later
Sample program for the Bosch Sensortec BME280 digital humidity and pressure sensor with TWI
interface.
Requires CodeVisionAVR V3.26 or later
Sample program for the ROHM Semiconductor BH1750FVI digital light sensor with TWI interface.
Requires CodeVisionAVR V3.26 or later
1 Wire
Multipoint thermometer with LCD display using the Maxim DS1820/18S20 1 Wire bus temperature
sensors
Requires CodeVisionAVR V2.05.1 or later.
Multipoint thermometer with RS232 serial output using the Maxim DS18B20 1 Wire bus
temperature sensors and an ATmega8515 chip.
Requires CodeVisionAVR V2.05.1 or later.
Multipoint thermometer with RS232 serial output using the Maxim DS18B20 1 Wire bus
temperature sensors and an ATxmega128A1 chip.
Requires CodeVisionAVR V2.05.1 or later.
Maxim DS1990 Serial Number 1 Wire iButton demo.
Requires CodeVisionAVR V2.05.1 or later.
SPI
Digital voltmeter using an Analog Devices AD7896 ADC connected to an ATmega8515 using the
SPI bus. The measured voltage is transmitted through the serial RS232 interface.
Digital voltmeter using a Maxim MAX1241 ADC connected to an ATmega8515 using the SPI bus.
The measured voltage is transmitted through the serial RS232 interface.
Example program for interrupt driven SPI slave reception using an ATxmega128A1 chip.
USB
USB CDC Virtual Serial Port demonstration for the AT90USBKEY development board
(AT90USB1287 chip).
Requires CodeVisionAVR V3.12 or later compiler.
USB CDC Virtual Serial Port demonstration for the STK600 development board (ATxmega128A4U
chip).
Requires CodeVisionAVR V3.13 or later compiler.
USB CDC Dual Virtual Serial Port demonstration for the STK600 development board
(ATxmega128A4U chip).
Requires CodeVisionAVR V3.13 or later compiler.
USB HID Keyboard demonstration for the AT90USBKEY development board (AT90USB1287 chip).
Requires CodeVisionAVR V3.12 or later compiler.
USB HID Keyboard demonstration for the STK600 development board (ATxmega128A4U chip).
Requires CodeVisionAVR V3.13 or later compiler.
USB HID Mouse demonstration for the AT90USBKEY development board (AT90USB1287 chip).
Requires CodeVisionAVR V3.12 or later compiler.
USB HID Mouse demonstration for the STK600 development board (ATxmega128A4U chip).
Requires CodeVisionAVR V3.13 or later compiler.
USB HID Joystick demonstration for the AT90USBKEY development board (AT90USB1287 chip).
Requires CodeVisionAVR V3.12 or later compiler.
USB HID Joystick demonstration for the STK600 development board (ATxmega128A4U chip).
Requires CodeVisionAVR V3.13 or later compiler.
USB Generic HID demonstration for the AT90USBKEY development board (AT90USB1287 chip).
Requires CodeVisionAVR V3.12 or later compiler.
USB Generic HID demonstration for the STK600 development board (ATxmega128A4U chip).
Requires CodeVisionAVR V3.13 or later compiler.
USB Composite device, containing a Mouse and Joystick, demonstration for the AT90USBKEY
development board (AT90USB1287 chip).
Requires CodeVisionAVR V3.12 or later compiler.
USB Composite device, containg a Mouse, Joystick and Virtual Serial Port, demonstration for the
STK600 development board (ATxmega128A4U chip).
Requires CodeVisionAVR V3.13 or later compiler.
Boot Loader
Port to CodeVisionAVR of Atmel application note AVR109.
Boot loaders for the ATmega128 and ATmega2560 chips are provided.
Requires CodeVisionAVR V2.04.5 or later compiler,
ATmega328 boot loader based on Atmel application note AVR109.
Includes also a Windows based application for testing the boot loader.
Requires CodeVisionAVR V2.60 or later compiler,
AVR1316 XMEGA Selfprograming
Port to CodeVisionAVR of Atmel application note AVR1316.
Requires CodeVisionAVR V2.04.5 or later compiler.
AVR1605 XMEGA Boot Loader
Port to CodeVisionAVR of Atmel application note AVR1605.
Requires CodeVisionAVR V2.04.5 or later compiler.
Web Server
Web server running on an Arduino UNO (ATmega328) board with a Wiznet W5100 Ethernet shield.
Port to CodeVisionAVR of Adam Dunkels uIP Webserver example.
Adapted for the Crumb644-NET AVR ATmega644P Ethernet module by Mr. S.Perzborn
Requires CodeVisionAVR V2.05.0 or later.
ENC28J60 Ethernet Controller
Web server running on an Arduino UNO (ATmega328) board with an ENC28J60 Ethernet shield.
Requires CodeVisionAVR V3.36 or later.
Web server running on an Arduino UNO (ATmega328) board with an ENC28J60 Ethernet shield.
Requires CodeVisionAVR V3.36 or later.
Twitter client running on an Arduino UNO (ATmega328) board with an ENC28J60 Ethernet shield.
Uses arduino-tweet.appspot.com as an OAuth gateway.
Requires CodeVisionAVR V3.36 or later.
UDP communication example running on an Arduino UNO (ATmega328) board with an ENC28J60
Ethernet shield.
Requires CodeVisionAVR V3.36 or later.
Other Peripherals
Example program for redirecting the output of the standard C I/O functions (stdio.h) to the
ATmega128 USART0, USART1 and a LCD module.
ADC example for the ATmega8535 chip.
Several examples for using the XMEGA ADC in various operating modes.
Included is also a port of Atmel application note AVR1300.
Require CodeVisionAVR V3.03 or later compiler.
Several examples for using the XMEGA DAC in various operating modes.
Require CodeVisionAVR V3.03 or later compiler.
XMEGA EBI SDRAM example for the Atmel XPLAIN and XMEGA-A1 Xplained boards.
Requires CodeVisionAVR V3.04 or later.
Port to CodeVisionAVR of Atmel application note AVR1600.
Requires CodeVisionAVR V3.03 or later compiler.
Port to CodeVisionAVR V3.04 or later of the CAN examples for ATmega32M1 from
RTOS
Port to CodeVisionAVR of the popular FreeRTOS Real Time Operating System.
All the necessary details about the port and demo can be found in the FreeRTOSDemo.txt file. The
complete FreeRTOS documentation is available here.
HP InfoTech does not provide technical support for FreeRTOS, as we are not the authors of this
software. Free support can be obtained on the FreeRTOS forum.
Requires CodeVisionAVR V2.04.0 or later compiler.
Miscellaneous Examples
Example for the 64-bit integer mathematical functions.
Requires CodeVisionAVR V3.21 or later.
Easy EEPROM reading/writing in CodeVisionAVR.
Example how to call a function written in assembly from C code.
Example of a basic multiple file project.
The classic moving LED example.
Example how to scan a 4x4 keypad with key noise debouncing.
An implementation of the basic features of the ZModem protocol for the ATmega128.
AES encryption/decryption example for non-XMEGA chips
Port to CodeVisionAVR V3 compiler of the Atmel application note AVR1318 - Using the XMEGA
built-in AES accelerator
The port to CodeVisionAVR of the Application part of the firmware for the Atmel’s AVR Butterfly
evaluation board for the ATmega169.
Simple project for the ADC on the ATtiny5.
Requires CodeVisionAVR V3.03 or later compiler.
All the examples supplied below must be unzipped with directories.
After that, the corresponding CodeVisionAVR project .prj file must be opened in the CodeVisionAVR IDE,
using the File |Open menu command.
When using the Atmel Studio Extension, the corresponding Atmel Studio project .cproj file must be opened,
using the File|Open|Project/Solution menu command.

Notes:
For some older examples, the .cproj file may be missing.
In this case please use the File|Open|Import CodeVisionAVR V2 Project... menu command.
The .ZIP files can be extracted with 7Zip or WinRAR