cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help on 1526-eval USART.

leoren_tm
Associate II
Posted on September 01, 2010 at 10:52

Need Help on 1526-eval USART.

6 REPLIES 6
lowpowermcu
Associate II
Posted on May 17, 2011 at 15:10

Hi leo,

In STM8l15x_StdPeriph_Lib you can find a set of examples (USART, ADC, Timer...):

Download it from:

http://www.st.com/mcu/familiesdocs-120.html#Firmware

MCU Lüfter

leoren_tm
Associate II
Posted on May 17, 2011 at 15:10

Thank you on that....but how can i use PA as USART, cause it uses PC, no port remaping option but it was indicated at datasheet that it can be use...

lowpowermcu
Associate II
Posted on May 17, 2011 at 15:10

Could clarify the point !

leoren_tm
Associate II
Posted on May 17, 2011 at 15:10

Sorry was not that clear.

i mean, its default port use was

PC2/[USART1_RX](3)/LCD_SEG22/ADC1_IN6/COMP1_INP/VREF_OUT

and

PC3/[USART1_TX](3)/LCD_SEG23(2)/ADC1_IN5/COMP1_INP/COMP2_INM

and in my application I want to use this as my USART

PA2/OSC_IN/[USART1_TX](3)/[SPI1_MISO] (3)

and

PA3/OSC_OUT/[USART1_RX](3)/[SPI1_MOSI](

lowpowermcu
Associate II
Posted on May 17, 2011 at 15:10

Hi leo,

You find in the product reference manual of stm8l15x, go to system configuration section.

link for download: http://www.st.com/stonline/products/literature/ds/15226.pdf

If you are usign the firmware provided by ST, you can use SYSCFG_REMAPPinConfig() function.

link for download:

http://www.st.com/stonline/products/support/micro/files/stm8l15x_stdperiph_lib.zip

Good luck,

MCU Lüfter

leoren_tm
Associate II
Posted on May 17, 2011 at 15:10

thank you :)