Skip to main content
leoren_tm
Associate III
Sep 1, 2010 8:52 AM UTC
Question

Need Help on 1526-eval USART.

Posted on September 01, 2010 at 10:52

Need Help on 1526-eval USART.

    This topic has been closed for replies.

    6 replies

    leoren_tm
    leoren_tmAuthor
    Associate III
    May 17, 2011 1:10 PM UTC
    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 III
    May 17, 2011 1:10 PM UTC
    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

    lowpowermcu
    Associate III
    May 17, 2011 1:10 PM UTC
    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
    leoren_tmAuthor
    Associate III
    May 17, 2011 1:10 PM UTC
    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 III
    May 17, 2011 1:10 PM UTC
    Posted on May 17, 2011 at 15:10

    Could clarify the point !

    leoren_tm
    leoren_tmAuthor
    Associate III
    May 17, 2011 1:10 PM UTC
    Posted on May 17, 2011 at 15:10

    thank you :)