PIC_Hi-Tech_C_PIC18F4550_USB_CDC_example_v1-02

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:539KB
下载次数:239
上传日期:2007-02-16 10:44:56
上 传 者神乎其技
说明:  USB的开发例子,用PIC18F4550实现.可以和电脑用USB控制连接.
(USB examples of the development, use PIC18F4550 achieve. And can control the computer using the USB connection.)

文件列表:
249825 (0, 2011-02-18)
249825\MCHPFSUSB PICC18 (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Abbreviation List.txt (2432, 2004-12-01)
249825\MCHPFSUSB PICC18\fw\Cdc (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles\usbcfg.h (3056, 2005-03-19)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles\usbdsc.c (13346, 2005-02-21)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles\usbdsc.h (3580, 2005-02-15)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles\usbdsc.lst (35658, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles\usbdsc.rlf (38405, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\autofiles\usbdsc.sdb (39835, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\CleanUp.bat (1048, 2004-06-30)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.cod (51200, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.hex (12415, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.lde (0, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.map (20426, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.mcp (2078, 2005-03-19)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.mcw (35328, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\HitUSB.sym (15702, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\inf (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\inf\win2k_winxp (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\inf\win2k_winxp\mchpcdc.inf (1516, 2004-11-19)
249825\MCHPFSUSB PICC18\fw\Cdc\io_cfg.h (4317, 2005-02-21)
249825\MCHPFSUSB PICC18\fw\Cdc\main.c (5022, 2005-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\main.enc.hex (12396, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\main.lst (7285, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\main.rlf (8516, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\main.sdb (39554, 2005-06-15)
249825\MCHPFSUSB PICC18\fw\Cdc\MCHPUSB.mcp (2119, 2005-03-19)
249825\MCHPFSUSB PICC18\fw\Cdc\MCHPUSB.mcs (11443, 2005-03-19)
249825\MCHPFSUSB PICC18\fw\Cdc\MCHPUSB.mcw (26624, 2005-03-19)
249825\MCHPFSUSB PICC18\fw\Cdc\rm18f4550.lkr (1441, 2004-10-12)
249825\MCHPFSUSB PICC18\fw\Cdc\Startup.c (2201, 2005-02-16)
249825\MCHPFSUSB PICC18\fw\Cdc\system (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\system\interrupt (0, 2011-02-18)
249825\MCHPFSUSB PICC18\fw\Cdc\system\interrupt\interrupt.c (1631, 2004-04-14)
249825\MCHPFSUSB PICC18\fw\Cdc\system\interrupt\interrupt.h (811, 2004-04-14)
249825\MCHPFSUSB PICC18\fw\Cdc\system\typedefs.h (4605, 2005-02-21)
249825\MCHPFSUSB PICC18\fw\Cdc\system\usb (0, 2011-02-18)
... ...

Release Notes for USB Firmware Reference Projects, Microchip Technology Inc. 19 November 2004 ---------------------------------------------------------------------- 1. Reference Projects are setup to be used with a bootloader ---------------------------------------------------------------------- When opening an example, always open the workspace file (*.mcw) All examples in this directory except 'Boot' have been setup to work with a bootloader. Basic Assumptions: * The bootloader has remapped the reset and interrupt vectors to address 0x0800,0x0808, and 0x0818. * A modified linker script file with a boot section is used. The file is rm18f4550.lkr, and is located in each example's directory. ---------------------------------------------------------------------- If you have an ICD2 and are not planning to use the bootloader, you must do the following modifications to each project: 1. In the MPLAB project, change the rm18f4550.lkr to a standard 18f4550.lkr, which can be found in the default C18 lkr directory. 2. Update the default linker path in MPLAB by clicking on Project\Build Options...\Project, click on the 'General' tab and update the linker path to use the C18 default linker directory. 3. Remove the following code from the Vector Remapping Section: extern void _startup (void); // See c018i.c in your C18 compiler dir #pragma code _RESET_INTERRUPT_VECTOR = 0x000800 void _reset (void) { _asm goto _startup _endasm } #pragma code The Vector Remapping section is typically found in main.c. 4. This step is optional. Disable the Table Write Protect Boot. In MPLAB, click Configure\Configuration Bits... Under address 0x30000B, disable Table Write Protect Boot. ---------------------------------------------------------------------- 2. Programming a different hex file using the bootloader ---------------------------------------------------------------------- Each project's hex file can be found in the '_output' directory, i.e. CDC\_output, Demo\_output. * Launch PDFSUSB.exe * Hold down push button S2 and connect the demo board to a PC to enter Bootload mode * Click 'Load HEX File' to select a hex file from an '_output' directory * Click 'Program Device' * Reset the demo board to run the new program ----------------------------------------------------------------------

近期下载者

相关文件


收藏者