pantoine
New Member
- Total Posts : 14
- Reward points : 0
- Joined: 2007/04/18 07:37:44
- Location: 0
- Status: offline
RE: PIC USB related web sites
2007/08/13 18:36:08
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/07 19:51:21
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/07 20:02:26
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/09 04:55:01
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/09 05:15:32
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/13 05:41:55
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/16 00:58:17
(permalink)
|
Elisandra
Starting Member
- Total Posts : 83
- Reward points : 0
- Joined: 2007/08/10 12:55:45
- Location: Brazil
- Status: offline
RE: PIC USB related web sites
2007/09/17 09:59:32
(permalink)
ORIGINAL: xiaofan yts has posted a lot of useful examples. I will try to collect the examples here: ... Interrupt driven mouse_demo http://forum.microchip.com/tm.aspx?m=134529 ... Hi! I would like to see this interrupt driven HID, but the link is broken... I'm using Microchip's framework (poolled) but I'm having some trouble when I enable interrupts. I think it might help to see diferent implementations. In the worst case I could learn a bit more about USB  Maybe yts could post the attachement again, or someone coud send it me by mail elisandrapl AT gmail.com Thanks!! Elisandra
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/20 05:33:48
(permalink)
I happened to have the file. I will upload the code. I have not tested it yet. Next time if you need the file you can always send an email to yts and he is always very helpful.
post edited by xiaofan - 2007/09/20 05:40:21
|
mzoran
Super Member
- Total Posts : 683
- Reward points : 0
- Status: offline
RE: PIC USB related web sites
2007/09/21 13:51:25
(permalink)
The open source USB stack appears to be vaperware. Even though it has over 2,000 downloads the tar files only consists of two source files each about 50 lines long. C:\pic18fusb>dir *.c /S Volume in drive C has no label. Volume Serial Number is C467-3F8B Directory of C:\pic18fusb\src 06/09/2006 08:48 PM 2,374 main.c 05/23/2006 11:39 AM 1,879 start.c 2 File(s) 4,253 bytes Total Files Listed: 2 File(s) 4,253 bytes 0 Dir(s) 262,993,285,120 bytes free
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2007/09/21 16:07:10
(permalink)
No it is not a vaporware. The source is mainly in the "h" directroy. I am running a Linux session now. So the following prompt is from Linux. mcuee@ubuntu:~/Desktop/pic18fusb/src$ ls CVS h main.c start.c mcuee@ubuntu:~/Desktop/pic18fusb/src$ cd h mcuee@ubuntu:~/Desktop/pic18fusb/src/h$ ls -la total 112 drwxr-xr-x 3 mcuee mcuee 4096 2006-06-10 10:16 . drwxr-xr-x 4 mcuee mcuee 4096 2006-06-10 10:13 .. drwxr-xr-x 2 mcuee mcuee 4096 2006-06-10 10:13 CVS -rw-r--r-- 1 mcuee mcuee 3266 2006-05-06 04:46 descriptors.h -rw-r--r-- 1 mcuee mcuee 5049 2006-06-09 06:22 interrupts.h -rw-r--r-- 1 mcuee mcuee 1127 2006-06-10 11:48 msd_data.h -rw-r--r-- 1 mcuee mcuee 1925 2006-05-06 04:46 msd_datatypes.h -rw-r--r-- 1 mcuee mcuee 9562 2006-06-10 10:16 msd.h -rw-r--r-- 1 mcuee mcuee 9769 2006-06-10 11:52 msd.h~ -rw-r--r-- 1 mcuee mcuee 30161 2006-06-09 06:22 p18f4550.h -rw-r--r-- 1 mcuee mcuee 2158 2006-05-06 04:46 system.h -rw-r--r-- 1 mcuee mcuee 1409 2006-05-06 04:46 typedefs.h -rw-r--r-- 1 mcuee mcuee 4862 2006-05-24 02:39 usbcntrl.h -rw-r--r-- 1 mcuee mcuee 4413 2006-06-10 11:48 usb.h
|
Olin Lathrop
Super Member
- Total Posts : 7463
- Reward points : 0
- Joined: 2004/02/26 17:59:01
- Location: Littleton Massachusetts
- Status: offline
RE: PIC USB related web sites
2007/09/22 17:11:02
(permalink)
I just want to add to this thread that our open source USB framework is available, see http://www.embedinc.com/pic/usb.htm. It seems to be one of the few out there that uses ping pong buffering. In fact it uses triple buffering, with two buffers being owned by the PIC hardware and the other one available to the software to drain or fill. The USB framework comes with host library and example program, including source code.
|
FunnyNYPD
Super Member
- Total Posts : 1553
- Reward points : 0
- Joined: 2007/09/28 20:06:59
- Location: USA & Canada
- Status: offline
RE: PIC USB related web sites
2007/09/29 11:49:20
(permalink)
oh, man, too many post. HOw many time it will take just go over all these. You guys are killing me. Funny NYPD
|
Marctwo
Super Member
- Total Posts : 346
- Reward points : 0
- Joined: 2007/11/16 07:58:32
- Status: offline
RE: PIC USB related web sites
2007/11/28 19:04:09
(permalink)
Just thought I'd bump this thread with the suggestion that maybe it should be sticky.
|
Mitchell
Starting Member
- Total Posts : 26
- Reward points : 0
- Joined: 2008/01/14 18:09:03
- Location: MI USA
- Status: offline
RE: PIC USB related web sites
2008/01/21 14:31:08
(permalink)
JIM - Nice work on the C# project. I have been looking all over for documentation on the API - Is there any? I have the PDF that covers the firmware (PIC) side, but can find nothing about the DLL exported functions (PC side).
|
Neiwiertz
Super Member
- Total Posts : 2131
- Reward points : 0
- Joined: 2004/09/01 02:58:52
- Status: offline
RE: PIC USB related web sites
2008/01/21 14:49:12
(permalink)
mpusbapi.dll: [DllImport("MPUSBAPI.dll")] extern "C" HANDLE MPUSBOpen(DWORD instance, // Input PCHAR pVID_PID, // Input PCHAR pEP, // Input DWORD dwDir, // Input DWORD dwReserved);// Input [DllImport("MPUSBAPI.dll")] extern "C" BOOL MPUSBClose(HANDLE handle); //Input [DllImport("MPUSBAPI.dll")] extern "C" DWORD MPUSBRead(HANDLE handle, // Input PVOID pData, // Output DWORD dwLen, // Input PDWORD pLength, // Output DWORD dwMilliseconds);// Input [DllImport("MPUSBAPI.dll")] extern "C" DWORD MPUSBWrite(HANDLE handle, // Input PVOID pData, // Output DWORD dwLen, // Input PDWORD pLength, // Output DWORD dwMilliseconds);// Input [DllImport("MPUSBAPI.dll")] extern "C" DWORD MPUSBReadInt(HANDLE handle, // Input PVOID pData, // Output DWORD dwLen, // Input PDWORD pLength, // Output DWORD dwMilliseconds);// Input [DllImport("MPUSBAPI.dll")] extern "C" DWORD MPUSBGetDLLVersion(void); [DllImport("MPUSBAPI.dll")] extern "C" DWORD MPUSBGetDeviceCount(PCHAR pVID_PID); http://members.ee.net/brey/boots.txt http://members.ee.net/brey/tech.htm http://www.comvcon.com/Using%20MPUSBAPI%20CPP.html http://www.comvcon.com/PICUSBDLLDemoFirmware.html http://msdn2.microsoft.com/nl-nl/express/aa700755(en-us).aspx
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2008/03/15 08:07:33
(permalink)
Add some more links to USB Composite Device examples and Ping Pong.
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2008/03/22 04:18:39
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2008/03/22 04:35:25
(permalink)
|
xiaofan
Super Member
- Total Posts : 6247
- Reward points : 0
- Joined: 2005/04/14 07:05:25
- Location: Singapore
- Status: offline
RE: PIC USB related web sites
2008/05/03 22:32:07
(permalink)
|