Skip to main content
Visitor II
December 10, 2013
Question

STM8L156C6T6 - clock to gpio

  • December 10, 2013
  • 3 replies
  • 721 views
Posted on December 10, 2013 at 13:05

Hi everyone,

I need to interface my ST with an external chip and I need to provide clock to this chip as well. Can someone tell me how to do it? I mean: is it necessary to use a GPIO or is there another way?

Thanks a lot,

Gilberto

#stm8l-stm8
    This topic has been closed for replies.

    3 replies

    Visitor II
    December 10, 2013
    Posted on December 10, 2013 at 13:31

    Hello Gilberto.

    STM8L152C6T6 (not STM8L156C6T6, which may not exists) microcontrollers can output a clock signal at pin 43 (PC4).

    RM0031 ''STM8L05xx, STM8L15xx, STM8L162x, STM8AL31xx and STM8AL3Lxx microcontroller family'' provides more details on the Configurable Clock Output of this microcontroller.

    Regards

    EtaPhi

    PS: I don't know if you are using an external resonator.

    If such is the case, you can also use OSC_OUT (HSE resonator: pin 4 - PA3) or OSC32_OUT (LSE resonator: pin 45 - PC6)

    Visitor II
    December 10, 2013
    Posted on December 10, 2013 at 13:31

    yeah,i  think so.

    gibbaAuthor
    Visitor II
    December 10, 2013
    Posted on December 10, 2013 at 15:09

    Hi EtaPhi,

    Sorry for the mistake and thanks a lot for helping.

    Best Regards,

    Gilberto