/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name               : readme.txt
* Author                  : MCD Application Team
* Version                 : V1.0.0
* Date                    : 02/02/2009
* Description             : readme file for STM32 HSI calibration firmware.
********************************************************************************
* 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.
*******************************************************************************/

Firmware description
===================
This AN describes a firmware that calibrates the internal RC (HSI) using an accurate 
reference frequency. The RTC/64 source clock is used as an accurate frequency source
for the calibration processus.


Directory contents
==================
stm32f10x_conf.h  Library Configuration file
stm32f10x_it.c    Interrupt handlers
stm32f10x_it.h    Interrupt handlers header file
main.c            Main program


Hardware environment
====================
 - Connect PA.6 (TIM3 input capture 1) to PC.13 (tamper pin): in case of using
the RTC/64 source clock. In case of using other refernec frequency, connect the
source to PA.8 (The source voltage levels have to correspond to levels allowed for
this pin). 
 - Connect an oscilloscope probe to MCO pin (PA.8) to measure the RC frequency.
 - Connect LEDs as follows:
   * Green LED on PC.05.
   * Red LED on PC.06.
   * Five yellow LEDs from PC.00 to PC.04 to show HSTRIM bits value (5bits).
      
How to use it
=============
In order to make the program work, you must do the following :
- Create a project and setup all your toolchain's start-up files
- Compile the directory content files and required Library files :
  + stm32f10x_gpio.c
  + stm32f10x_rcc.c
  + stm32f10x_rtc.c
  + stm32f10x_tim.c
  + stm32f10x_bkp.c
  + stm32f10x_pwr.c
  + stm32f10x_nvic.c
  + stm32f10x_flash.c
  + stm32f10x_lib.c

- Link all compiled files and load your image into the FLASH
- Run the application
  

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