Correcting MQX Time Drift In TWR-MPC-5125

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Correcting MQX Time Drift In TWR-MPC-5125

ソリューションへジャンプ
1,530件の閲覧回数
Tim562
Senior Contributor I

Hi All,

     A long time ago someone here posted a way to specify the proper oscillator frequency to MQX so that it would keep time more accurately. It seems that, in some cases, the crystal frequency on some of the TWR-MPC-5125 modules didn't match the setting in one of the MQX #define statements causing MQX to provide pretty inaccurate time/date values. I'm experiencing that problem now and I'm unable to remember what change was required to make this adjustment and I can't seem to locate the post any longer!

     Does anyone know which #define statement in which file should be adjusted to properly specify the crystal frequency for the 5125? Thanks!

Best,

Tim

タグ(2)
0 件の賞賛
返信
1 解決策
1,376件の閲覧回数
Tim562
Senior Contributor I

Ahhh,

     Found the answer. Dave Willett provided the fix back on November 2011. Thanks again Dave!

From Dave:

Check your crystal frequency.  The schematics and MQX code call for 33.3M but some boards have a 32.768M crystal.  Update your linker files (.lcf) to use the correct frequency:

__EXTERNAL_CLOCK_SPEED = 32768000;

~Tim

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,377件の閲覧回数
Tim562
Senior Contributor I

Ahhh,

     Found the answer. Dave Willett provided the fix back on November 2011. Thanks again Dave!

From Dave:

Check your crystal frequency.  The schematics and MQX code call for 33.3M but some boards have a 32.768M crystal.  Update your linker files (.lcf) to use the correct frequency:

__EXTERNAL_CLOCK_SPEED = 32768000;

~Tim

0 件の賞賛
返信