Joined: 25 Mar 2020 Posts: 1 Location: Banned - spammer
USB errors
Posted: Wed Mar 25, 2020 3:16 am
Hello !
I try to use the USB with a dsPIC33EP256MU806 uC. I would like to use CDC communication, with the own library of CCS. I need to send 8192 bytes via USB to a PC where a script receives the bytes and checks them.
The sent example pattern is: 0x11000000..0x110007ff.
I checked the line with scope and I realized that some double words in the message are different than those I wanted to send, so they automatically change right at sending.
Eg.: The previous double word is: 0x11000304 so I expect that the next is: 0x11000305 but it is 0x11000300.
OR
The previous double word is: 0x110003CF so I expect that the next is: 0x110003D0 but it is 0x1100C1D0.
I tried the same code on a PIC18F2550 and the result was wonderful: there were no errors.
Do you have any idea what I should try? Could you help me?
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
Posted: Wed Mar 25, 2020 4:20 am
First thing. Post your clock settings. What crystal are you using?.
My settings for USB are:
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