CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB simple app PIC18F2550/4550

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pasini



Joined: 12 Dec 2005
Posts: 50
Location: Curitiba - Brazil

View user's profile Send private message Send e-mail

USB simple app PIC18F2550/4550
PostPosted: Tue Dec 13, 2005 12:56 pm     Reply with quote

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
pasini



Joined: 12 Dec 2005
Posts: 50
Location: Curitiba - Brazil

View user's profile Send private message Send e-mail

Pasini
PostPosted: Wed Dec 14, 2005 4:37 am     Reply with quote

How does my board inform Windows which device driver it must use to receive data from the USB interface ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group