*** This README.TXT file comes with the STR71x Software Library ***

*******************************************************************************
 THE PRESENT SOFTWARE 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 SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
 CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/

Example description
===================
 This example shows how to calibrate the conversion result given by the ADC12
 in single channel conversion mode. The ADC12_Calib function performs
 the linear conversion.The calibrated conversion result is stored in the "Calib_result"
 variable which can be seen it in a watch window.

 To run the example, the varistor  could be used  in order to modify the channel 2 
 analogue input value. One can observe the linear
 result change stored in the "Calib_result" variable.

 This example demonstrates the following features of the ADC12 :

  - The use of the converter in the single channel conversion mode,
  - The prescaler configuration.


 It is made of 3 parts :

  1) Analog input configuration
    - Configure the used analog input to high impedance Analog input

  2) Converter configuration
    - Initialize the converter,
    - Configure the prescaler register,
    - Configure the conversion mode,
    - Select the channel to be converted,
    - Start the conversion.

  3) Get the conversion Data
    - Wait until conversion is finished,
    - Read the conversion result,
    - Calibrate the conversion result (using the "ADC12_Calib" function),
    - Display the conversion result.

Hardware implementation:
=======================
 This example works as standalone on the STR711/STR712 Reva board (Raisonance) and
 extra hardware implementation is not required to run the example.

Directory contents
==================
 adc12_polling.prj    adc12_polling project
 71x_conf.h           Library Configuration file
 71x_it.c             Interrupt handlers
 main.c               Main program

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

  - Ensure that RAM is mapped at address 0x0 using the board H/W boot pins,
  - Just  run it.



(C) COPYRIGHT 2003 STMicroelectronics


