SC18IM704 interrupts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,965件の閲覧回数
jj100126
Contributor I

Hello, I have a SC18IM704-EVB and I want to pair it with PCF8575, is there a way for the SC18 to accomodate the INT pin of the PCF? How does the host get the interrupt?

0 件の賞賛
返信
1 解決策
1,937件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Joshua,

yes, that is correct. You need to poll for checking if the !INT was asserted low by reading the IOState register.

With Best Regards,

Jozef

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,956件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Joshua,

you can connect the !INT pin to one of the GPIOs pin in the SC18IM704. The GPIO pins are configured as inputs after reset. 

JozefKozon_0-1653567634125.png

You can make sure, that the used GPIO is set as input only by setting the PortConfx registers to 00 or 01.

JozefKozon_5-1653568371693.png

JozefKozon_1-1653567691836.png

JozefKozon_2-1653567727380.png

Then you by reading the IOState register of the GPIO pin, you can check if the !INT pin is asserted (LOW).

JozefKozon_3-1653567851782.png

JozefKozon_4-1653568149213.png

With Best Regards,

Jozef

 

 

1,952件の閲覧回数
jj100126
Contributor I

i have thought of this as well, setting the GPIO as input, but how about on the host side? Should the host poll everytime for the input from the INT pin, and if there's one, the host then read the inputs from the PCF?

I am also thinking of ditching the INT pin and just let the host poll for the PCF inputs directly

0 件の賞賛
返信
1,938件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Joshua,

yes, that is correct. You need to poll for checking if the !INT was asserted low by reading the IOState register.

With Best Regards,

Jozef

0 件の賞賛
返信