KW2x: XTAL (PTA19)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,279件の閲覧回数
ignisuti_
Contributor IV

Hello,
I'm using the KW2x MCU and am curious about using PTA19 as GPIO.

I'm using PTA18 as a modem CLK_OUT (MCU CLK_IN). This signal is running at 4MHz. Then my MCU is put into PEE mode to run at 48MHz.

According to everything I've read in the reference manual, I should be allowed to use PTA19 as a GPIO. However it is toggling states as if it were internally tied to a clocking signal. Does anyone know what steps I need to take to use PTA19 as a GPIO?

Note: I do have it configure as an INPUT with MUX ALT1.

0 件の賞賛
返信
1 解決策
1,093件の閲覧回数
EarlOrlando
Senior Contributor II

Hello Joe,

As you said, this pin can be used as GPIO.

pastedImage_2.png

To achieve this, you need to configure the field MCG_C2[EREFS] as "External reference clock requested" (bit in 0).

Please confirm that this solves your problem.

Best regards,

Earl Ramírez

NXP Technical Support Engineer

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,094件の閲覧回数
EarlOrlando
Senior Contributor II

Hello Joe,

As you said, this pin can be used as GPIO.

pastedImage_2.png

To achieve this, you need to configure the field MCG_C2[EREFS] as "External reference clock requested" (bit in 0).

Please confirm that this solves your problem.

Best regards,

Earl Ramírez

NXP Technical Support Engineer

0 件の賞賛
返信
1,093件の閲覧回数
ignisuti_
Contributor IV

Earl,

Thanks for the reply. That worked. Thank you!

For anyone else reading... I did also have to remove the line of code below which was waiting on the EREFS to finish initialization.

    while (!(MCG_S & MCG_S_OSCINIT0_MASK)){}

0 件の賞賛
返信