In PN7462 how to use GPIO13-16 as GPIO?

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

In PN7462 how to use GPIO13-16 as GPIO?

561 Views
pratikyadav
Contributor II

Hello @Kan_Li,

I am using PN7462. I want to use INT_AUX, IO_AUX, and CLK_AUX as a GPIO which are 16,15,14.

Following APIs only support GPIO1 to GPIO12.

phhalPcr_ConfigInput()

phhalPcr_ConfigOutput()

phhalPcr_GetGpioVal()

PH_HAL_GPIO_SETGPIOVAL()

How can I configure GPIO13,14,15,16 in input/output mode as well as get value of this GPIO?

0 Kudos
2 Replies

546 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hello @pratikyadav ,

 

I am sorry, but there is no dedicated API for these pins, you have to setup the related registers based on the macros defined in ph_Reg.h. Please refer to the following for more details.

PCR_PAD_INT_AUX_REG 0x0054 32 rw-0x00000001 INT_AUX pad configuration
PCR_PAD_IO_AUX_REG 0x0058 32 rw-0x00000001 IO_AUX pad configuration
PCR_PAD_CLK_AUX_REG 0x005C 32 rw-0x00000002 CLK_AUX pad configuration
PCR_PADIN_REG 0x0038 32 r--0x00000000 Store value on input pads into this register
PCR_PADOUT_REG 0x003C 32 rw-0x00000000 output value to be driven onto output pads stored here

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

535 Views
pratikyadav
Contributor II

@Kan_Li ,

Thanks for your response I am able to configure GPIO15,16 by writing it to specific registers.

0 Kudos