AVR32107 Using TWI as a Master on the AVR32 Documentation
This is the documentation for the data structures, functions, variables, defines, enums, and typedefs in the software for application note AVR32107. It also gives an example of the usage of the TWI driver
This software was written for the GNU GCC for AVR32 and IAR Systems compiler for AVR32. Other compilers may or may not work.
All AVR32 devices with a TWI module can be used. This example has been tested with the following setup:
- STK1000 development kit
- AP7000 top board for STK1000 development kit
CPU speed: 20 MHz
- No specific jumping is needed to use the TWI module on the STK1000
- In order to use the TWI interface with an external device, external pull-up resistor must be applied
- This example has been tested with external pull-ups on both the data and clock line at 5.7K ohms.
The device will start up and initialize the TWI module. Depending on the settings in twi_example.c it will send and/or receive data. The two global definitions WRITE and READ can be set to 1 or 0 to enable or disable the feature.
Remote address, data lengths and ID's are set directly as parameters in the example code. Consult comments in twi_example.c for more information about altering these settings.
For more info about Atmel AVR32 visit Atmel AVR32
AVR32 Application Notes
Support mail: avr32@atmel.com
Generated on Wed Sep 26 10:45:42 2007 for AVR32107 Using TWI as a Master on the AVR32 by
1.5.3