i.MX6SDL GPIOx_PSR register value.

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

i.MX6SDL GPIOx_PSR register value.

Jump to solution
975 Views
satoshishimoda
Senior Contributor I

Hi community,

Our partner have a question about i.MX6SDL GPIO.

Please see chapter 29.5.2 in IMX6SDLRM Rev.1.

It says "If GDIR[n] is cleared and IOMUXC input mode is not GPIO, then reading DR[n] always returns zero".

With same condition (GDIR[n] is cleared and IOMUXC input mode is not GPIO), how about the value of GPIOx_PSR register?

Does is return zero same as GPIOxDR register?

Best Regards,

Satoshi Shimoda

Labels (2)
Tags (1)
0 Kudos
1 Solution
775 Views
Yuri
NXP Employee
NXP Employee

The PSR register reflects state of pin in (GPIO) input mode.

(case B)

~Yuri.

View solution in original post

0 Kudos
5 Replies
775 Views
Yuri
NXP Employee
NXP Employee

   GPIOx_PSR register(s) is intended to read actual state of internal

signals, as it is configured by IOMUXC.  Please look at  Figure 29-1

(Chip IOMUX Scheme) of the IMX6SDLRM.


Have a great day,
Yuri

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

0 Kudos
775 Views
satoshishimoda
Senior Contributor I

Hi Yuri,

Thank you for your reply.

> as it is configured by IOMUXC. 

Sorry, I did not understand well the meaning of the above your comment.

Which is correct?

A. GPIOx_PSR can get actual pad state even if IOMUX is not set to GPIO.

B. GPIOx_PSR can get actual pad state only when IOMUX is set to GPIO.

Best Regards,

Satoshi Shimoda

0 Kudos
776 Views
Yuri
NXP Employee
NXP Employee

The PSR register reflects state of pin in (GPIO) input mode.

(case B)

~Yuri.

0 Kudos
775 Views
satoshishimoda
Senior Contributor I

According to your reply, GPIOx_PSR does not return the actual pad state when IOMUX is not set to GPIO.

Then, what value is returned when read GPIOx_PSR in the case?

Zero? Indeterminate value? or keep actual pad state if the out of reset condition is "GPIOx_IOxx/Input/PU(100K)" of the pad?

Best Regards,

Satoshi Shimoda

0 Kudos
775 Views
Yuri
NXP Employee
NXP Employee

"The IOMUX must be configured to GPIO mode for PSR to reflect the state
of the corresponding signal. Otherwise the register shows the default values

as set by the IOMUX."

~Yuri.

0 Kudos