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 Interfacing with PIC 18F452

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
[email protected]



Joined: 07 Feb 2012
Posts: 19
Location: pakistan

View user's profile Send private message Send e-mail Yahoo Messenger

USB Interfacing with PIC 18F452
PostPosted: Mon Mar 19, 2012 3:01 am     Reply with quote

I have read many forum i found that there is no compatibility of USB with PIC 18F452
but when i see example program there is some awesome thing or this my mis_interpretation that PIC 18f452 support USB protocol but there is no D+ & D- PIN in PIC 18F452
Code:

/////////////////////////////////////////////////////////////////////////
////                                                                 ////
////                        ex_usb_serial.c                          ////
////                                                                 ////
#if __USB_PIC_PERIF__
 #include <18F4550.h>
 #use delay(clock=48000000)
#else //use the National USBN960x peripheral
 #include <18F452.h>
 #use delay(clock=20000000)
#endif   //endif check to see which peripheral to use



+++++++++++++++++++++++++
Code mostly removed.

Reason: Forum Rule #10
10. Don't post the CCS example code or drivers

- Forum Moderator
+++++++++++++++++++++++++
Ttelmah



Joined: 11 Mar 2010
Posts: 19497

View user's profile Send private message

PostPosted: Mon Mar 19, 2012 3:46 am     Reply with quote

Note the line:
"//use the National USBN960x peripheral"

This is the 452, talking to USB, _with a separate interface chip_.

Also, remove the code you have posted, since you are in breach of the copyright:

"No other use, reproduction or distribution is permitted without written permission."

You can simply refer _to _ the library by name here, since everybody already has the compiler files if they own the compiler. Posting the files though is _illegal_.

Best Wishes
[email protected]



Joined: 07 Feb 2012
Posts: 19
Location: pakistan

View user's profile Send private message Send e-mail Yahoo Messenger

Thanks
PostPosted: Mon Mar 19, 2012 4:25 am     Reply with quote

Thanks for Correction
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