Skip to content | Skip to navigation
Powered by RSPowered by RSPowered by RS

How to Setup and Use STM8L15x Timers

Jeremy Richards

New Zealand

Hi, I'm newly returned to embedded software after many years just wrestling with hardware (some limited experience with PIC 16 bit micros) and am trying to port a BTLE based sample program from a Nordic nRF8200 MCU to an STM8L152C6 MCU.

I have ported the hal_transport layer for the spi interface, but am now trying to get my head around porting the power management module which involves use of the low power modes and timer interrutps.

Does anyone have any tips on where I can find some helpful literature or code examples to help explain what I need to achieve here.

 

Many thanks

Jeremy

 

Replies

Jeremy Richards

New Zealand

43 weeks ago

Hi,

Yes got both those docs and found that the nRF8200 is documented in some of Nordic Semiconductors Bluetooth module datasheets.

I've managed to get the code to compile and run but I keep getting stuck in halt mode. I guess either my wake up counter is not counting down (although it appears to be enabled), or the wake up interrupt is enabled but not working correctly. Anyone else had a similar problem?

HSPalm

Norway

44 weeks ago

Have you seen the reference manual of this device? RM0031 at
http://www.st.com/internet/mcu/product/244063.jsp

There you can also find an individual application note on stm8l family power management AN3147.