pasini
Joined: 12 Dec 2005 Posts: 50 Location: Curitiba - Brazil
|
USB simple app PIC18F2550/4550 |
Posted: Tue Dec 13, 2005 12:56 pm |
|
|
I have a simple prototype similar to the USB PIC DEMO board, with a PIC18F2550/5V. I want to simply write/read a byte from the USB interface, and use HiperTerminal (or a serial-like COMM port in a Windows XP application). The borad has a 2 LEDs and a potentiometer that are working fine, and I included the 2 resistors in PIN_B2 to detect attachment of the device to the computer.
I want to use the bootloader to update firmware. Do I need to include the following code ?
#build(reset=0x1, interrupt=0x5) // Necessary for Bootloader
#org 0x0800,0x0FFF // Necessary for Bootloader
What files should I add and modify ( pic18_usb.h, usb.h etc) Should I modify them according to my app ?
I am using MPLAB 7.20 + CCS 3.23
Thanks in advance,
Pasini |
|