Port Control Registers not in header file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Port Control Registers not in header file

368 Views
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.

Labels (1)
0 Kudos
1 Reply

212 Views
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 Kudos