Author Topic: PIC on a board with a USB interface not giving all data.  (Read 19042 times)

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
PIC on a board with a USB interface not giving all data.
« 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

 

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: PIC on a board with a USB interface not giving all data.
« Reply #1 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

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: PIC on a board with a USB interface not giving all data.
« Reply #2 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