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
STM8 Cosmic C Examples STM32F103

STM8 TIMER 4 Example in Cosmic C

TIM4_CNTR register is used for counting value. TIM4_PSCR = 0x01 will divide input clock with 2 and finally 0th bit of TIM4_CR1 is used to enable or disable timer