English
Language : 

AN2737 Datasheet, PDF (1/16 Pages) STMicroelectronics – Basic in-application programming example
AN2737
Application note
Basic in-application programming example
using the STM8 I2C and SPI peripherals
Introduction
This application note is one of a set of application notes giving examples of how to use the
various blocks of the STM8 microcontroller family and the STM8A and STM8S firmware
libraries. It is intended to provide two practical application examples of how to perform basic
in application programming (IAP) using either the STM8 I2C or SPI peripherals.
The STM8A and STM8S firmware libraries make the STM8 behave like an EEPROM which
can be programmed and/or accessed by a standard EEPROM protocol via the I2C/SPI
interface. The examples of this application note, use the PC-based AardvarkTM host adapter
(on the I2C and SPI bus) to communicate with the STM8.
The two examples provided are:
■ The Aardvark host adapter communicating with the STM8 I²C peripheral using interrupts
in 7-bit addressing mode.
■ The Aardvark host adapter communicating with the STM8 SPI peripheral in polling mode.
For further information on the STM8A and STM8S family features, pinout, electrical
characteristics, mechanical data and ordering information, please refer to the STM8A and
STM8S datasheets which are available on st.com:
Further details on the Aardvark host adapter and its software can be found on
www.totalphase.com.
The STM8A and STM8S firmware libraries are available on st.com.
March 2009
Rev 3
1/16
www.st.com