View previous topic :: View next topic |
Author |
Message |
jnassarm
Joined: 04 Jun 2011 Posts: 3
|
USB COMMUNICATION WITH PIC18F85J50 |
Posted: Sat Jun 04, 2011 9:05 am |
|
|
I'm beginning to study USB communication with PIC18F85J50. I found a basic code on the web, but it shows me errors when I compile it because it doesn't not recognize the files usb.h which is called in the file pic18_usb.h and in the file usb_desc_scope.h which is in charge of numerate. Where can I get the file usb.h ?? The code starts with:
Code: |
#include <18F85J50.h>
#fuses NOWDT,PLL1,STVREN,NOXINST,NODEBUG,NOCPUDIV,PROTECT,INTRC,FCMEN,NOIESO,NOEASHFT,MCU,NOWAIT
#include <pic18_usb.h>
#include "usb_desc_scope.h"
#include <usb.c> |
_________________ JOE NASSAR |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19367
|
|
Posted: Sat Jun 04, 2011 2:27 pm |
|
|
The files come with the compiler.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
jnassarm
Joined: 04 Jun 2011 Posts: 3
|
|
Posted: Sun Jun 05, 2011 10:47 am |
|
|
Thanks for your response. My compiler shows error because these files are missing. I am working with a demo of the CCS C COMPILER . Does not this demo include these files?? _________________ JOE NASSAR |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19367
|
|
Posted: Sun Jun 05, 2011 2:29 pm |
|
|
Correct.
Only 15% of the drivers and examples come with the demo. None of the more complex ones.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|