9-bit UART communication for LPC4078

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

9-bit UART communication for LPC4078

Jump to solution
1,613 Views
michelle2022
Contributor II

Hello,

 

I am using LPC4078 microcontroller and I need to integrate the UART device which is receiving 9-bit. 

I couldn't find a register that enables 9-bit UART communication in the user manual or library API code.

Does LPC4078 support 9-bit UART comm? If yes, please provide guidance on which register to use.

 

Thank you

Michelle

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
1,600 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @michelle2022,

Unfortunately, the LPC4078 does not support 9-bit UART communication. As you can see from the "Features" section of each of the UART chapters, the LPC4078's UARTs only support 5, 6, 7, and 8 data sizes.

Sorry for the inconvenience this may cause.

BR,
Edwin.

View solution in original post

4 Replies
1,578 Views
michelle2022
Contributor II

Hi Edwin,

In addition, I found several points that seem to support 9-bit mode in the document.

Is there a work-around method to transmit 9-bit through UART1 ?

 

michelle2022_0-1734013983382.png

 

michelle2022_1-1734014625707.png

Thank you

Michelle

0 Kudos
Reply
1,568 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @michelle2022,

The 9th bit in this case is just for the auto address detection feature, not for transmitting 9-bit data size frames. The explanation of this feature is described on section "17.5.21 RS-485/EIA-485 modes of operation" of the User Guide.

BR,
Edwin.

1,581 Views
michelle2022
Contributor II

Hi Edwin,

Thanks for clarifying.

But, I can see the comment of "9-bit enable" in the RS485CTRL register description for AAD mode.

Could you let me know what it means?

michelle2022_0-1733973281678.png

 

Thank you

Michelle

0 Kudos
Reply
1,601 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @michelle2022,

Unfortunately, the LPC4078 does not support 9-bit UART communication. As you can see from the "Features" section of each of the UART chapters, the LPC4078's UARTs only support 5, 6, 7, and 8 data sizes.

Sorry for the inconvenience this may cause.

BR,
Edwin.

%3CLINGO-SUB%20id%3D%22lingo-sub-2012268%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E9-bit%20UART%20communication%20for%20LPC4078%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012268%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20am%20using%20LPC4078%20microcontroller%20and%20I%20need%20to%20integrate%20the%20UART%20device%20which%20is%20receiving%209-bit.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20couldn't%20find%20a%20register%20that%20enables%209-bit%20UART%20communication%20in%20the%20user%20manual%20or%20library%20API%20code.%3C%2FP%3E%3CP%3EDoes%20LPC4078%20support%209-bit%20UART%20comm%3F%20If%20yes%2C%20please%20provide%20guidance%20on%20which%20register%20to%20use.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EMichelle%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2012268%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC40xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2013123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%209-bit%20UART%20communication%20for%20LPC4078%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2013123%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244493%22%20target%3D%22_blank%22%3E%40michelle2022%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThe%209th%20bit%20in%20this%20case%20is%20just%20for%20the%20auto%20address%20detection%20feature%2C%20not%20for%20transmitting%209-bit%20data%20size%20frames.%20The%20explanation%20of%20this%20feature%20is%20described%20on%20section%20%2217.5.21%20RS-485%2FEIA-485%20modes%20of%20operation%22%20of%20the%20User%20Guide.%3C%2FP%3E%0A%3CP%3EBR%2C%3CBR%20%2F%3EEdwin.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012971%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%209-bit%20UART%20communication%20for%20LPC4078%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012971%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Edwin%2C%3C%2FP%3E%3CP%3EIn%20addition%2C%20I%20found%20several%20points%20that%20seem%20to%20support%209-bit%20mode%20in%20the%20document.%3C%2FP%3E%3CP%3EIs%20there%20a%20work-around%20method%20to%20transmit%209-bit%20through%20UART1%20%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22michelle2022_0-1734013983382.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22michelle2022_0-1734013983382.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315637i3FADEAE2AAC60153%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22michelle2022_0-1734013983382.png%22%20alt%3D%22michelle2022_0-1734013983382.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22michelle2022_1-1734014625707.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22michelle2022_1-1734014625707.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315639i4BFD7D9F88510310%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22michelle2022_1-1734014625707.png%22%20alt%3D%22michelle2022_1-1734014625707.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EMichelle%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%209-bit%20UART%20communication%20for%20LPC4078%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Edwin%2C%3C%2FP%3E%3CP%3EThanks%20for%20clarifying.%3C%2FP%3E%3CP%3EBut%2C%20I%20can%20see%20the%20comment%20of%20%229-bit%20enable%22%20in%20the%20RS485CTRL%20register%20description%20for%20AAD%20mode.%3C%2FP%3E%3CP%3ECould%20you%20let%20me%20know%20what%20it%20means%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22michelle2022_0-1733973281678.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22michelle2022_0-1733973281678.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F315513i2B67E99803B11C32%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22michelle2022_0-1733973281678.png%22%20alt%3D%22michelle2022_0-1733973281678.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EMichelle%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2012303%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%209-bit%20UART%20communication%20for%20LPC4078%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2012303%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F244493%22%20target%3D%22_blank%22%3E%40michelle2022%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20the%20LPC4078%20does%20not%20support%209-bit%20UART%20communication.%20As%20you%20can%20see%20from%20the%20%22Features%22%20section%20of%20each%20of%20the%20UART%20chapters%2C%20the%20LPC4078's%20UARTs%20only%20support%205%2C%206%2C%207%2C%20and%208%20data%20sizes.%3C%2FP%3E%0A%3CP%3ESorry%20for%20the%20inconvenience%20this%20may%20cause.%3C%2FP%3E%0A%3CP%3EBR%2C%3CBR%20%2F%3EEdwin.%3C%2FP%3E%3C%2FLINGO-BODY%3E