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

USB using ccs examples not sure what supposed to work

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








USB using ccs examples not sure what supposed to work
PostPosted: Thu Jul 08, 2004 12:01 pm     Reply with quote

I have taken the example files from the usb scop example and slightly modified them to work with my board. all communicatiopn is doin via SPI.

I have set up a few printf() statements to help

when I plug in the usb cable it pops up in window that a usb device has malfunctioned.

in the interrupt on a rxev it calls usb_get_packet()
in there i have added this line where is puting the rx data in to *ptr:

printf(":%x", *ptr);//todo debug <-----------**

and I did a similar thing for txev using usb_put_packet()
I printf every time *ptr is moved to the usbn9603 chip.


any how this is what I am getting using a terminal program:
USBN: 0x02
Wating for enum...for enum...
Rx: :80:00:00:40:80:80:80:80:01:00
Tx:
Rx:
Rx: :80:00:00:40:80:80:80:80:01:00
Tx:
Rx:
Rx: :80:00:00:40:80:80:80:80:01:00
Tx:
Rx:
Rx: :80:00:00:40:80:80:80:80:01:00
Tx:
Rx:
Rx: :80:00:00:40:80:80:80:80:01:00
Tx:
Rx:
Rx: :80:00:00:40:80:80:80:80:01:00
Tx:
Rx:

does this look right in any way?????????
cdwtech



Joined: 08 Jul 2004
Posts: 1

View user's profile Send private message

PostPosted: Thu Jul 08, 2004 12:09 pm     Reply with quote

not sure why it posted me as a guest but here is my user name if any one needs it
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