play with both CCP (PWM) duty cycle and show it on 2 leds attach to your PIC CCP i/o (PORTC.1, PORTC.2)
modify each PORTB bits status as you wish.
You can also
see the results of AN<1:0> ADC results in the progress bars
monitor the status of those push-buttons attach to PORTA<5:2> inputs (with pull-down resistors)
receive text string
Display your VendorName and ProductName.
So almost everything EASY will be covered in both code.
I tried to stay away of the cryptic-fashioned coding but i couldn't resist to use some macro etc etc. Eh, maybe you'll learn from it? Who knows?
In attachment, you'll find ALL FILES. PBP source code and VB6 source code AND a ready to run USBDemo.exe file. Everything is hardly commented so, read it carefully... it won't hurt!
The original folder was c:\PBP_PROG\USBDemo but it shouldn't cause any problem... well i guess. If so, you know where to send them.
NOTE: If you're going to use LONG variables, you MUST copy the PIC18Xxxxx.BAL file in your source directory as well, unless you'll receive some compilation errors.
Bookmarks