LPC546xx 9bit data length for USART

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

LPC546xx 9bit data length for USART

481 Views
minglunsheng
Contributor I

Hi

We are using the 9bit data length USART of interface on the LPC54608. And also use the fsl_usart.c/h driver provided with the MCUXpresso SDK 2.5.0. But we don't configure the 9bit data length USART,because driver of fsl_usart.c/h is not supported.

How to use the 9bit data length USART, and when will MCUXpresso SDK support it?

thanks Dani

Labels (1)
1 Reply

412 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hi Dani,

I would recommend taking a look at the following thread there is some useful information that might help you as a reference.

The drivers that have been created are to be used as reference and are designed to meet the needs of the examples in the SDK. Since the LPC546xx does support the 9 bit mode, you are welcome to make the necessary changes for the correct configuration.

In the following image you can see that the default configuration is set to 8 bit length in the fsl_usart.c.

pastedImage_3.png

If you locate the data type  located in the fsl_USART.h containing kUSART_8BitsPerChar, you can see that currently there is not an option for 9 bit, but this is were you can add the proper  configuration to allow for the 9 bit mode. pastedImage_5.png

Here is the link to the reference manual for further information.

Let me know if this helps,

Sabina