cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L156C6T6 - clock to gpio

gibba
Associate II
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
3 REPLIES 3
fggnrc2
Associate II
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)

g535343589
Associate II
Posted on December 10, 2013 at 13:31

yeah,i  think so.

gibba
Associate II
Posted on December 10, 2013 at 15:09

Hi EtaPhi,

Sorry for the mistake and thanks a lot for helping.

Best Regards,

Gilberto