Hi,
I have a S32K118Evb board and run the sample code "uart_pal_echo_s32k118" for uart tests.
I want to transmit a message with a 9-bit character length.
So I changed the relevant settings. as follows
const uart_user_config_t LPUART_0_uart_pal_config0 = {
.baudRate = 115200UL,
.parityMode = UART_PARITY_DISABLED,
.bitCount = UART_9_BITS_PER_CHAR,
.stopBitCount = UART_ONE_STOP_BIT,
.transferType = UART_USING_INTERRUPTS,
The waveform below is a comparison of 8-bit characters and 9-bit characters.
8bit char
9bit char
Why is the output waveform of 9-bit characters like this, where did I set it wrong?
Best Regards
Alston
Solved! Go to Solution.
Hi Alston,
Please refer to this thread:
https://community.nxp.com/t5/S32K/9-bit-LPUART-messages-for-S32k144/m-p/1429135#M14457
Regards,
Daniel
Hi Alston,
Please refer to this thread:
https://community.nxp.com/t5/S32K/9-bit-LPUART-messages-for-S32k144/m-p/1429135#M14457
Regards,
Daniel
Hi Daniel,
I get it already.
Thanks,
Alston