Port Control Registers not in header file

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

Port Control Registers not in header file

736件の閲覧回数
zacharylevenber
Contributor I

Hi guys,

 

I'm a new here, just getting started with the Kinetis Design Studio using a MK20DX256VLH7 controller.

 

The manual refers to Port Control Registers such as PORTx_PCRn but they do not seem to be available. The IDE automatically included "MK20D7.h"

 

Is there a file I am missing? Thanks in advance.

ラベル(1)
0 件の賞賛
返信
1 返信

580件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Zachary,

Yes , in the header file of "MK20D7.h", it doesn't directly define the PORTx_PCRn.

(1) While we can use the struct of register to show , for example :

              PORTA->PCR

(2) If you have CW , we also can refer to the header file of CW, copy the definition of PORTx_PCRn to the header file of KDS.

pastedImage_0.png


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信