Reading from GPIO_PSR/DR

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

Reading from GPIO_PSR/DR

699 Views
adelindobre
Contributor I

Hello, 

I have a question with the GPIO Read Mode sequence. After writing value to data_register (GPIO_DR), should be able to read the same state from the GPIO_PSR after I have configured GPIO direction register to input? I saw that reading in input mode, the value from GPIO_DR is updated after I wrote something, but this is not the case for GPIO_PSR.

Thanks for your help!

Labels (1)
0 Kudos
1 Reply

573 Views
Yuri
NXP Employee
NXP Employee

Hello,

  look at the following https://community.nxp.com/message/304791 


Have a great day,
Yuri

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

0 Kudos