Questions tagged [stm8]

The tag has no usage guidance.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
327 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
1answer
53 views

STM8 TIM2 interrupt not taking place. What am I missing?

I've just started using STM8 microcontrollers, specifically the STM8S003F3P6 chip, in my own custom test board. The board works and I am able to blink an LED on PA3 without using an interrupt. However,...
1
vote
0answers
69 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
484 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
144 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
340 views

STM8S - Connect to ADXL345 Acceleration Sensor via Hardware SPI

After software SPI didn't work out I am now trying 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-...
0
votes
0answers
28 views

STM8S005K6 - I2C (Bus always busy)

This question has already be posted but i don't find a solution of my problem. I have an LCD screen (MC20805A6W-BMLW-V2) with I2C communication and I try to communicate with my controller via I2C (...
0
votes
1answer
35 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
56 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
1answer
2k views

STM8S - Why does my Timer4 Overflow Interrupt not work?

This is my timer 4 init: ...
-2
votes
0answers
39 views

timer as a counter for one second led toggle in stm8l

Can anyone explain how this calculation works in this timer configuration. I am using stm8l-discovery board and when I see the waveform, i get a graph of 1s for one complete on-off cycle. ...
-2
votes
2answers
307 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 ...