Sonsivri

Electronics => Pic C Languages => Topic started by: Parad1gm on April 21, 2020, 07:21:17 19:21



Title: PIC 18F USB Development Recommendations
Post by: Parad1gm on April 21, 2020, 07:21:17 19:21
I have a few PIC 18F4450 I would like to use for usb development but have 0 skills when it comes to USB development. Anyone have any recommendations on USB stack or USB Tutorials / Books?



Title: Re: PIC 18F USB Development Recommendations
Post by: Manuel on April 21, 2020, 07:56:42 19:56
Can be helpful I think:

https://github.com/signal11/m-stack

take care,
X!


Title: Re: PIC 18F USB Development Recommendations
Post by: Sideshow Bob on April 21, 2020, 08:14:15 20:14
You also have the tool hidmakerfs. My give you some help in the USB process. Take a look here
http://www.sonsivri.to/forum/index.php?topic=925.0;topicseen


Title: Re: PIC 18F USB Development Recommendations
Post by: towlerg on April 22, 2020, 02:04:10 14:04
Of course there is also the bible, USB Complete by Jan Axelson. He has a very informative forum.


Title: Re: PIC 18F USB Development Recommendations
Post by: HackAndCrack on April 22, 2020, 02:45:49 14:45
easyUSBHIDNetClass.dll can be used with mikroC PRO PIC code easily.

Libstock.com has example for it.


Title: Re: PIC 18F USB Development Recommendations
Post by: folkeu on April 23, 2020, 09:46:22 09:46
Hi,
This can help you too but it's in french :
https://www.roboticus.org/electronique/usb/9-carte-dinterface-sur-port-usb-protocole-hid.html
The author's information and sources are accurate. What it offers basically works to get you started.
It uses a non-free third-party DLL to communicate with the PIC. There is another solution without DLL with the JhidDeviceController component of the JVCL library for software development with Delphi (Embarcadero). it has been converted for use under Lazarus (https://github.com/LongDirtyAnimAlf/FPC-USB-HID).
While searching for the Pascal language, I saw that there was the same for C.
Here is my contribution to help you get started.
If you modify the HID descriptor in the example, you may need "HidMaker" (see in the forum  :) ) to make one.
@+
Folkeu



Title: Re: PIC 18F USB Development Recommendations
Post by: especialista on May 02, 2020, 05:46:53 17:46
If you plan to connect this USB device to a Raspberry PI or any Linux Based System, take a look at this files:

https://github.com/prof7bit/HIDAPI.pas

They are Free Pascal bindings for libhidapi on Linux and work flawlessly (at least, to me!!)


Title: Re: PIC 18F USB Development Recommendations
Post by: pickit2 on May 02, 2020, 06:49:42 18:49
there is a good sample in Proteus >> PICDEM FS USB


Title: Re: PIC 18F USB Development Recommendations
Post by: FTL on May 02, 2020, 11:14:41 23:14
A small note for Towlerg - Jan Axelson is a she, not a he, although it is probably politically incorrect to point that out these days.


Title: Re: PIC 18F USB Development Recommendations
Post by: towlerg on May 03, 2020, 11:16:52 11:16
Wow I had no idea. Is it wrong that my first reaction was that she must be even clever than I thought?


Title: Re: PIC 18F USB Development Recommendations
Post by: Parad1gm on May 12, 2020, 01:16:07 13:16
Thankyou. I'm starting with USB complete so I can get an idea what i'm doing when creating the endpoints etc. I will come back to this thread after I've gained some knowledge and fustrated myself to the point of asking for help again.


Title: Re: PIC 18F USB Development Recommendations
Post by: avrlover on May 12, 2020, 01:47:04 13:47
USB  Is complex protocol it is not simple as using serial ports But if you want to use PIC18F4550 i your projects u can read book PIC Microcontroller Projects in C: Basic to Advanced WHITH contains good chapter on USB using PIC18F4550 book link ,,http://docentes.uni.edu.ni/fec/Alejandro.Mendez/Advanced%20PIC%20Microcontroller%20Projects%20in%20C.pdf do not  start USB complete first as it is very difficult to grasp first time use another book from here http://silanus.fr/sin/formationISN/Robotique/Logiciels/CCS/Data%20Sheets/Development%20Kit%20for%20the%20USB%20Exercise%20Book.pdf which uses PIC CCS  complier very easy to generate code for pic18f4550 for usb  also from this site you can learn allot from this  site  https://www.studentcompanion.co.za/usb-communication-device-class-with-pic-microcontroller-mikroc/  which PIC18F4550 USB HID AND  different projects


Title: Re: PIC 18F USB Development Recommendations
Post by: comlekciler on May 12, 2020, 03:54:41 15:54
I don't have this PDF, but maybe if you can find it, it might work.

http://www.ebookdownl.com/book.php?i=11&g=ebook&b=123140&n=Advanced+PIC+Microcontroller+Projects+in+C+From+USB+to+ZIGBEE+with+the+PIC+18F+Series


Title: Re: PIC 18F USB Development Recommendations
Post by: Parad1gm on May 12, 2020, 10:46:06 22:46
I don't have this PDF, but maybe if you can find it, it might work.

http://www.ebookdownl.com/book.php?i=11&g=ebook&b=123140&n=Advanced+PIC+Microcontroller+Projects+in+C+From+USB+to+ZIGBEE+with+the+PIC+18F+Series

Stumbled across this: