Configurable clock output
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-12-13 11:41 AM
Posted on December 13, 2010 at 20:41
I would like some information on configuring Port E0 to be a clock output of 4Mhz. Is their an example someplace.
charles
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-12-18 12:51 AM
Posted on December 18, 2010 at 09:51
// configures CPU clock @4 MHz
CLK_HSIPrescalerConfig(CLK_PRESCALER_HSIDIV1);
(, , );
(
);
();
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-12-20 8:10 AM
Posted on December 20, 2010 at 17:10
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üfterOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-12-21 6:22 AM
Posted on December 21, 2010 at 15:22
yes for sure, it was a typo error
