Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [stm8]

The tag has no usage guidance.

-2
votes
2answers
227 views

How to get STM8 unique device ID?

I'm working with a STM8S003F3P6 microcontroller and I need to know an unique ID for each device I will use. I know that PIC microcontrollers has an unique device ID that can be acessed by the user. My ...
0
votes
1answer
29 views

Unable to resolve ADC conversion error in stm8s105s6

I'm trying to learn ADC on stm8s105s6. But not getting proper adc result. I shorted VCC to analog pin 3 and expected conversion value near 1023 as stm8 has a 10 ...
0
votes
1answer
2k views

STM8S - Why does my Timer4 Overflow Interrupt not work?

This is my timer 4 init: ...
3
votes
0answers
289 views

STM8 nested interrupt bug, not described in current errata sheet ES019

If main process execute WFI with AL bit set in CFG_GCR, changing I1/I0 priority bits in the ISR cause CPU stalled when nested IRQ occured. Preconditions: all ITC_SPR1 registers has default value 0xFF....
1
vote
0answers
57 views

Problem with SPI communication with MAX31855K from STM8S103F3

I am trying to read temperature data from MAX31855K over SPI, using STM8S103F3 on a breakout board. Development set up is STVD, STVP and Consmic compiler. And using STM8S Standard Peripheral library. ...
1
vote
0answers
433 views

Can I generate two PWM with 90°phase shift from stm8 microcontroller?

I am using stm8 microcontroller(STM8AF288) to generate a PWM of 1KHz frequency with timer-1(16bit) . I am giving this as input to a circuit, which generates two PWMs with 90° phase shift. But ...
1
vote
0answers
139 views

Can I use GPIOs to bit-bang in SENT protocol

I want to use a STM8 controller for a project(as I am familiar with micro).This controller gets the data from sensor and process it and sends data to another ...
1
vote
0answers
315 views

STM8S - Connect to ADXL345 Acceleration Sensor via Hardware SPI

After software SPI didn't work out i now try to connect to the ADXL345 acceleration sensor via hardware SPI of the STM8S103F3. But, of course, problems appeared again, why not. This is my SPI-Init ...
0
votes
0answers
10 views

STM Microvontroller burns everytime

I have some experience working with stm32 but i only ever used them on dev boards. i recently tried to solder stm32 and stm8 on a simple break-out board and program them with my st-linkv2 clone. on ...
0
votes
0answers
43 views

Translate from AVR pgm_read_byte to normal C array manipulation in STM8

I am trying to translate a couple of lines of code from AVR space data to STM8 normal C data manipulation. As you should know, AVR has a program space which can storage data for read only operation, ...
0
votes
0answers
110 views

Cann't enter interrupt subroutine of the timer1 capture interrupt for STM8S003k3 using AN2822

I have recently tried the official code of the application note AN2822: STM8S and STM8A high speed internal oscillator calibration. Since I use STM8S003k3 MC, I modified the code from timer 3 to timer ...