CDC Communications 18F14K50 Low Pin Count Development Board


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    24

    Default CDC Communications 18F14K50 Low Pin Count Development Board

    Hi all,
    Has anybody had this working ? I have the low pin count development board and have had no luck so far. The hardware is working OK, as I have had a pre compiled example from the development kit working. When I try to connect with the CDC example from the PBP USB18 folder I get the

    I'm assuming that you still need to add the necessary con-fig fuses ? I have used:

    ; config1L : No CPU clock divide : USB clock = divide by 2, use 12 MHz xtal = 6MHz = Lo Speed USB
    __CONFIG _CONFIG1L, _CPUDIV_NOCLKDIV_1L & _USBDIV_ON_1L
    ; config1H : Int RC CLK out on OSC2 : PLL under Software control : Primary CLK ENABLED : Failsafe CLK monitor DISABLED : OSC switch over DISABLED
    __CONFIG _CONFIG1H, _FOSC_HS_1H & _PLLEN_OFF_1H & _PCLKEN_OFF_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    ; config2L : PWRT DISABLED : Brown-Out Reset DISABLED :
    __CONFIG _CONFIG2L, _PWRTEN_OFF_2L & _BOREN_OFF_2L
    ; config2H : WDT Disabled :
    __CONFIG _CONFIG2H, _WDTEN_OFF_2H ; & _WDTPS_512_2H
    ; config3H : MCLR Disabled : Int OSC starts clocking CPU from power up
    __CONFIG _CONFIG3H, _MCLRE_OFF_3H & _HFOFST_ON_3H
    ; config4L : Stack full/underflow will cause Reset : LVP off : 512W boot block size : Disabled (Legacy mode)
    __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _BBSIZ_OFF_4L & _XINST_OFF_4L
    ; config5L : Block 0 not code-protected : Block 1 not code-protected
    __CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L
    ; config 5H : Boot block not code-protected : Data EEPROM not write-protected
    __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    ; config 6L : Block 0 not write-protected : Block 1 not write-protected
    __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L
    ; config 6H : Boot block not write-protected : Configuration registers not write-protected : Data EEPROM not write-protected
    __CONFIG _CONFIG6H, _WRTB_OFF_6H & _WRTC_ON_6H & _WRTD_OFF_6H
    ; config 7L : Block 0 not protected from table reads executed in other blocks : Block 1 not protected from table reads executed in other blocks
    __CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L
    ; config 7H : Boot block not protected from table reads executed in other blocks
    __CONFIG _CONFIG7H, _EBTRB_OFF_7H
    as I was intending to run run low speed. Not using these fuse settings results in compile warnings.

    I have read the thread:
    and in particular Darrel's post as I am using PBP 2.6.

    Any feed back or pointers appreciated.
    Cheers
    Chris

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    In the cdc_desc.bas file, you should see these two lines.
    Code:
    #define UCFG_VAL	USB_PULLUP_ENABLE|USB_INTERNAL_TRANSCEIVER|USB_FULL_SPEED|USB_PING_PONG__NO_PING_PONG
    ;#define UCFG_VAL	USB_PULLUP_ENABLE|USB_INTERNAL_TRANSCEIVER|USB_LOW_SPEED|USB_PING_PONG__NO_PING_PONG
    Comment the first one with FULL_SPEED, and uncomment the second one with LOW_SPEED.
    Use a semicolon for commenting ";".
    DT

  3. #3
    Join Date
    Jan 2009
    Posts
    24

    Default

    Thanks so much Darrel, much appreciated !

  4. #4
    Join Date
    Jan 2009
    Posts
    24

    Default Unknow Device / Device not recognized

    Well the problems continue after all .... but it's quite random. If i plug into a USB port I haven't plugged the micro into before I don't have the problem straight away, but once I get the error, I keep getting it. Also, it seems more reliable connecting to a USB hub than direct into my notebook. There is only 20mA being drawn. I have tried connecting directly to another notebook with similar results

    So, the question is.... Is this a windows problem or micro / code problem?

    Any thoughts folks?

    Cheers, Chris

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts