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

Replies: 7
Views: 13856

PostForum: General CCS C Discussion   Posted: Mon May 14, 2012 12:14 pm   Subject: Using serial numbers with USB
zlittell, maybe you've already figured this out, if not, try compiling the following, I don't get any errors using PCH v4.130

#include <18F66J50.h>
#include <math.h>

#fuses NOWDT,WD ...
  Topic: Using serial numbers with USB
RTdch

Replies: 7
Views: 13856

PostForum: General CCS C Discussion   Posted: Mon Mar 19, 2012 1:38 pm   Subject: Using serial numbers with USB
I'm not sure if this is what you're looking for, I save my S# in an EEPROM and on startup copy that into the USB_STRING_DESC as follows:


char iSerialNumber[6];
DevSerialNumber = make16 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group