Hi,
Attached is a patch to support the selection of the internal oscillator.
The DRS multiplier can be configured from 0 to 3 to select a multiplier for the internal oscillator.
The internal oscillator can be tuned to 32.768 kHz by enabling KINETIS_MCG_FLL_DMX32.
Derek
Support for internal oscillator
Moderator: utzig
-
- Posts: 49
- Joined: Mon Aug 11, 2014 6:40 am
Support for internal oscillator
- Attachments
-
- 0001-KINETIS-Support-for-FEI-clock-mode-using-internal-os.patch.gz
- Support for internal oscillator
- (1.3 KiB) Downloaded 270 times
Re: Support for internal oscillator
Hi SpaceCoaster,
Just a couple of minor comments on the patch.
1. Typo in "initialization"
2. Does this disable all clock init? Actually is enables it, so the comment is backward.
Suggest changing comment to "Enable clock initialization by HAL."
Probably this should not say internal crystal but internal oscillator since it's an RC oscillator not a crystal oscillator.
Just a couple of minor comments on the patch.
Code: Select all
+/* Disable all clock intialization */
+#define KINETIS_NO_INIT FALSE
1. Typo in "initialization"
2. Does this disable all clock init? Actually is enables it, so the comment is backward.
Suggest changing comment to "Enable clock initialization by HAL."
Code: Select all
+/* FEI mode - 48 MHz with internal 32.768 kHz crystal */
Probably this should not say internal crystal but internal oscillator since it's an RC oscillator not a crystal oscillator.
-
- Posts: 49
- Joined: Mon Aug 11, 2014 6:40 am
Re: Support for internal oscillator
Colin, thanks, I will repost a patch with those changes when Fabio has a chance to comment.
Who is online
Users browsing this forum: No registered users and 2 guests