STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

SPI write 8 bit to 16 bit

Hello everyone, I am newbie, I want to use spi connection STM8 master with slave 16 bit IC. I have to write 16bit register to set the IC. How could I send 16 bit value to IC to set it with STM8, may you share some codes? best regards.

Cbalt.1 by Associate II
  • 583 Views
  • 2 replies
  • 0 kudos

Reading 0x00 in SPI_DR of SPI Communication

Sir,I am working on STM8S003F3P Controller which is interacting with LoRa SX1276 HPD Module. I have the experience of working on SPI and have enough knowledge to configure it. I am able to write the data to SX1276 (I will tell you how). But, while R...

Stm8s spi fill duplex master multi-byte transfers

Hi,I have been trying to interface stm8s003k3 with and external ic ​using spi in full duplex master mode .I have been successful to set up the spi in full duplex master mode but the part where recieving and transfering data becomes tricky and I have ...

0693W000008GEWyQAO.jpg 0693W000008GEX3QAO.jpg 0693W000008GEX8QAO.jpg 0693W000008GEYfQAO.jpg
CClas.1 by Associate
  • 864 Views
  • 1 replies
  • 1 kudos

Problem with SPI communication with MAX31855K from STM8S103F3

Hi all,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.Here is my max31855.h:#ifndef MAX31855_H #def...

Junaid PV by Associate II
  • 1171 Views
  • 4 replies
  • 0 kudos

SPI Transmit Interrupt Enable causes STM8 device reset

Hi,I am using STM8 device as a SPI master and SMP580 is a slave. When I enable SPI Transmit Interrupt (SPI_ICR-> TXIE = 1) MCU is resetting and when not enable MCU reset not occurring. I am enabling these interrupt during MCU Init. MCU not reset when...

DOman.1 by Associate II
  • 1067 Views
  • 3 replies
  • 0 kudos

Test SPI on STM8S value line discovery evaluation board

Posted on July 28, 2017 at 23:12hi, I want to test the SPI function on the STM8S value line discovery evaluation board. I only have this EVB and some cables, LEDs. Is it possible to make some simple test of the SPI function, such as communicating be...

Lei Sun by Associate II
  • 366 Views
  • 0 replies
  • 0 kudos