KDSK2.0.0: Using LPUART with RTS

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

KDSK2.0.0: Using LPUART with RTS

跳至解决方案
1,146 次查看
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 解答
823 次查看
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 回复数
823 次查看
s_l_
Contributor II

Hi Jason,

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

Thanks!

0 项奖励
回复
824 次查看
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 项奖励
回复