PICcoder.co.uk Forum  


::post new topic::
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Basic USB - Using Microchip Stack and C#.Net
Date: 2006/03/13 16:39 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
This thread discusses the Content article: Basic USB - Using Microchip Stack and C#.Net

So any comments? improvements? Questions?

Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/03/13 16:41 By: cledic Status: User  
Karma: 2  
Posts: 7
graphgraph
Many Thanks Mat.
reply | quote

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.
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/03/13 16:43 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
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.
reply | quote

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
reply | quote

Re:PICDEM FS USB Code
Date: 2006/03/14 13:18 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
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
reply | quote

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?
reply | quote

Re:PICDEM FS USB Code
Date: 2006/03/14 13:39 By: Ian Status: Moderator  
Karma: 5  
Posts: 85
graphgraph
Check you have included the correct linker script and that you have selected the corrected chip in the "select device" menu
reply | quote

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....
reply | quote

Re:PICDEM FS USB Code
Date: 2006/03/14 14:02 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Sounds about right, give a reinstall of MCC18 and MPLAB a go and see what happens. Let us know how it goes . Mat
reply | quote

Re:PICDEM FS USB Code
Date: 2006/03/14 14:20 By: apauaie Status: Visitor  
 
Solved the problem...I need to add another path to the include path... My include path now looks like this C:MCC18h;C:picusbdemo.....Found this in http://ww1.microchip.com/downloads/en/devicedoc/mplab_c18_getting_started_51295f.pdf
By the way, how can i put pictures onto the forum..Like Mat did....Thanks
reply | quote

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
::post new topic::