STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8 SPI slave device data read

Hi,I want to read more than one byte of data from slave device. I am using STM8AF family micrcontroller in master mode and pressure sensor SMP580 is a slave device. Master will send command which is of 1-byte to read 16 bit data from slave device. An...

DOman.1 by Associate II
  • 521 Views
  • 0 replies
  • 0 kudos

How protect GPIOs from ISO7637-3 Pulses?

Hi,I would like to protect my GPIOs from ISO7637-3 pulses with a rail to rail diode solution. But I have seen that the GPIOs already have a intern rail to rail protection with a forward voltage Vf_int = 0.6V (Datasheet Fig. 43). To protect my GPIOs w...

TLich.1 by Associate
  • 556 Views
  • 2 replies
  • 0 kudos

Using SPI Read more than one byte of data from slave device

Hi,I want to read more than one byte of data from slave device. I am using STM8AF family micrcontroller in master mode and pressure sensor is a slave device. Master will send command which is of 1-byte to read data from slave device. And slave will ...

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

"Read access out of stm8 address range" error during debugging

Map file:BYTES ; The following addresses are 8 bits long segment byte at 0-ff 'ram0' WORDS ; The following addresses are 16 bits long segment byte at 100-1ff 'ram1' WORDS ; The following addresses are 16 bits long segment byte at 200-3ff 'stack...

HTiwa.11 by Associate II
  • 464 Views
  • 0 replies
  • 0 kudos

what does the line 6 wait do?

void sEE_ReadBuffer(uint8_t* pBuffer, uint16_t ReadAddr, uint16_t* NumByteToRead) { //__IO uint32_t timeout = 0xFFFF; __IO uint32_t timeout = 0xf00; /*!< Wait the end of last communication */ for (;timeout > 0; timeout--);   /* Set the poin...

can't find the Device at IAR.

hello,i use IAR EW for STM8 3.11.1(latest version on IAR website)​but i can't find STM8L050J3M3 Model at "General Options - Target - Device"so.. which one should i choose?Thank you.bast regards.Device : STM8L050J3M3 C Compiler : IAR EW for STM8 3.11....

KTAEW.1 by Associate
  • 582 Views
  • 0 replies
  • 0 kudos

How PVD interrupt when in Active-halt mode

Hi,STM8L152 with buttons and LCD, using CR2032 battery. Most of time MCU is in Active-halt mode and keep LCD display. Now I want PVD low voltage interrupt to inform user to change battery in LCD.​So my question is, can PVD interrupt work in active-ha...

usart wakeup from halt

stm8L152 PC2 is USART rx,1 rx to exit before halt() USART_DeInit(USART1); GPIO_Init(GPIOC, GPIO_Pin_3, GPIO_Mode_Out_PP_Low_Slow); GPIO_Init(GPIOC, GPIO_Pin_2, GPIO_Mode_In_PU_IT); RX_EXTI_setup(); EXTI_ClearITPendingBit(EXTI_IT_Pin2);2, pc2 exit han...

I2C STOP

hardware I2C: my stm8l152 have two i2c slave device, it works well when does not connect to a oscilloscope.when connect to oscilloscope, mcu may be stop i think oscilloscope has effect on i2c, I2C communicate by polling

Resolved! How to connect STM8L050j3M3 and ST-LINK/V2

hello,i'm studying the STM8L050j3M3.but i don't understand how to connect STM8L050j3M3 and ST link.​it don't have Reset pin. and i don't be going to buy discovery board because i use 1 LED and Timer.​i'd like to make connection mentioned above.could ...

KTAEW.1 by Associate
  • 528 Views
  • 1 replies
  • 0 kudos