PICmicro & dsPIC >> Source Share for PICmicro & dsPIC

fordp

****

Reged: Feb 05 2005
Posts: 21
Loc: Kent, England
CDC USB Serial Demo on 18F4550 port to Hitech
      Sat Feb 19 2005 11:08 AM Attachment (3771 downloads)

Please find attached a first Alpha of my port of the Microchip CDC Demo.

Unzip into the root of C: (Has directories of course).

I have no hardware to try it on at this time!

So it does not work for sure

It will be a good starting point for anybodys efforts.

Post feedback into this thread.

I have all the compile problems fixed now so there are no real differences between the PICC18 and C18 builds.

The sizes are within 1% and they both use code very faithful to the original source. The text had to be heavly modified to build but the code should be the same.

The problem with the first version I posted was simply the use of the far qualifier is different in Hitech to Microchip so the far should not be used on PICC18. This is all handled with a simple macro.

I have also implemented Garth's suggestion to arrange the Enpoint structures into an array. Great idea and much simpler than the orginal Microchip version.

I still have no hardware yet so it will not work. I have the hardware on order now so it's only a matter of time before this baby hums.

I will be passing it to Microchip to base their future app notes on. I will post any fixes I find here.

Note the Serial port and Temperature bits are very rough in the Hitech build. They are only for the demo. The USB bit should be OK.

Enjoy, and post success and failure here, and no naughty trying to get me to write your application code for you

--------------------
================================================
FordP, from the Garden of England

Edited by lucky (Tue Feb 22 2005 08:39 PM)

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* CDC USB Serial Demo on 18F4550 port to Hitech fordp Sat Feb 19 2005 11:08 AM
. * * Ported mouse code to 18F87J50; flattened directories John Payson   Wed Apr 02 2008 05:30 PM
. * * Re: Ported mouse code to 18F87J50; flattened directories Sharon   Tue Aug 05 2008 03:02 PM
. * * Re: Ported mouse code to 18F87J50; flattened directories Gordon   Thu Dec 11 2008 12:30 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech aman   Thu Dec 13 2007 02:42 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Neil_K   Tue Nov 20 2007 09:31 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Mon Jan 21 2008 04:02 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Neil_K   Mon Jan 21 2008 08:12 PM
. * * Microchip USBCombo software setup for PIC18F4550 Bru   Wed Jul 06 2005 08:12 AM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech Sammy   Fri Mar 18 2005 11:27 PM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech RGB LED   Sun Mar 09 2008 12:04 AM
. * * RGB's link in need of repair Dan HenryModerator   Sun Mar 09 2008 08:09 PM
. * * Re: RGB's link in need of repair jtemplesModerator   Mon Mar 17 2008 05:24 PM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech Andy_123   Sun Apr 03 2005 01:21 PM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech diegos   Tue Apr 05 2005 10:21 AM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech Andy_123   Tue Apr 05 2005 11:42 AM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech diegos   Tue Apr 05 2005 01:54 PM
. * * Re: WORKING! CDC USB Serial Demo on 18F4550 port to Hitech Andy_123   Tue Apr 05 2005 05:31 PM
. * * Problems with CDC and PIC18F2455 malvarezdel   Tue Jun 21 2005 10:41 AM
. * * Re: Problems with CDC and PIC18F2455 malvarezdel   Fri Jul 15 2005 09:34 AM
. * * Re: Problems with CDC and PIC18F2455 Ryan   Sun Jul 17 2005 06:29 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Sat Mar 12 2005 04:50 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech kiwime   Wed Aug 08 2007 07:15 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Fri Aug 10 2007 04:22 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech AlanCNC   Wed Nov 09 2005 10:13 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Fri Nov 11 2005 07:28 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech AlanCNC   Mon Nov 14 2005 07:29 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Tue Nov 15 2005 06:34 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech AaronS   Thu Mar 16 2006 07:53 PM
. * * Re: HID USB Mouse Demo on 18F4550 port to Hitech Eisemann   Mon Apr 03 2006 09:12 AM
. * * Re: HID USB Mouse Demo on 18F4550 port to Hitech AaronS   Sun May 28 2006 10:29 PM
. * * Re: HID USB Mouse Demo on 18F4550 port to Hitech kiwime   Wed May 30 2007 08:23 PM
. * * Re: HID USB Mouse Demo on 18F4550 port to Hitech fordp   Wed Jun 27 2007 06:41 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Wed Mar 29 2006 05:17 PM
. * * Workaround for silicon issue 10 pball   Wed Aug 17 2005 01:00 PM
. * * Problem with CDC USB code when you call SPI routine ????? Minikisscool   Tue Aug 30 2005 02:32 AM
. * * Re: Problem with CDC USB code when you call SPI routine ????? mikerjModerator   Wed Aug 31 2005 12:48 PM
. * * Re: Problem with CDC USB code when you call SPI routine ????? samuel chen   Fri Sep 28 2007 10:56 AM
. * * Coding error in Microchip's USB firmware pball   Tue Aug 16 2005 10:06 AM
. * * Re: Coding error in Microchip's USB firmware luckyAdministrator   Tue Aug 16 2005 06:29 PM
. * * Re: Coding error in Microchip's USB firmware pball   Wed Aug 17 2005 04:01 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Sammy   Mon Mar 07 2005 05:33 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Kale   Wed Mar 02 2005 12:29 AM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Kale   Wed Mar 02 2005 10:30 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Kale   Wed Mar 02 2005 11:11 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Wed Mar 02 2005 01:45 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech TAD   Sun Feb 27 2005 02:34 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech Sammy   Mon Mar 07 2005 05:45 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech fordp   Tue Mar 08 2005 03:35 PM
. * * Re: CDC USB Serial Demo on 18F4550 port to Hitech TAD   Tue Mar 08 2005 08:43 AM

Extra information
1 registered and 9 anonymous users are browsing this forum.

Moderator:  jtemples, Dan Henry, Andrew L, mikerj 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating: ****
Thread views: 82709

Rate this thread

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5