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 13 matches
CCS Forum Index
Author Message
  Topic: Using serial numbers with USB
zlittell

Replies: 7
Views: 13856

PostForum: General CCS C Discussion   Posted: Sat Apr 21, 2012 6:16 pm   Subject: Using serial numbers with USB
I am using an 18F4550. and RTdch has the right idea. my program on the pc looks at vids and pids when it finds a match it stores the usb serial number and devicepath. the user then chooses a device ...
  Topic: Using serial numbers with USB
zlittell

Replies: 7
Views: 13856

PostForum: General CCS C Discussion   Posted: Mon Mar 12, 2012 12:25 pm   Subject: Using serial numbers with USB
So I am working on using Serial Numbers with my USB device. Has anyone done this?

I have it working if I set the serial number in the USB descriptor but obviously that isn't an option because I wi ...
  Topic: using a variable to call a variable without if statements?
zlittell

Replies: 16
Views: 15824

PostForum: General CCS C Discussion   Posted: Thu Mar 08, 2012 1:46 am   Subject: using a variable to call a variable without if statements?
thats what I figured... there was probably a way to do what I wanted but not as efficiently as the idea sounds itself. I will just be sticking with the array I have working now.

I can't wait to fi ...
  Topic: using a variable to call a variable without if statements?
zlittell

Replies: 16
Views: 15824

PostForum: General CCS C Discussion   Posted: Wed Mar 07, 2012 2:13 pm   Subject: using a variable to call a variable without if statements?
i have the code working now. i just wanted to do it a different way that was possible in C for a computer just didn't work with the compiler I suppose.

i wanted to call a variable by basically com ...
  Topic: using a variable to call a variable without if statements?
zlittell

Replies: 16
Views: 15824

PostForum: General CCS C Discussion   Posted: Tue Mar 06, 2012 8:35 pm   Subject: using a variable to call a variable without if statements?
Here is the way the example works normally:


/////////////////////////////////////////////////////////////////////////////
// this is how this example normally works
// it just outputs a fixed k ...
  Topic: using a variable to call a variable without if statements?
zlittell

Replies: 16
Views: 15824

PostForum: General CCS C Discussion   Posted: Tue Mar 06, 2012 7:25 pm   Subject: using a variable to call a variable without if statements?
well i can't post the code without completely rewriting it since this snippet will be used in a commercial product. I have tried to be as descriptive as possible about what I was looking for.

I ha ...
  Topic: using a variable to call a variable without if statements?
zlittell

Replies: 16
Views: 15824

PostForum: General CCS C Discussion   Posted: Tue Mar 06, 2012 6:30 pm   Subject: using a variable to call a variable without if statements?
If feel like you guys are getting to used to babying people.

This isn't my first rodeo, I have wrote a lot of programs and I am asking how you would go about this one particular scenario. If I wer ...
  Topic: using a variable to call a variable without if statements?
zlittell

Replies: 16
Views: 15824

PostForum: General CCS C Discussion   Posted: Tue Mar 06, 2012 4:15 pm   Subject: using a variable to call a variable without if statements?
Well the title is horrible, but I didn't know how to explain it.

Say I have variables called

number
1B1
1B2
2B1
2B2
3B1
3B2
4B1
4B2
5B1
5B2

I want to call one of the B# variables ...
  Topic: Defining variables according to state of input
zlittell

Replies: 4
Views: 5522

PostForum: General CCS C Discussion   Posted: Sat Feb 11, 2012 3:41 am   Subject: Defining variables according to state of input
I guess I was forgetting that it compiled the includes and then loads it onto the chip. In the perfect world inside my head I was thinking i could get it to load each include into the pic and use the ...
  Topic: Defining variables according to state of input
zlittell

Replies: 4
Views: 5522

PostForum: General CCS C Discussion   Posted: Sat Feb 11, 2012 3:31 am   Subject: Defining variables according to state of input
Wow as soon as I started reading your reply I felt extremely stupid haha. Its been a long day of coding and I can't believe I made a mistake like this. I have been looking at the code without thinki ...
  Topic: Defining variables according to state of input
zlittell

Replies: 4
Views: 5522

PostForum: General CCS C Discussion   Posted: Sat Feb 11, 2012 2:03 am   Subject: Defining variables according to state of input
I need to define a variable depending on the state of an input. This has to be done with preprocessor commands though because I will use the value of this variable to include certain header files.
...
  Topic: USB Gamepad with 5 buttons
zlittell

Replies: 2
Views: 8466

PostForum: General CCS C Discussion   Posted: Fri Feb 10, 2012 7:44 pm   Subject: USB Gamepad with 5 buttons
Figured it out - forgot to remove the out descriptor for the RX data that was no longer in the HID descriptor. Also forgot to change number of endpoints from like 2 to 1 I am pretty sure.

It is no ...
  Topic: USB Gamepad with 5 buttons
zlittell

Replies: 2
Views: 8466

PostForum: General CCS C Discussion   Posted: Wed Feb 08, 2012 5:37 pm   Subject: USB Gamepad with 5 buttons
I am trying to program my device to be a 5 button (on/off) gamepad. I cannot get the descriptor correct. I get Error 10 Device Cannot Start. I think my problem is with USB_CONFIG_DESC

#DEFINE __ ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group