Pin is grounded all the time

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

Hi,

We are using PSoC LP 5. Some pins are working differently from others and it confused me.

One pin, pin18 (P5-2, GPIO) drive mode is set to resistive pull up, initial value high,  and it stays high; while another pin 29(P12-6, SIO) has the same drive mode and initial value, but it stays low. There is nothing different from both HW and SW perspective in our design. What is the internal difference between these two pins?

Regards,

Winston

0 Likes
1 Solution
DennisS_46
Employee
Employee
100 sign-ins 50 likes received 50 solutions authored

The <name>.dwr file is the listing of all pins in the Creator view, it does not generate a readable file.
If you want a text listing, go to BUILD - Generate Project Datasheet.
This will build a pdf of all of the settings, example from one of my projects

DennisS_46_0-1645815737734.png
Thanks always to the PSoC software team to steering me to this.
---- Dennis Seguine
PSoC Apps Engineer

 

View solution in original post

0 Likes
12 Replies
DennisS_46
Employee
Employee
100 sign-ins 50 likes received 50 solutions authored

Which specific part number and package?

---- Dennis

0 Likes

Part number is CY8C5467AXI-LP108.

Regards,

Yan

0 Likes
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

yaga,

From my experience, when pin is always High,  even on startup, it means that it has been shorted, and "died". Most likely it was connected to the ground while operating in StrongMode, or to a large capacitor, while providing high frequency output.

     Shit happens. Try to use other pins

0 Likes

We do not have other choice.

0 Likes
BiBi_1928986
Level 7
Level 7
First comment on blog 500 replies posted 250 replies posted

Hello.

Is it possible the SIO pin has been configured to use the "regulated output mode".  This mode does not support resistive pull-up or pull-down.  This is listed in datasheet just below the table showing the drive modes in Section 6.4.1 and explained more fully in the 5LP architecture document Section 19.3.10.1.

I tested P12.6 on KIT-059 as a GPIO (Kitprog snapped off) and it behaves as configured.

0 Likes

Wired thing is that sometime, or for some builds, it works just fine.

Regards,

Yan

0 Likes

Hmmmm...

What is P12.6 connected to?
What voltages are powering the 5LP?

Since it works sometimes, there is likely a hardware design error.  Maybe you can go through the document, AN61290.  It's a h/w design checklist for 5LP.

Or, maybe a simple solder short between adjacent pins.

0 Likes
yaga_3967241
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Thanks for all for your replies.

It turned out that the pin assignment changes hiddenly. I assigned the pin to the pin I want, somehow the pin is not locked and it changed to another pin. So the pin I measured is not actually the pin in my design view/SW. It is my bad.  But it does remind me the following question: Why does the pin assignment change?

0 Likes

yaga,

PSoC Creator normally doesn't lock the pin down if you let it auto-assign GPIO pins.

If the pin isn't locked, then the next time you go through the "Application Build" phase, it may reassign it.

There are three ways to lock down the pin assignment.   On the DWR/Pins window in the pin you want to lock:

  1. Check the box in the "Lock" Column.
  2. Select the pin number in the "Pin" Column. 
  3. Select the port [bit] in the "Port" Column.

 

Len_CONSULTRON_2-1645576344553.png

Selecting 2 or 3 will automatically lock the pin.

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

Hi,

Do you know in which file the pin assignment and locking state are stored? We need to checkin the files into our git repo so it is saved.

Regards,

Yan

0 Likes

yaga,

I'm confident that the file is the <project_name>.cydwr file.   The cydwr = Cypress DWR.

Len
"Engineering is an Art. The Art of Compromise."
DennisS_46
Employee
Employee
100 sign-ins 50 likes received 50 solutions authored

The <name>.dwr file is the listing of all pins in the Creator view, it does not generate a readable file.
If you want a text listing, go to BUILD - Generate Project Datasheet.
This will build a pdf of all of the settings, example from one of my projects

DennisS_46_0-1645815737734.png
Thanks always to the PSoC software team to steering me to this.
---- Dennis Seguine
PSoC Apps Engineer

 

0 Likes