did anyone got J50 to work ?


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2007
    Posts
    15

    Exclamation did anyone got J50 to work ?

    Hi,

    Did anybody got the new family J50 to work with pbp2.5 ?
    I can't get it to work !
    1st I had problem to fix the clock !
    I had to set the OSCTUNE.6=1 to enable the PLL ! and get the 48Mhz !
    otherwise it works with 4Mhz or something else crazy !
    but no usb connection yet !

    Thank you

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    can you post your whole code(including configuration fuses), schematic and tell which device programmer you're using?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jun 2007
    Posts
    15

    Default

    PBP INC. file

    CONFIG XINST = OFF
    CONFIG PLLDIV = 1 ' I tested this value with 4Mhz and PLLDIV 5 with 20Mhz
    CONFIG WDTPS = 512
    CONFIG CPUDIV = OSC1
    CONFIG FOSC = HSPLL


    '''''''''''''''

    the PICBASIC CODE :

    DEFINE OSC 48
    OSCTUNE.6=1
    UCON.3=1


    USBINIT

    MAIN:
    USBSERVICE
    usbin 3,i,x,m2
    GOTO MAIN


    '''''''''''''''''''''''''''''''''''''''''''

    just simple code to test USB , no luck !

    I use ICD2 programmer , and I get the PIC to work and blink some LEDs
    the main problem is the USB
    Attached Images Attached Images  

  4. #4
    Join Date
    Jun 2007
    Posts
    15

    Default

    i think I missed to connect VUSB to VDD , so I did , and still no luck !

  5. #5
    Join Date
    Jun 2007
    Posts
    15

    Default works with C18

    Ok,

    Now I know my hardware is OK !

    it works with the mouse demo from Microchip !

    so whats wrong with PICBASIC ?!

    Thank you

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    I would suggest you to try and get some inspiration with my USBDemo.
    http://www.picbasic.co.uk/forum/show...hlight=usbdemo
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Jun 2007
    Posts
    15

    Default

    I called the support today !

    Ok,

    1st : the clock is not getting set right form the config. inside the INC file !
    the PLL is not going on unless you turn it on manualy from your program !

    2nd : I don't get USB connection at all !

    so I think there is some bug

    the support they don't have a board with this family to test and they will try to test it
    tmw.

    so I think that adding the support of this family to V2.50 , there is a bug in the PORTING !


    still didn't find anyone who got it to work !

Similar Threads

  1. PortA Doesn't Work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 11
    Last Post: - 8th September 2015, 18:41
  2. pls help me verify my code not work, why???
    By chai98a in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th January 2010, 09:19
  3. Can't get POT work on P12f675 - Newbie
    By berslan in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th March 2008, 21:22
  4. How to set ICD-2 clone to work with PBP?
    By G-R-C in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th October 2006, 02:50
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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