How to determine pin boot state and operating termination state

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

cross mob
yaga_3967241
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Hello,

We are using PSoC 5LP and trying to figure the pin state at the beginning of PSoC power on and when PSoC is running stable. My questions are:

  • Is the pin initial boot state (when power source connects to PSoC) configured by the Power-On Reset option?
  • Is the pin operating termination state (after PSoC is fully bootup and code is running) configured by Initial Drive State option?

Thanks,

Yan

0 Likes
1 Solution
Arpit_S
Moderator
Moderator
Moderator
50 likes received 250 replies posted 100 solutions authored

Hi Yan

On bootup, Whatever ports that you are using in the project are initialized by cyfitter_cfg.c in PSoC Creator and by default other Pins/Ports are in High Impedance mode. Please find more info here:  https://www.infineon.com/dgdl/Infineon-PSoC5LP_Architecture_TRM-AdditionalTechnicalInformation-v08_0... in I/O Drive Mode

 

Thanks & Regards

Arpit Srivastav

 

View solution in original post

0 Likes
4 Replies
Arpit_S
Moderator
Moderator
Moderator
50 likes received 250 replies posted 100 solutions authored

Hi Yan

On bootup, Whatever ports that you are using in the project are initialized by cyfitter_cfg.c in PSoC Creator and by default other Pins/Ports are in High Impedance mode. Please find more info here:  https://www.infineon.com/dgdl/Infineon-PSoC5LP_Architecture_TRM-AdditionalTechnicalInformation-v08_0... in I/O Drive Mode

 

Thanks & Regards

Arpit Srivastav

 

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Yan,

As Arpit indicated, the GPIO pins at reset are automatically reconfigured to Analog Hi-Impedance.  (No pull-up or pull-down biases.)  After initialization, your TopDesign and DWR/Pins assignment determines what mode the pins will be.

For most of the GPIO pins it is possible to have specific pins come up in another mode at reset.  Is this what you are trying to achieve?

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
yaga_3967241
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Hi Len,

We are ok for all pin reset state to be Analog Hi-Impedance. A following question: What state would a pin be after power up, if the pin is not configured at all in TopDesign?

Regards,

Yan

0 Likes

Yan,

As the datasheet, TRM and other GPIO app notes indicate, any GPIO not configured with TopDesign will be left in the default state of Analog Hi-Impedance.

 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes