Trouble with understanding FRDM-KEA 128 board

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

Trouble with understanding FRDM-KEA 128 board

579 Views
tejasr
Contributor I

Hello,

I'm just starting with the board and I have a few questions regarding the pin layout. In the image attached, I've found many pins to be duplicated/repeated. I am having problems reading input from any of the GPIO pins. I'm using the S32 Design Studio. The outputs are working fine.    

To set up a pin as an input, I've used the following commands  

GPIOA_PDDR &= ~(1<<PTD2);
GPIOA_PIDR &= ~(1<<PTD2);
PORT_PUE0 |= 1<<PTD2;

The flow is not entering the if condition -   if( (GPIOA_PDIR) & (0<<PTD2)).

I've already posted a question regarding this and did get a response. But since I'm new to all this, I think it's better if someone can post relevant links so that I can learn. 

Thanks in advance.

0 Kudos
Reply
1 Reply

475 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Tejas,

We can discuss it in similar question: Problem in reading input from gpio pin in frdm-kea128.

Best Regards,

Robin

 

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

0 Kudos
Reply