chipKIT® Development Platform

Inspired by Arduino™

Missing Chunks of Data During USBUART Data Transfer in Max32

Created Sat, 09 Jun 2012 18:25:20 +0000 by hridyav1


hridyav1

Sat, 09 Jun 2012 18:25:20 +0000

I am trying to perform data acquisition through USBUART. In order to test, I am currently using a timer. Currently, I am continuously reading the timer count and writing it to UART using the Serial.Write() function. I have not enabled any interrupts in my code except for the UART interrupts which are needed. Once in a while I am observing that I miss chunks of data, for eg the counts received at the host side would show a sudden jump for eg. ...48,49,50,101,102,103...

Although this happens very rarely, I am able to observe this behavior once in a while. I have tried varying the UART baudrate. It does not seem to have any effect on this issue.

Has anyone encountered such an issue before? Any suggestions would be appreciated.

Thanks, Hridya


Jacob Christ

Thu, 14 Jun 2012 05:55:45 +0000

How long is the time between transmissions? Could it be that there is some kind of beating of the timer frequency against the transmission time that causes the dropped counts?

Jacob