CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 11 matches
CCS Forum Index
Author Message
  Topic: USB Transfer stops suddenly
hawking1122

Replies: 7
Views: 13309

PostForum: General CCS C Discussion   Posted: Wed Apr 13, 2011 4:24 am   Subject: USB Transfer stops suddenly
I've spent a couple of days reading both USB2.0 Spec and PIC Datasheet but they didn't help much. I've used USBlyzer to check the communication and see that normally, software send packets to a drive ...
  Topic: USB Transfer stops suddenly
hawking1122

Replies: 7
Views: 13309

PostForum: General CCS C Discussion   Posted: Thu Apr 07, 2011 6:24 pm   Subject: USB Transfer stops suddenly
One more thing, PIC is powered from usb port. I'm thinking the problem may not come from hardware, so I'm checking the code.
  Topic: USB Transfer stops suddenly
hawking1122

Replies: 7
Views: 13309

PostForum: General CCS C Discussion   Posted: Thu Apr 07, 2011 6:22 pm   Subject: USB Transfer stops suddenly
Thanks, Ttelmah, you always give me detail and useful answers!
Now I know I'm mistaken, I'm reading Spec to know how to handle when software send RESET_PIPE or ABORT_PIPE URB, I'll feedback soon.
  Topic: USB Transfer stops suddenly
hawking1122

Replies: 7
Views: 13309

PostForum: General CCS C Discussion   Posted: Thu Apr 07, 2011 2:40 am   Subject: USB Transfer stops suddenly
Since it is not interrupt driven and running under the Windows GUI I'm not surprised at what you see.

Have you cut any PC code to invoke a simple 'loopback' test to properly test the mess that USB ...
  Topic: USB Transfer stops suddenly
hawking1122

Replies: 7
Views: 13309

PostForum: General CCS C Discussion   Posted: Wed Apr 06, 2011 5:11 am   Subject: USB Transfer stops suddenly
Hi, I'm doing a project using PIC18F2550 to get analog values, then transfer data to PC via USB cable. PC send a 1byte command valued 0x04 so that PIC can start it's job each time. Now the rate is 1 t ...
  Topic: How can I improve ADC accuracy?
hawking1122

Replies: 21
Views: 30542

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 3:25 am   Subject: How can I improve ADC accuracy?
I've double checked my code and see there are some delay functions which slow down the rate of transmiting/receiving usb data, but after I've deleted them all, the maximum rate of sampling is 40 sampl ...
  Topic: How can I improve ADC accuracy?
hawking1122

Replies: 21
Views: 30542

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 2:29 am   Subject: How can I improve ADC accuracy?
3. The amount of time for 1 sample is 22usec, but the maximum number of samples I can get from my Pic18f2550 is just 16 samples/1second (my computer software need to display analog value every second, ...
  Topic: How can I improve ADC accuracy?
hawking1122

Replies: 21
Views: 30542

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 2:20 am   Subject: How can I improve ADC accuracy?
I've added some bypass caps and the result is now much more stable. Thank you all!
However, something I want to see clearer:
1. My Vref is generated using LM317L, the schematic is below:
http://far ...
  Topic: How can I improve ADC accuracy?
hawking1122

Replies: 21
Views: 30542

PostForum: General CCS C Discussion   Posted: Sun Mar 13, 2011 8:54 am   Subject: How can I improve ADC accuracy?
Thank you guys for invaluable help, I'll do the hardware job and feedback anything I explore.
  Topic: How can I improve ADC accuracy?
hawking1122

Replies: 21
Views: 30542

PostForum: General CCS C Discussion   Posted: Fri Mar 11, 2011 11:40 pm   Subject: How can I improve ADC accuracy?
Thanks for your quick advice. I'm using LM317 to generate Vref at 2V. I've checked Vref with voltmeter and see it is stable (but not sure at time the chip take sample because it is too short). Do you ...
  Topic: How can I improve ADC accuracy?
hawking1122

Replies: 21
Views: 30542

PostForum: General CCS C Discussion   Posted: Thu Mar 10, 2011 10:31 pm   Subject: ADC disable USB module?
When I use sleep() to get more stable value from ADC, the USB module is disabled and I can not send data over USB cable anymore. I've tried adding enable_interrupts(GLOBAL) as well as usb_init_cs() an ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group