PORTS Forum

Ports and Interfaces => Serial Ports => Topic started by: GlennP on December 06, 2011, 12:28:41 pm

Title: PIC on a board with a USB interface not giving all data.
Post by: GlennP on December 06, 2011, 12:28:41 pm
Hi All,
Anybody any ideas on why a board I am working on using a PIC  with a USB not appear totally in the Serial Port buffer, I am expecting SN=12345678 but can get SN=123 I'm guessing it is framing on the data bits,  I have never seen this with similar boards though.  If I use a timer will this be certain to avoid the problem, sadly in the past using timers has led to " well it works on my machine, why not yours".  I am thinking the interupt handler is missing some data, or may be the board is not sending all of it?

Glenn

 
Title: Re: PIC on a board with a USB interface not giving all data.
Post by: Jan Axelson on December 06, 2011, 12:37:30 pm
You're trying to retrieve a serial number sent by a device with a USB virtual serial port but you're not seeing all of the data?

Post the relevant code and maybe someone will see something.

Jan
Title: Re: PIC on a board with a USB interface not giving all data.
Post by: GlennP on December 07, 2011, 04:46:49 am
Hi,
Thanks for that, I think it is not that which causing the problem on further looking

Thanks
 Glenn