Init internal clock in assembler
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-03-25 7:44 AM
Posted on March 25, 2011 at 15:44
Init internal clock in assembler
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 6:12 AM
Posted on May 17, 2011 at 15:12
Hello Normand!
As the ''STM8L15x and STM8L16x microcontroller family'' reference manual says, the STM8L152 startup clock is HIS (16 MHz). However, the CLK_CKDIVR initial value is 3, so STM8L152 initially runs at 2 MHz. To run it at 16 Mhz, all you need is: CLR CLK_CKDIVR which sets HSI divider to 1. Regards EtaPhi