Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Twi Master Example for atmega256rfr2_xplained_pro Documentation

Introduction

This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the TWI master mode example.

Main Files

twi master Driver

The twi driver can be found here.

Device Info

AVR MEGARF device can be used.

Description of the example

The given example uses one kit as a TWI master:

  • the TWI master performs a write to the TWI slave,
  • the TWI master performs a read of what it just wrote to the TWI
  • the read data are compared with the originally written data.

LED gives the result of the test: If PASS: LED is on at the end of the test.

Compilation Info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Atmel AVR.