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

USB Enumeration

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



Joined: 17 Sep 2004
Posts: 133
Location: UK

View user's profile Send private message

USB Enumeration
PostPosted: Wed Nov 24, 2004 9:15 am     Reply with quote

Hi, I am using the USBN9603 - USB controller and PIC16F877A to develop a USB device.
I receive the 'Get device descriptor request' from the host and after transmitting the first 8 byte setup packet through the Endpoit zero I receive NAK from the host. And the enumeration is obviously failed.
What can be the problem?
Thank you
_________________
Alex
Guest








PostPosted: Fri Nov 26, 2004 7:42 am     Reply with quote

Do you know that the host immediately after receiving the Device Descriptor issues a bus reset?

Check this link:
http://www.beyondlogic.org/usbnutshell/usb7.htm
alexz



Joined: 17 Sep 2004
Posts: 133
Location: UK

View user's profile Send private message

PostPosted: Fri Nov 26, 2004 7:43 am     Reply with quote

Anonymous wrote:
Do you know that the host immediately after receiving the Device Descriptor issues a bus reset?

Check this link:
http://www.beyondlogic.org/usbnutshell/usb7.htm


Yes I know, I get it
_________________
Alex
alexz



Joined: 17 Sep 2004
Posts: 133
Location: UK

View user's profile Send private message

PostPosted: Fri Nov 26, 2004 7:45 am     Reply with quote

the device descriptor is 18 bytes.
I send 1rst 8 bytes, receive reset, then get again the request, send twice the 16 bytes in chunks of 8 bytes packets with receiving the ACK between, receive anothe ACK after and when I send the last 2 bytes I get the NAK.
_________________
Alex
alexz



Joined: 17 Sep 2004
Posts: 133
Location: UK

View user's profile Send private message

PostPosted: Fri Nov 26, 2004 7:49 am     Reply with quote

I also send a zero length packet after each 8 bytes Tx.
Why does not it acknowlege the last 2 bytes of the descriptor?
_________________
Alex
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