output the CLK on an external mcu pin

Status
Not open for further replies.

mariuszoll

Member level 5
Joined
Aug 28, 2012
Messages
82
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Visit site
Activity points
2,147
Hi,

I use on my project a STM8S207K8 mcu from ST, I configured the internal oscillator, HSI to work at 16Mhz. I use IAR embedded workbench.
I want to output the CLK signal on an external CCO pin.
Could you help me please how to do it? Since now I haven't work with STM8S mcus.

Thank you in advance.
 

I found that I have to set the OPT bit from the FLASH_CR2 register in order to have access to option bytes, but how to set AFR2, I haven't found yet.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…