STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

SWIM ICP programming on STM8L050j3

Hello,I'm trying to program and STM8L050J3 from another MCU through ICP programming on the SWIM interface. Section 5.6.1 of PM0051 presents a sequence where it is required to apply a reset and release it after the SWIM_CSR register hase been configur...

MGuer.1 by Associate
  • 442 Views
  • 2 replies
  • 0 kudos

Set Option Bytes AFR, STM8S207RB

Hello Everyone,I am to test a device which uses the STM8S207RB as the controller. The controller's pin 25 and 26 are used for I2C communication. But in order to use it for the SDA and SCL signals, I need to remap its function by changing the AFR6 bit...

huck lim by Associate
  • 460 Views
  • 1 replies
  • 0 kudos

Stm8s003f3 Pin as SPI MOSI and use MISO as GPIO

1. I am using Stm8s003f3.In it a slave SPI device is connected, which only inputs data, it dont output any data so MOSI is only used.2. My question is can I use remianing MISO pin as GPIO? since MOSI is used after configuring SPI, will it automatcial...

Can I have customized bootloader in stm8l052c6?

Hello Respective,I am using STM8l052C6 device for my product, I want to design my own bootloader for the same.Is it possible, as I didn't find any guideline for the same in relavent documents.

NPaba by Associate II
  • 336 Views
  • 1 replies
  • 0 kudos

I would like to know how to use any timer, say TIM2, and GetCounter() correctly. I'm using SDCC on linux and compiling for an STM8L051. Please see some example blinky code. Below is the code I think should work. Any help is greatly appreciated.

void main(void) { uint16_t tmpcnt = 0; uint8_t tmpcntrl, tmpcntrh;   setup_pins();   CLK_PeripheralClockConfig(CLK_Peripheral_TIM2, ENABLE); TIM2->PSCR = TIM2_Prescaler_1; TIM2->ARRH = 0; TIM2->ARRL = 1; TIM2->CNTRH = ...

AClap.1 by Associate II
  • 517 Views
  • 3 replies
  • 0 kudos

STM8S005K6 I2C Bus always busy

Hi.Regarding I2C Bus busy problem. I am using alternative pins (PB4 and PB5), as I have the small chip with fewer pins.Option bits are set, and verified.However even at power up the BUSY bit is set. It is set through configuration of the I2C peripher...

HMoel.1 by Associate II
  • 467 Views
  • 1 replies
  • 0 kudos

Why is the Halt() function not working?

#include <stm8l15x.h> #include <stm8l15x_pwr.h>   void main(void) { GPIO_Init(GPIOA, GPIO_Pin_All, GPIO_Mode_Out_PP_Low_Fast); GPIO_Init(GPIOB, GPIO_Pin_All, GPIO_Mode_Out_PP_Low_Fast); GPIO_Init(GPIOC, GPIO_Pin_All, GPIO_Mode_Out_PP_Low_Fast); ...

TheUser by Associate II
  • 1790 Views
  • 5 replies
  • 0 kudos