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?
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
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