Trouble with understanding FRDM-KEA 128 board

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

Trouble with understanding FRDM-KEA 128 board

487件の閲覧回数
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.

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

383件の閲覧回数
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 件の賞賛