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,320件の閲覧回数
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,312件の閲覧回数
wangyanjun
Contributor II

LPC54616J512BD100

0 件の賞賛

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

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

0 件の賞賛

1,298件の閲覧回数
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,291件の閲覧回数
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,288件の閲覧回数
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,285件の閲覧回数
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,282件の閲覧回数
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,275件の閲覧回数
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,317件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

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

Thanks,

Jun Zhang

0 件の賞賛