STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8S00F3 to read/write I2C device

1. I have to read/write NAU7802 register, datasheet of which is attched.2. STM8S is running at 16Mhz.3. Write three functions:a) i2c_init() : init the i2c peripheralb) i2c_read_one_byte_data() : read from address of NAU7802 and read only one bytec) i...

Can I output the uart tx clock without synchronous mode?

I need a clock signal for my hardware that occurs in the middle of each uart tx bit. But I don't want the synchronous mode behavior where receives are based on transmits. I want receives to start when start bits are received on the uart rx pin, whi...

mchahn by Senior
  • 843 Views
  • 0 replies
  • 0 kudos

Migrating STM8S003F3P6 code to STM8L051F3 not taking place.

HiI need to migrate my working STM8S003F3P6 code (working correctly for a year now) to a new STM8L051F3 chip.(The code is SDCC compiled and bit banged with direct register modification. I do not use the SPL) I run an interrupt at 125Hz on Timer2 in t...

Is there a way in software to detect if rt-link (swim) is attached?

I would like to use swim pin on my stm8s000f3 to drive an led. I've set up the circuit so the swim pin goes to the gate of a fet that drives the led. This makes sure the led circuit doesn't affect the swim pin during debugging. I would like to ena...

mchahn by Senior
  • 433 Views
  • 0 replies
  • 0 kudos

Interrupt Priority Management

Hi ;I am having a confussion on how to set the interrupt priority of a desired peripheral . I am using IAR IDE version 3.11.1 and the MCU is STM8S103F3F6 . I need to know which interrupt table IRQ number I should take account to configure the interr...

BG1 by Senior
  • 589 Views
  • 0 replies
  • 1 kudos

[BUG] ADC2_ConversionConfig()

Function ADC2_ConversionConfig do three steps:sets ADC result alignenable/disable continuous conversion (there will be problem, unrelated to Continuous mode)writes desired channel into ADC2->CSR (there will be another problem)but if that function is ...

STM8L001 Timer Problem

Hello EveryoneI use STM8L001J3P6 in my project. I want to use timer 3 on compare mode but I dont write any value timer3 register. I write 129 (TIM3_CR1=129;) but register value is zero. Anyone can solve this problem?Thanks.

SCoga.1 by Associate
  • 599 Views
  • 0 replies
  • 0 kudos