2010-12-13 11:41 AM
I would like some information on configuring Port E0 to be a clock output of 4Mhz. Is their an example someplace.
charles2010-12-18 12:51 AM
// configures CPU clock @4 MHz
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
(, , );
(
);
();
2010-12-20 08:10 AM
Hi brazov,
I am not sure but I think that the HSI oscillator is set to 16 MHz so we need to do the following config in order to output 4 MHz on CCO pin:CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV4);
instead ofCLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
What do you think ? Regards, MCU Lüfter2010-12-21 06:22 AM
yes for sure, it was a typo error