Can the S32K144 read the state of GPIO?

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

Can the S32K144 read the state of GPIO?

544件の閲覧回数
jingfang
Contributor IV

I find spec only 0/1,so how should I know state of GPIO(High/Low、OD/PP)?

捕获.JPG

捕获(23).JPG

0 件の賞賛
4 返答(返信)

540件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@jingfang

First,the device does not support open drain on all the pins. Only pins that are configured for a protocol that requires open-drain (e.g;, LPI2C, LPUART single-wire) will work in open-drain mode.

Regarding the PP,you can take a look at the Pin Control Register(PORT_PCRn) ,

Senlent_0-1652707926285.png

BR!

     Jim,

 

0 件の賞賛

534件の閲覧回数
jingfang
Contributor IV

Thacks a lot~

The PE/PS show internal,I want to know if my output is correct,are there any other registers?

Dose DSE represent low or high output voltage no matter OD or PP?

 

捕获.JPG

0 件の賞賛

522件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@jingfang

I haven't seen such a register, and I haven't seen such a function in the driver library. I think this should not be possible.

BR!

     Jim,

0 件の賞賛

520件の閲覧回数
jingfang
Contributor IV

Thanks a lot~

0 件の賞賛