KDSK2.0.0: Using LPUART with RTS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KDSK2.0.0: Using LPUART with RTS

Jump to solution
1,145 Views
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!

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

View solution in original post

0 Kudos
Reply
2 Replies
822 Views
s_l_
Contributor II

Hi Jason,

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

Thanks!

0 Kudos
Reply
823 Views
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 Kudos
Reply