receive

UART receive, a long time to wait

Thu, 2017-03-16 14:56--jamesleo-konka

Hi, DIalog,
I'm using a UART to communicate with peripheral device.
First the MCU sends a command via UART, and then waits for feedback from peripheral.
The feedback length is not fixed and the coming time is unknown (varies from 0.1 second to a few seconds).
The system watchdog is enalbled, that means I can't wait UART feedback for a long time.
How to organize the tasks, ISR, Queue?
Is there a sample code for this application?

Thanks

UART with PIC receiving issue

Thu, 2015-07-16 11:28--aeris

Hello, again :p

My PIC can't receive data from the PAN1740 USB dongle.
I try to dialog with dongle and USB UART : working
I try to dialog with PIC and USB UART : working
I plug PIC to dongle, all work with flow control but PIC don't receive...
The DSPS android app see flow control and can send data.

图片有内部弱上拉RX和CTS。
PIC enable it reception, then put RTS up and wait for interrupt. I try to add a 1ms delay before setting RTS, change nothing.

Subscribe to RSS - receive