News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Old Velleman K8055 board

Started by RGV250, May 16, 2022, 08:09 AM

Previous topic - Next topic

RGV250

Hi,
I have been following this thread https://protoncompiler.com/index.php/topic,1005.msg7842/topicseen.html#msg7842  and thought I would dig out the old Velleman K8055 USB experimenter board that I could never get to work with 18F2550.
Reading up it looks like I have just got to change the xtal and caps.
One question I have regarding the board is that it has 4 addresses depending on the state of C1 / C2 on power up. I figure this must be something in the descriptor that is changed but cannot figure out what.

Regards,
Bob

top204

The only thing I can think of that would be classed as an alterable address in USB would be the PID. The VID is fixed to the Vendor, but the PID is for the device itself, unless they are classing the serial number as an address.

RGV250

Thanks Les, I used USBdeview and the productID does change depending on the jumpers.

Can I do something like this after the .inc or will I have to put the changes inside the .inc file?
    Include "CDC_Descriptor.inc"                    ' Include the CDC descriptors and the USB routines
    If PORTC.1 = 1 Then cPID = 0x000A
    If PORTC.2 = 1 Then cPID = 0x000B     
    If PORTC.1 = 1 And PORTC.2 = 1 Then cPID = 0x000C
    If PORTC.0 = 1 And PORTC.2 = 0 Then cPID = 0x000D

Regards,
Bob