9S08JM Pullup with External TPMCLK

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

9S08JM Pullup with External TPMCLK

2,003 次查看
dp
Contributor III
I am using the IRQ/TPMCLK pin for an external clock input to TPM2 (TPM2SC = 0x18). It appears this combination disables the internal pullup but I cannot find confirmation in the documentation. I have tried setting IRQSC_IRQPE=1 but it has no effect.

I can add an external pullup (this is a prototype) but I'd like to be sure I'm not missing something. Can anyone confirm this behavior or suggest how to enable the internal pullup with this configuration? Thanks.

Dave

P.S.
The external clock source comes though a blocking diode. That's why I need the pullup.
标签 (1)
0 项奖励
回复
2 回复数

965 次查看
fabio
Contributor IV
Hi dp,

I believe that the pulling device is only available when the IRQ function is active (IRQSC:IRQPE=1). There is no other way to enable pulling devices when this pin is operating as TPMCLK input (as it is not mapped to any  PTxPE bit).

Best regards,
0 项奖励
回复

965 次查看
JimDon
Senior Contributor III
The spec says:
"The IRQ pin, when enabled, defaults to use an internal pull device (IRQPDD = 0), the device is a pullup
or pull-down depending on the polarity chosen"

So if it disabled, then the pull up is not connected.

Also note that this in not a pin that is shared with a GPIO, pins that are shared with a GPIO usually can use the pull up/pull downs. If you look at the block diagram, you will see signals coming in thru a port. Generally these signal are buffer by the port. This is not one of these signals.


0 项奖励
回复