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: 19513
Posted: Mon Mar 19, 2012 3:46 am
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_.
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