PDA

View Full Version : did anyone got J50 to work ?



viewgsm
- 27th September 2007, 07:45
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

mister_e
- 27th September 2007, 13:35
can you post your whole code(including configuration fuses), schematic and tell which device programmer you're using?

viewgsm
- 27th September 2007, 16:13
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

viewgsm
- 27th September 2007, 16:47
i think I missed to connect VUSB to VDD , so I did , and still no luck !

viewgsm
- 27th September 2007, 18:01
Ok,

Now I know my hardware is OK !

it works with the mouse demo from Microchip !

so whats wrong with PICBASIC ?!

Thank you

mister_e
- 27th September 2007, 23:17
I would suggest you to try and get some inspiration with my USBDemo.
http://www.picbasic.co.uk/forum/showthread.php?t=5418&highlight=usbdemo

viewgsm
- 27th September 2007, 23:52
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 !