Categories
STM8 Cosmic C Examples

STM8S UART Example Code

UART is one of the rudimentary and crucial peripheral. Using UART in STM8 microcontroller is also effortless. We will use STM8S003F3 or STM8S103F3 Blue pill board for the demo purposes. But this code will equally work well on other variants of the STM8S microcontrollers. As I had tested this code on STM8S903K3 micro controller as […]

Categories
STM8 Assembly Language

CPU Registers of STM8 for Assembly Programming

While programming STM8 microcontroller using assembly language, it is very important to know the internal architecture of the STM8 micro controllers. We are going to use the STM8s microcontroller and according to the Reference manual of STM8s microcontroller , the CPU of STM8s microcontroller consists 6 internal registers. Because the STM8 microcontroller is 8-bit microcontroller, […]

Categories
Examples STM8 Cosmic C

LCD 4 bit mode interfacing with STM8 in C from scratch

We are going to interface LCD 4 bit mode with stm8s103f3 microcontroller. The code will be equally applicable for similar line STM8 microcontroller. The language we are going to use is C and the compiler we used is COSMIC C compiler for STM8. The IDE that we used for writing our code is STVD from […]

Categories
Tutorials Assembly Language STM8

Getting Started with STM8 Assembly Language

Assembly language programming is always a great tool to understand underlying architecture of microcontroller. It also helps us to use any microcontroller at it’s full potential. In today’s Article we are going to develop a hello world program and we will be using ST Visual develop IDE throughout our tutorial. We are also going to […]