KDSK2.0.0: Using LPUART with RTS

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

KDSK2.0.0: Using LPUART with RTS

ソリューションへジャンプ
1,143件の閲覧回数
s_l_
Contributor II

Hi,

 

I want to use the LPUART with the RTS signal, which can be configured in LPUART0_MODIR register.

But when using KDSK 2.0.0, I can not find any information how to configure.

 

Can anyone explain, how to configure this register?

 

 

Thanks!

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
820件の閲覧回数
Jmart
NXP Employee
NXP Employee

Sebastian,

The MODIR register support is not provided in the SDK 2.0 LPUART driver. If you're interested in adding this capability, you can augment the current LPUART_Init functionality with the following.

Available RTS flags, choose those required for your application:

LPUART_MODIR_TXRTSE_MASK

LPUART_MODIR_TXRTSPOL_MASK

LPUART_MODIR_RXRTSE_MASK

example code:

base->MODIR = LPUART_MODIR_TXRTSE_MASK | LPUART_MODIR_TXRTSPOL_MASK;

Jason

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
820件の閲覧回数
s_l_
Contributor II

Hi Jason,

thanks for your answer! Your example code was the hint I needed!

Thanks!

0 件の賞賛
返信
821件の閲覧回数
Jmart
NXP Employee
NXP Employee

Sebastian,

The MODIR register support is not provided in the SDK 2.0 LPUART driver. If you're interested in adding this capability, you can augment the current LPUART_Init functionality with the following.

Available RTS flags, choose those required for your application:

LPUART_MODIR_TXRTSE_MASK

LPUART_MODIR_TXRTSPOL_MASK

LPUART_MODIR_RXRTSE_MASK

example code:

base->MODIR = LPUART_MODIR_TXRTSE_MASK | LPUART_MODIR_TXRTSPOL_MASK;

Jason

0 件の賞賛
返信