Can I route a pin to PINT and USART at the same time?

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

Can I route a pin to PINT and USART at the same time?

1,678件の閲覧回数
wangyanjun
Contributor II

My application need to capture the USART's RxD falling edge. Can I route the pin (P0_29) to PINT and USART at the same time?

 

Thank you!

ラベル(1)
0 件の賞賛
返信
9 返答(返信)

1,670件の閲覧回数
wangyanjun
Contributor II

LPC54616J512BD100

0 件の賞賛
返信

1,662件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

No, you can't config the pin as PINT and USART at the same time.

0 件の賞賛
返信

1,656件の閲覧回数
wangyanjun
Contributor II

I just test it.

I config P0_29 as USART RxD and PINT int0 input at the same time. When there is signal on the RxD pin, it can generate PINT interrupt and USART receive interrupt.

 

0 件の賞賛
返信

1,649件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

you may get it work during debug. But we can't guarantee both of PINT and UART still work well in run mode or increase the communication speed. This usage is not suggested. 

0 件の賞賛
返信

1,646件の閲覧回数
wangyanjun
Contributor II

In run mode, it will not work?

I use PINT to capture UART start bit's falling edge only and the baudrate is 19200. Is this OK?

 

Thank you!

0 件の賞賛
返信

1,643件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

 Because we don't suggest user use one pin as PINT and UART at the same time. You are not using part with our suggested way, so by checking, we can't guarantee it.

Don't have have another pin to get PINT interrupt? 

 

0 件の賞賛
返信

1,640件の閲覧回数
wangyanjun
Contributor II

For new design, I can use another pin as PINT. For existing product, I want to add new function by firmware update only.

0 件の賞賛
返信

1,633件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

As I said this is not our recommended way of using part.

We can't guarantee the function work all well if you insist working this way. 

0 件の賞賛
返信

1,675件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Please let me know your chip full part number. I will check.

Thanks,

Jun Zhang

0 件の賞賛
返信