Output pin not going high

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

Output pin not going high

ソリューションへジャンプ
2,828件の閲覧回数
m_mishrikey
Contributor III

MCU: S32K148 144 pin

I have a GPIO pin that I wish to drive high.  

The pin is connected with a 3.3k resistor to ground. 

I expect the push-pull output to be able to drive this pin high, however it seems the 3.3k is pulling the line to ground.  The line goes up but immediately decays back to low.

In the PEX config, the pin is clearly set to have pull-up/pull-down disabled.  Init value is high, but I also force high in the main function.

m_mishrikey_0-1671077214105.png

m_mishrikey_0-1671078020761.png

 

 

0 件の賞賛
返信
1 解決策
2,771件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@m_mishrikey

      I did a drive capability test on the S32K142. The tested port is PTB0, and the pull-down resistance ranges from 390 to 3.3K. Within these ranges, the output can be kept in a high state (I didn’t test the working condition below 390Ω, and the chip’s power supply is 5V).

     I think the driving ability should be able to cover this working condition, the only thing to pay attention to is this sentence in the data sheet:

IOHT Output high current total for all ports — — 100 mA

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
2,790件の閲覧回数
m_mishrikey
Contributor III

Yes, PTC14 is set to output in Routing tab, and Pull Enable is disabled in Functional Properties tab.  PEX is regenerated and program is rebuilt and programmed.  Finally, pull-down measures 3.3k.

0 件の賞賛
返信
2,788件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Ok, I'll do a similar test and I'll send you the results,
If the phenomenon is the same, it only shows that the driving ability is insufficient

0 件の賞賛
返信
2,792件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@m_mishrikey

please confirm again:

1.you already set the ptc14 like this, 

Senlent_1-1671160302804.png

2.measure whether the resistance value of the pull-down resistor is 3.3K 

If there is nothing wrong with the above, I will test it  on myside.

 

 

 

0 件の賞賛
返信
2,801件の閲覧回数
m_mishrikey
Contributor III

I don't follow.  The spec says for a 3.3V rail, the outputs can source up to 3.5mA.  For a 3.3k external pull-down, that is only 1mA.  I would expect the output can recover even if the output capacitance is not sufficient.  

I'm not loading the other outputs down heavily either, in case there was a question about total output over all ports.

 

0 件の賞賛
返信
2,772件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@m_mishrikey

      I did a drive capability test on the S32K142. The tested port is PTB0, and the pull-down resistance ranges from 390 to 3.3K. Within these ranges, the output can be kept in a high state (I didn’t test the working condition below 390Ω, and the chip’s power supply is 5V).

     I think the driving ability should be able to cover this working condition, the only thing to pay attention to is this sentence in the data sheet:

IOHT Output high current total for all ports — — 100 mA

 

 

0 件の賞賛
返信
2,764件の閲覧回数
m_mishrikey
Contributor III

Case of "toothache that went away".  I remeasured today and the pin is driving fine.  I can't explain it. 

Sorry for the trouble, and thank you for checking.

0 件の賞賛
返信
2,811件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@m_mishrikey

There is nothing wrong with your settings, it should be that the drive capacity is not enough, maybe you can remove the external pull-down resistor, or increase the pull-down resistor, such as 10K or larger.

0 件の賞賛
返信