KDSK2.0.0: Using LPUART with RTS

cancel
Showing results for 
Search instead for 
Did you mean: 

KDSK2.0.0: Using LPUART with RTS

Jump to solution
354 Views
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!

Labels (1)
Tags (1)
0 Kudos
1 Solution
31 Views
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

View solution in original post

0 Kudos
2 Replies
31 Views
Contributor II

Hi Jason,

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

Thanks!

0 Kudos
32 Views
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

View solution in original post

0 Kudos