PN7462 GPIO Output Read Issue Using phhalPcr_GetGpioVal()

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

PN7462 GPIO Output Read Issue Using phhalPcr_GetGpioVal()

204 Views
uday_gowda
Contributor II

Hi Team,

I am using PN7462 and trying to read LED GPIO pins configured as output using phhalPcr_GetGpioVal().

uint8_t val = 0; phhalPcr_GetGpioVal(LED_RED, &val);

But the API always returns 0 even when the LED output is HIGH.

Is phhalPcr_GetGpioVal() only reading input pad state?

Is there any other API to read output GPIO pin state/output latch value on PN7462?

Thanks in advance.

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

183 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @uday_gowda 

Please refer to tht example => PN7642_MCUXpresso_SDK_02-15-006_PUB\boards\pnev7642fama\driver_examples\gpt, there is an answer what you want.

0 Kudos
Reply

133 Views
uday_gowda
Contributor II

Thanks for the reference.

I am using PN7462AU with SDK NxpNfcRdLib_PN7462_v07.14.00_Pub.

I checked the suggested example area, but there also I could see only GPIO write operations for LEDs and not GPIO output read operations.

Could you please confirm if there is any API available to read output GPIO state on PN7462?

Tags (1)
0 Kudos
Reply

60 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @uday_gowda 

Maybe you can try:

KaiLi_0-1778655256333.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2362684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPN7462%20GPIO%20Output%20Read%20Issue%20Using%20phhalPcr_GetGpioVal()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20using%20PN7462%20and%20trying%20to%20read%20LED%20GPIO%20pins%20configured%20as%20output%20using%20phhalPcr_GetGpioVal().%3C%2FP%3E%3CP%3Euint8_t%20val%20%3D%200%3B%20phhalPcr_GetGpioVal(LED_RED%2C%20%26amp%3Bval)%3B%3C%2FP%3E%3CP%3EBut%20the%20API%20always%20returns%200%20even%20when%20the%20LED%20output%20is%20HIGH.%3C%2FP%3E%3CP%3EIs%20phhalPcr_GetGpioVal()%20only%20reading%20input%20pad%20state%3F%3C%2FP%3E%3CP%3EIs%20there%20any%20other%20API%20to%20read%20output%20GPIO%20pin%20state%2Foutput%20latch%20value%20on%20PN7462%3F%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2362684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EDevelopment%20Board%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362725%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20GPIO%20Output%20Read%20Issue%20Using%20phhalPcr_GetGpioVal()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362725%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261175%22%20target%3D%22_blank%22%3E%40uday_gowda%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20tht%20example%20%3D%26gt%3B%20PN7642_MCUXpresso_SDK_02-15-006_PUB%5Cboards%5Cpnev7642fama%5Cdriver_examples%5Cgpt%2C%20there%20is%20an%20answer%20what%20you%20want.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363103%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20GPIO%20Output%20Read%20Issue%20Using%20phhalPcr_GetGpioVal()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363103%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EThanks%20for%20the%20reference.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%20am%20using%20PN7462AU%20with%20SDK%20NxpNfcRdLib_PN7462_v07.14.00_Pub%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20checked%20the%20suggested%20example%20area%2C%20but%20there%20also%20I%20could%20see%20only%20GPIO%20write%20operations%20for%20LEDs%20and%20not%20GPIO%20output%20read%20operations.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECould%20you%20please%20confirm%20if%20there%20is%20any%20API%20available%20to%20read%20output%20GPIO%20state%20on%20PN7462%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2364567%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7462%20GPIO%20Output%20Read%20Issue%20Using%20phhalPcr_GetGpioVal()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2364567%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F261175%22%20target%3D%22_blank%22%3E%40uday_gowda%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMaybe%20you%20can%20try%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22KaiLi_0-1778655256333.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22KaiLi_0-1778655256333.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F385244i48E0664EB98457A3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22KaiLi_0-1778655256333.png%22%20alt%3D%22KaiLi_0-1778655256333.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E