GPIO Input state

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YongseokJeon
Level 4
Level 4
Distributor
50 replies posted 50 questions asked 25 replies posted

Hello,
I'm using CYT2B93CAS.
If I set it to GPIO input mode, will it be in High-Z state?
Or is it internally set to pull-up or pull-down?

Thanks and Regards,
YS

0 Likes
1 Solution
Ashish
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi,

By default it's in Analog High-Z mode (High-Z with input buffer disabled)- which is suitable for analog input. But for digital input, you can configure it as pull-up/pull-down/digital-High-z using the DRIVE_MODEx and IN_ENx bit-field  in GPIO_PRTx_CFG register . So when you set a pin to input-mode by IN_ENx=1, it's still high-z but with input buffer enabled, unless you configure the DRIVE_MODEx to set it as pullup/pulldown. Refer register TRM for details. You may also refer this AppNote- section 3.3 "Reading an input" for explanation. 

https://www.infineon.com/dgdl/Infineon-AN220193_GPIO_Usage_Setup_in_Traveo_II_Family-ApplicationNote...

Regards,

Ashish

View solution in original post

0 Likes
2 Replies
Ashish
Moderator
Moderator
Moderator
25 likes received 50 solutions authored 100 replies posted

Hi,

By default it's in Analog High-Z mode (High-Z with input buffer disabled)- which is suitable for analog input. But for digital input, you can configure it as pull-up/pull-down/digital-High-z using the DRIVE_MODEx and IN_ENx bit-field  in GPIO_PRTx_CFG register . So when you set a pin to input-mode by IN_ENx=1, it's still high-z but with input buffer enabled, unless you configure the DRIVE_MODEx to set it as pullup/pulldown. Refer register TRM for details. You may also refer this AppNote- section 3.3 "Reading an input" for explanation. 

https://www.infineon.com/dgdl/Infineon-AN220193_GPIO_Usage_Setup_in_Traveo_II_Family-ApplicationNote...

Regards,

Ashish

0 Likes
YongseokJeon
Level 4
Level 4
Distributor
50 replies posted 50 questions asked 25 replies posted

Hi Ashish,
Thanks for your reply.

Regards,
YS

0 Likes