Serial Transmission

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Serial Transmission

1,154 次查看
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 项奖励
回复
3 回复数

908 次查看
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 项奖励
回复

908 次查看
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 项奖励
回复

908 次查看
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 项奖励
回复