Output pin not going high

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Output pin not going high

跳至解决方案
2,826 次查看
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,769 次查看
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,788 次查看
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,786 次查看
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,790 次查看
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,799 次查看
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,770 次查看
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,762 次查看
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,809 次查看
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 项奖励
回复