|
|
Basic USB - Using Microchip Stack and C#.Net
|
|
Date: 2006/03/13 16:39
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
This thread discusses the Content article: Basic USB - Using Microchip Stack and C#.Net
So any comments? improvements? Questions?
Mat
|
|
|
|
|
|
Re:Basic USB - Using Microchip Stack and C#.Net
|
|
Date: 2006/03/13 16:41
|
By: cledic
|
Status: User
|
|
|
Karma: 2  
|
|
| Posts: 7 |   | |
|
|
Many Thanks Mat.
|
|
|
|
|
|
Re:Basic USB - Using Microchip Stack and C#.Net
|
|
Date: 2006/03/13 16:42
|
By: alma
|
Status: Visitor
|
|
|
|
|
|
|
|
How much time takes the USB transmission of the command-data packet to PIC and back to PC with help of the function SendReceivePacket? Thank you.
|
|
|
|
|
Re:Basic USB - Using Microchip Stack and C#.Net
|
|
Date: 2006/03/13 16:43
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
|
Hey, Firstly Welcome to the site, I havnt had time to check the speed yet (i will do tonight when I get the time), but it will depend on a few things. One the pic polls the usb service, so wont respond with a regular rate, and also on the size of the packet to be sent in each direction will change the transmission time,as well as any processing you do to the data, to produce a response, so any figures might not be relavent to your application.
|
|
|
|
|
|
PICDEM FS USB Code
|
|
Date: 2006/03/14 13:06
|
By: Fauzan
|
Status: Visitor
|
|
|
|
|
|
|
I just got a PICDEM FS USB board... I was just trying the code in your article...I got a build error
"Executing: "C:MCC18binmcc18.exe" -p=18F4550 /i"C:picusbdemo" "main.c" -fo="C:PICUSB~2main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- C:picusbdemomain.c:38:Error [1027] unable to locate 'p18cxxx.h'
Where can i find this p18cxxx.h?
Is it important, because the board comes with P18F4550?
Thanks Fauzan
|
|
|
|
|
Re:PICDEM FS USB Code
|
|
Date: 2006/03/14 13:18
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
Hey, it most likely you project build options are setup wrong, I'd recommend rechecking them.
There should look like this, (you'll have to change the library path to point to your appropiate directory), Let me know how you get on.
Mat
Post edited by: mat, at: 2006/03/14 13:18
|
|
|
|
|
|
Re:PICDEM FS USB Code
|
|
Date: 2006/03/14 13:37
|
By: apauaie
|
Status: Visitor
|
|
|
|
|
|
|
|
Thanks for your reply....My build option does look like that, only the Library Path is set to C:MCC18lib which is where i install the student version MCC18 Compiler....Any more ideas?
|
|
|
|
|
|
Re:PICDEM FS USB Code
|
|
Date: 2006/03/14 13:39
|
By: Ian
|
Status: Moderator
|
|
|
Karma: 5  
|
|
| Posts: 85 |   | |
|
|
Check you have included the correct linker script and that you have selected the corrected chip in the "select device" menu
|
|
|
|
|
|
Re:PICDEM FS USB Code
|
|
Date: 2006/03/14 13:51
|
By: apauaie
|
Status: Visitor
|
|
|
|
|
|
|
|
I don't think it's the script problem... i tried to build the DEMO2 program included with PICDEM FS USB.. The same problem occurs...Now i'm reinstalling MPLAB IDE ..... see what happens....
|
|
|
|
|
Re:PICDEM FS USB Code
|
|
Date: 2006/03/14 14:02
|
By: Mat
|
Status: Admin
|
|
|
Karma: 7  
|
|
| Posts: 211 |  | |
|
Sounds about right, give a reinstall of MCC18 and MPLAB a go and see what happens. Let us know how it goes . Mat
|
|
|
|