/******************** (C) COPYRIGHT 2009 STMicroelectronics ********************
* File Name          : readme.txt
* Author             : MCD Application Team
* Version            : V2.0.0
* Date               : 02/28/2009
* Description        : Description of the ExampleDMA.
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/

Description
===================
This example  shows how to perform an I2C communication between three boards based on the STM32 
with DMA is used for data transfer.
Three STM32 EVAL Boards are operating as a Master, Slave1 and Slave2.
The Slave1 sends to the Master ADC Channel 14 converted values (ADC CH14 is connected to the 
potentiometer).
The Slave2 sends to the Master Temperature values (using the on chip Temperature Sensor).
Both Slaves send data alternately (every 3ms approximately) (The Start condition is generated 
within a Timer interrupt generated every 3ms).


Directory contents
==================
 + \include    contains the header files.
 + \source     contains the source files.
 + \project    contains pre-configured projects for RVMDK and EWARM5 toolchains.

Hardware environment
====================
This software runs on  STMicroelectronics STM32-EVAL evaluation boards and can be 
easily tailored to any other hardware.
It can be easily tailored to any other hardware.

 + Connect I2C1 SCL pin (PB.06) of the Master Board to I2C2 SCL pin (PB.10) of the Slave1 and Slave2 Boards.
 + Connect I2C1 SDA pin (PB.07) of the Master Board to I2C2 SDA pin (PB.11) of the Slave1 and Slave2 Boards.
 - Check that a pull-up resistor is connected on one I2C SDA pin
 - Check that a pull-up resistor is connected on one I2C SCL pin

 

How to use it
=============
In order to make the program work, you must do the following:

1. Load the code compiled for master in the master Board 
2. Load the code compiled for slave1 in the slave1 Board 
3. Load the code compiled for slave2 in the slave2 Board 
4. Run programs in slave1 and slave2 Boards
5. Run program in master Board


In order to load the code, you have do the following:

 + EWARMv5:
    - Open the .eww workspace
    - Rebuild all files: Project->Rebuild all
    - Load the image into the Flash memory
    - Load project image: Project->Debug
    - Run program: Debug->Go(F5)

 + RVMDK
    - Open the .Uv2 project    
    - Load project image: Debug->Start/Stop Debug Session
    - Run program: Debug->Run (F5)   

******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****
