Serial Transmission

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

Serial Transmission

859 Views
andrerm
Contributor II

Hello

I have a problem with serial transmission

I have to send data from the ADC via serial port to my computer.

 

I'm not sure which module to use and I started working with the linflex in UART mode. It's correct?

I've read various examples (with and without DMA) but I still have a question about how to set data output to my PC

Can you help me?

0 Kudos
3 Replies

613 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi Andrea,

Yes, the LINFlex (in UART mode) or eSCI modules can be used for that purpose. It depends which MCU do you have.

Several examples are posted here: https://community.nxp.com/docs/DOC-329623.

The MCU is connected to the PC via the USB or RS232 connector, thus appropriate UART transceiver has to be used.  

It is always available on our EVBs.

BR, Petr

0 Kudos

613 Views
andrerm
Contributor II

Thank you for reply.

So i have to set the linflex in rx mode (to receive data from the mcu) and then to in tx mode (to send them to the pc)

it's correct?

0 Kudos

613 Views
PetrS
NXP TechSupport
NXP TechSupport

You will enable both the Transceiver and Receiver using respective bits in UARTCR register and then write/read data to/from Data register.

You can refer to this example https://community.nxp.com/docs/DOC-333894, which shows an ADC module usage.

It also displays converted result to the terminal window.

BR, Petr

0 Kudos