GPIO state before configuration

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

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

I understand that when PSOC 5LP is in Reset, all the GPIO are high impedance.

Are the GPIO also all high impedance for a new device that has not yet been programmed (not being held in reset state).

I have an H bridge and the Top and Bottom FETS are switching ON before I manage to program the 5LP. Once I have let out a bit of smoke and the device is programmed, it is ok (starts up and resets ok).

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi DaHu_285096​,

Yes, the GPIOs are in analog high impedance drive mode even for a new device.

Please note that a high impedance state does not mean that it is 0. The pin is just left floating. So, there might be some stray charges that could have turned one of the FETs ON.

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
3 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi DaHu_285096​,

Yes, the GPIOs are in analog high impedance drive mode even for a new device.

Please note that a high impedance state does not mean that it is 0. The pin is just left floating. So, there might be some stray charges that could have turned one of the FETs ON.

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

DaHu,

If this mode you speak of is undesirable, you might want to put a very resistance value resistor (100K) on the inputs to the FETs.  This resistor would be tied to GND or power depending on which bias voltage would prevent the FET from turning on.

Len

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

Thanks for your reply.

I have added pull up and down resistors to the circuit. For the P chan and N Chan Fets.

0 Likes