cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to out the LSI clock

INDHU N
Associate
Posted on March 12, 2018 at 10:08

Hi,

I was trying to out the clocks through MCO pin of STM32F0. Got HSE, HSI, SYSCLK and PLLDiv2. But i am not able to

out the LSI clock. Can you help me? The code i had used is as follows.

Hi,

I was trying to out the clocks through MCO pin of STM32F0. Got HSE, HSI, SYSCLK and PLLDiv2. But i am not able to

out the LSI clock. Can you help me? The code i had used is as follows.

Hi,

I was trying to out the clocks through MCO pin of STM32F0. Got HSE, HSI, SYSCLK and PLLDiv2. But i am not able to

out the LSI clock. Can you help me? The code i had used is as follows.

GPIO_InitTypeDef GPIO_InitStructure;
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_Init(GPIOA, &GPIO_InitStructure);
// pick one of the clocks to spew
RCC_MCOConfig(RCC_MCOSource_LSI); 
while(1)
 {
 }
}�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

Thanks

0 REPLIES 0