Application note provides examples of how to use various blocks of the STM8 microcontroller family and the STM8A and STM8S firmware libraries. It intends to provide two practical application examples of how to perform basic in application programming (IAP) using either the STM8 I2C or SPI peripherals
This application note provides practical examples of performing basic in-application programming (IAP) using the STM8 microcontroller's I2C and SPI peripherals. It demonstrates how the device behaves like an EEPROM accessible via standard protocols using a PC-based Aardvark host adapter.
The document details two specific examples: one using the I2C peripheral in 7-bit addressing mode with interrupts, and another using the SPI peripheral in polling mode. It includes hardware connection descriptions, firmware details, and step-by-step instructions for read and write commands.
The document covers the STM8 I2C and SPI peripherals for in-application programming.
The examples use the PC-based Aardvark host adapter to communicate with the STM8.
The I2C example uses 7-bit addressing mode.