Test trasmission Lpuart1 MCUXC242

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

Test trasmission Lpuart1 MCUXC242

Jump to solution
326 Views
Transidico
Contributor II

Good morning,
I wanted to test the uart communication of my mcuxc242 board. I have connected lpuart1 with uart2 on my board, lpuart transmits and uart2 receives. The uart2 receive works correctly and I tested it using a modbus terminal by making a request to send data and I see it correctly. Transmission I have tested it by connecting the oscilloscope, the receive printout and the same terminal, but it does not happen correctly. Could you please tell me if I am using the LPUART_WriteBlocking function correctly?
Please find the attached code.
Thanks for your support

Best regards

0 Kudos
Reply
1 Solution
303 Views
diego_charles
NXP TechSupport
NXP TechSupport

hi @Transidico 

If I understood properly you have the following wiring and setup 

  • LPUART1 TX ( transmit seems to fail ) ---> LPUART2 RX  (  using external terminal it receives well)

You have not tested yet the below correct? So we do not know if transmitt is well done. 

  • LPUART2 TX ( transmit fails?) ---> LPUART1 RX   ( receives well?)

I also understand that you saw the Trasmission of LPUART1 TX to works, well correct? I mean with certain  the baudrate and polarity settings on a terminal.

Based on the above, I would recommend to check the baudrate, polarity and the GPIO pin settings, for example  internal and external pull resistor configuration As well, the pins on the board, see that they are not shared with other elements on the board. 

Diego

 

View solution in original post

0 Kudos
Reply
2 Replies
304 Views
diego_charles
NXP TechSupport
NXP TechSupport

hi @Transidico 

If I understood properly you have the following wiring and setup 

  • LPUART1 TX ( transmit seems to fail ) ---> LPUART2 RX  (  using external terminal it receives well)

You have not tested yet the below correct? So we do not know if transmitt is well done. 

  • LPUART2 TX ( transmit fails?) ---> LPUART1 RX   ( receives well?)

I also understand that you saw the Trasmission of LPUART1 TX to works, well correct? I mean with certain  the baudrate and polarity settings on a terminal.

Based on the above, I would recommend to check the baudrate, polarity and the GPIO pin settings, for example  internal and external pull resistor configuration As well, the pins on the board, see that they are not shared with other elements on the board. 

Diego

 

0 Kudos
Reply
278 Views
Transidico
Contributor II
Hi,
I managed to test the transmission with an arduino uno board, it works correctly now.
Thank you for your support
OSZAR »