Capacitor on input pin

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

Capacitor on input pin

425 次查看
dirkschäfer
Contributor III

Dear all,

I connect the collector of an opto-coupler, ACPL-847-300E, with one PIN of the iMX6, PIN configured as GPIO inport, Schmitt-trigger, slow, 22kOhm. That works fine, inverted logic.

Now I placed a 3.3nF capacitor to that PIN, hoping to control the frequency, 1/2*PI*R*C, by the PIN control register.

But the behavior is not like expected. Falling edges lead to one edge, but rising edges lead to more then one rising-falling edge. Like the signal bounces around the threshold of being 1 or 0.

The put the filter in the entrance of the opto-coupler is more likley, I think. But the possibility to change the cutoff frequency would be nice.

Is it impossible, or would I need more then a capacitor?

Many thanks for your help.

标签 (1)
0 项奖励
1 回复

393 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Dirk

I doubt if placing capacitor on digital pin will produce good filtering,

"bouncing" may be caused by slow signal change.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励