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 support@ccsinfo.com

Need help for USB with DSPIC33EP256MU806

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
AKIOM



Joined: 16 May 2014
Posts: 11

View user's profile Send private message

Need help for USB with DSPIC33EP256MU806
PostPosted: Wed Jul 23, 2014 6:50 am     Reply with quote

I decide to use DSPIC33EP256MU806 in my image-sensor project because it has 12 bit A/D converter, support USB interface and fast operation (70MIPS).
I design a test circuit for DSPIC33EP256MU806 that has an crystal 8Mhz. I test it with changing output port RB0 from high to low (no USB) and it works well. After I test with my USB code and connect PIC via USB port to my computer, the computer (Windows xp) hangs or sometime, shows that my device is malfunction. Then, I neatly check my circuit connection but there is no error in my circuit.
When I use oscilloscope for detection signal from D+ and D-, it shows me only negative voltage about 3V (no other signals). I use all 5 days for testing it but I can not to solve this problem. How can
I do? Please help me to solve this problem. I should buy evaluation board from microchip to test USB function or not. Has Someone ever been use this microcontroller ?
I use DSPIC33EP256MU806 and 5.024 ccs compiler.

Thank you very much.
AKIOM
Code:

#include <33EP256MU806.h>
#use delay(crystal=8Mhz, clock=120Mhz, AUX:clock=48Mhz)
#include <usb_cdc.h>
#include <stdlib.h>
void main() {

usb_cdc_init();
//usb_init_cs();
usb_init(); //init USB and enable USB interrupt.
 while(TRUE) {
  usb_task();           
   If (usb_enumerated())//Returns TRUE if the device has been enumerated(specified)by the PC.
      {
               
              printf(usb_cdc_putc, "\n\rAkiom");//my name
             
      }
   
 }
             
 delay_ms(50);
}

This is my schematic VDD_PIC=DVDD

http://postimg.org/image/401dgtnqt/
Another picture is signal between D+ and D-

http://s2.postimg.org/aame84pjd/D_D.png
Signal test with port B0 (no usb interface )

http://s7.postimg.org/xb1h1qemz/TEK00000.png
AKIOM



Joined: 16 May 2014
Posts: 11

View user's profile Send private message

PostPosted: Thu Jul 24, 2014 7:56 am     Reply with quote

I really need for help from everyone. If someone use DSPIC33EP256MU806, please help me.
AKIOM
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group