SilverWingz
New Member
Brushing away the cobweb's from this old attempt of mine,i gave it another go.
And finally managed to get the textbook Program running.
It beaved as described:identified itself as a virtual serial port,accepted characters from my hyperterminal and returned the next character.
What i want is:HELP UNDERSTANDING THE CODE so that i can modify it to meet my own needs.
Here is the little modifications i did:
1. changed the xtal to 20M from the default.
2. commented away the usb status led functions.
3. then,in the ProcessIO function,i added my own switch case-
if 'q' is pressed,generate a pwm.
unfortunately,whatever that is being generated on the O/P end is not a pwm signal.
the rest of the usb functionalities work as usual
can any1 familiar with the USB CDC code provided by microchip help me understand it,so i have understanding enough to modify it for myself?
The Project is attatched:
Thanks,
Gigil
PS:i'm working on a PIC18F4550,20MHz, rigged up the ckt on a breadboard to something resembling the PICDEM FSUSB.Just the bare necessities
And finally managed to get the textbook Program running.
It beaved as described:identified itself as a virtual serial port,accepted characters from my hyperterminal and returned the next character.
What i want is:HELP UNDERSTANDING THE CODE so that i can modify it to meet my own needs.
Here is the little modifications i did:
1. changed the xtal to 20M from the default.
2. commented away the usb status led functions.
3. then,in the ProcessIO function,i added my own switch case-
if 'q' is pressed,generate a pwm.
unfortunately,whatever that is being generated on the O/P end is not a pwm signal.
the rest of the usb functionalities work as usual
can any1 familiar with the USB CDC code provided by microchip help me understand it,so i have understanding enough to modify it for myself?
The Project is attatched:
Thanks,
Gigil
PS:i'm working on a PIC18F4550,20MHz, rigged up the ckt on a breadboard to something resembling the PICDEM FSUSB.Just the bare necessities