Support for internal oscillator

ChibiOS public support forum for topics related to the Freescale Kinetis family of micro-controllers.

Moderator: utzig

SpaceCoaster
Posts: 49
Joined: Mon Aug 11, 2014 6:40 am

Support for internal oscillator

Postby SpaceCoaster » Fri Aug 15, 2014 4:00 pm

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
Attachments
0001-KINETIS-Support-for-FEI-clock-mode-using-internal-os.patch.gz
Support for internal oscillator
(1.3 KiB) Downloaded 270 times

utzig
Posts: 359
Joined: Sat Jan 07, 2012 6:22 pm
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: Support for internal oscillator

Postby utzig » Fri Aug 15, 2014 7:32 pm

I'll review/apply this during the weekend. Thanks!

Fabio Utzig

colin
Posts: 149
Joined: Thu Dec 22, 2011 7:44 pm

Re: Support for internal oscillator

Postby colin » Fri Aug 15, 2014 9:01 pm

Hi SpaceCoaster,

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.

SpaceCoaster
Posts: 49
Joined: Mon Aug 11, 2014 6:40 am

Re: Support for internal oscillator

Postby SpaceCoaster » Sun Aug 17, 2014 9:36 pm

Colin, thanks, I will repost a patch with those changes when Fabio has a chance to comment.

utzig
Posts: 359
Joined: Sat Jan 07, 2012 6:22 pm
Location: Brazil
Has thanked: 1 time
Been thanked: 20 times
Contact:

Re: Support for internal oscillator

Postby utzig » Tue Aug 19, 2014 1:06 pm

Applied. Thanks guys!


Return to “Kinetis Support”

Who is online

Users browsing this forum: No registered users and 2 guests