The 18f2550 USB connection
SENDING A BYTE TO PORTB (via a VB 6.0 app.) <Assembler>
LEDS on PORTB via 330 ohms resistor
The 18f2550 USB conecction
This work is based on the Assembler version of Jan Axelson's genhid firmware for PIC18F4455 based
on the Lab 2 firmware (Olin College) and macros created by Bradley A. Minch 9/2004 to facilitate
reasonably structured programming in PIC assembler. These macros were inspired and informed both
by Karl Lunt's PIC macros, described in an atricle in the July 1999 Nuts & Volts magazine, and by
Myke Predko's structured programming macros, which are described on pp. 542-546 of the second
edition of Programming and Customizing PICmicro Microcontrollers. These macros provide facilities
for for-next loops, repeat-until loops, select satatements, and if statements.
bmich (Brad Minch login in this forum) started an excellent thread: http://forum.microchip.com/tm.aspx?m=89669&mpage=1&key
where he stated "At any rate, the firmware is available if anyone is interested in it"
Thanks to his work (Brad Minch´s), many people (including me) have used it in order to develope
different applications with USB PICs.
The (very simple) visual basic app. is based on mecanique´s EasyHID USBWizard found at: http://www.mecanique.co.uk/products/usb/easyhid.html
As stated in their site "EasyHID Wizard is completely free"
However the VB6.0 app. included only needs the mcHID.dll in order to be able to run the app. I´m uploading a zip file with the necessary tools for the 18F2550 dev
ice (20MHz xtal, full speed,
basic schematic>), in order to be later studied and modified.
The simple VB 6.0 program provides a way to send a number (0 to 255) to the device, and it is
returned to the HOST (through the PIC’s firmware) which in course it is shown on a list box.
The documents (The 18f2550 USB connection # xx) will be regulary posted with future task to be