USB Pics, ICD2, pic basic pro


Closed Thread
Results 1 to 35 of 35

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    70

    Default well

    I tried again with a 2.2uf. Sadly, no improvement. It continues to act the same on both available test systems. I am using a 20mhz ceramic resonator, is it possible this is a problem?

    the 20mhx resonator has worked fine for other projects and it also runs the blinky led test on the 18f4550...

    thanks! i really am not a lazy question asking *******... ive probably spent 20 hours on this in the last 4 days...

    -robert

    (p.s. i am trying to usb-ize some of my future projects, wanna see past stuff? the electronics are buried in the list. www.robertguyser.com)

  2. #2
    Join Date
    Jan 2007
    Posts
    70

    Default re: capacitor ratings

    oi!

    those stinking cap ratings and markings are madening!

    thanks for the 101!

    aaand, just in case someone who is also wanting to know about the icd2 and 18f4550 runs into this thread; they do work well together, not sure what debug features will work, but it programs the sucker.

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

    Default

    Quote Originally Posted by vacpress View Post
    I am using a 20mhz ceramic resonator, is it possible this is a problem?
    For 20mhz, what do your CONFIG's look like?

    Here's an example from Bruce.
    http://www.picbasic.co.uk/forum/show...85&postcount=4

    DT

  4. #4
    Join Date
    Jan 2007
    Posts
    70

    Default Current progress

    So. I am now attempting to use the code from Mister E's awesome looking USBDemo thread (http://www.picbasic.co.uk/forum/show...hlight=18f4550)

    I cannot get PBP code to compile through microcode studio, i get "Overwriting previous address contents (xxxx)" then it says 'too many errors quitting. I am using mpasm. Grrr

    In the meantime, I have loaded the included .hex file and unfortunately i still get the same results. It is, I suppose that is a good sign... Any idea what it means? I dont have enough experience to troubleshoot this stuff, hence the posts. I gather USB is asking what the device is, and it isnt able to tell it. I know there is also something about enumeration failure, but i do not think this is the same..

    ??

    continued thanks

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

    Default

    mister_e's example was setup for a 4mhz crystal. You'd have to modify it for 20mhz.

    "Overwriting previous address contents (xxxx)" means that the CONFIG lines in the program are conflicting with the config lines in your 18F4550.inc file.

    Which means you still need to answer post #11
    DT

  6. #6
    Join Date
    Jan 2007
    Posts
    70

    Default

    Quote Originally Posted by Darrel Taylor View Post
    mister_e's example was setup for a 4mhz crystal. You'd have to modify it for 20mhz.

    "Overwriting previous address contents (xxxx)" means that the CONFIG lines in the program are conflicting with the config lines in your 18F4550.inc file.

    Which means you still need to answer post #11
    Ahh. I see. Ok. Well. I actually switched to a 4mhz resonator, just to confirm that it is 'near working', i tried it with the 20mhz one and the pc didnt recognize it, so at least the code seems to be attempting a usb connection. I have turned my suspicions on the cable. Ive got the colors right, but when I try to test them to the usb cable pins as they are listed at (http://www.usbman.com/Guides/BelkinM...e_assembly.htm) using a multimeter, they are all different. Interestingly, connecting the USB power lines into the power bus of my pic proto board powers it fine, i tried it with a non-usb led blinky and it powered it, so i still think the cable is OK...

    Grrr. First timing USB is hard!

    i will check the config conflict issues and see if i can get it to compile

  7. #7
    Join Date
    Jan 2007
    Posts
    70

    Default usb troubles continued

    The _Configs. I looked at them and wasnt exactly sure what to do.. it looks to me like i should change the .inc to match the .pbp? The setting are in fact different. I dont know exactly what they all mean, but I see that the PLL settings are different, as well as most of the others.

    Change the .inc to match?

    How do i put the code in abox like in other posts?


    from 18f4550.inc
    --------------------
    LIST
    LIST p = 18F4550, r = dec, w = -311, f = inhx32
    INCLUDE "P18F4550.INC" ; MPASM Header
    __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H
    __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
    __CONFIG _CONFIG3H, _PBADEN_OFF_3H
    __CONFIG _CONFIG4L, _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L
    NOLIST
    endif
    LIST
    EEPROM_START EQU 0F00000h
    BLOCK_SIZE EQU 32

    from USBDemo.pbp
    -----------------------
    asm
    __CONFIG _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
    ; ; ; USB clock source comes from the 96 MHz PLL divided by 2
    ; ; [OSC1/OSC2 Src: /1][96 MHz PLL Src: /2]
    ; No prescale (4 MHz oscillator input drives PLL directly)


    __CONFIG _CONFIG1H, _FOSC_XTPLL_XT_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    ; ; ; Oscillator Switchover mode disabled
    ; ; Fail-Safe Clock Monitor disabled
    ; XT oscillator, PLL enabled, XT used by USB
    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L
    __CONFIG _CONFIG2H, _WDT_OFF_2H
    __CONFIG _CONFIG3H, _MCLRE_ON_3H & _LPT1OSC_OFF_3H & _PBADEN_OFF_3H & _CCP2MX_ON_3H
    __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _ICPRT_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L
    endasm
    DEFINE OSC 48
    Attached Files Attached Files

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

    Default

    Thanks,

    The 18F4550.inc file was correctly setup for 20mhz. So it wasn't that.

    To get mister_e's program to compile... Comment out all the CONFIG lines in the 18F4550.inc file with a semicolon ";". This will let the CONFIG lines in the program take effect.

    Stick with the 4mhz osc. I know his program works, so that might help you work out the cable problem.



    How do i put the code in abox like in other posts?
    At the bottom of each page, there's a box that says Posting Rules (scroll down). In that box is a link ... vB code is On.

    That link explains all the post formatting commands. The one to put it in a box is [code]...[/code]

    HTH,
    DT

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

    Default

    Quote Originally Posted by vacpress View Post
    wanna see past stuff? the electronics are buried in the list. www.robertguyser.com)
    Ha ha, that Vacuum Former you drew up, looks just like my old Vac-U-Form I had when I was a kid.
    Except it doesn't have a handle on the front to pull down the vacum. And it's a little bigger.

    Vac-U-Form by Mattel
    http://www.spookshows.com/toys/vacuform/vacuform.htm
    DT

Similar Threads

  1. AT command using pic basic pro
    By laniboy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th November 2009, 09:39
  2. About timing in pic basic pro
    By din_kt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th October 2007, 03:09
  3. other pic basic pro users in vienna
    By Michael Wakileh in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th July 2007, 15:23
  4. converting assemble to pic basic pro
    By Jhdgkss in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th April 2006, 19:55
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

Members who have read this thread : 0

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