can you post your whole code(including configuration fuses), schematic and tell which device programmer you're using?
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.
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
i think I missed to connect VUSB to VDD , so I did , and still no luck !
Ok,
Now I know my hardware is OK !
it works with the mouse demo from Microchip !
so whats wrong with PICBASIC ?!
Thank you
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.
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 !
Bookmarks