Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
microhip application libraries v2009-07-10 已經可以下載.
發表於: 2009/7/19 0:30
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
參照:
hann_mh 兄: 檔案已經給您寄過去了,請查收。 另外我是用下面這個 Project 來燒錄實驗的。 2.3 版的應該也一樣。 USB Device - HID - Mouse - C18 - Low Pin Count USB Development Kit.mcp
發表於: 2009/7/14 9:43
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
PSIR 兄:
可以麻煩你把 Microchip Application Libraries v2009-03-24.zip mail 給我嗎? email: hann6806@ms22.hinet.net 感激不盡 ! ================================ Lab2 也和 Lab1 一樣狀況! Lab3 還沒測試. Lab4 link 有問題? Executing: "C:\MCC18\bin\mplink.exe" /l"C:\MCC18\lib" /k"C:\MCC18\lkr" "..\..\..\..\MCC18\lkr\18f14k50.lkr" "main.o" "usb_descriptors.o" "usb_device.o" "usb_function_cdc.o" /u_CRUNTIME /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"C:\USB\Low Pin Count\LPCUSBDK_Labs\Lab4_files\output\LPC_LAB4.cof" /M"C:\USB\Low Pin Count\LPCUSBDK_Labs\Lab4_files\output\LPC_LAB4.map" /W MPLINK 4.30.01, Linker Copyright (c) 2009 Microchip Technology Inc. Error - section '.udata_usb_device.o' can not fit the section. Section '.udata_usb_device.o' length=0x00000035 Errors : 1 Link step failed. ---------------------------------------------------------------------- Debug build of project `C:\USB\Low Pin Count\LPCUSBDK_Labs\Lab4_files\LPC_LAB4.mcp' failed. Language tool versions: mpasmwin.exe v5.30.01, mplink.exe v4.30.01, mcc18.exe v3.30 Preprocessor symbol `__DEBUG' is defined. Mon Jul 13 21:00:17 2009 ---------------------------------------------------------------------- BUILD FAILED
發表於: 2009/7/13 21:18
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
自春季研討會的光碟 DVD 3.0的碟片中安裝 MCHPFSUSB Framework2.3
就出現 c:\Microchip Solutions 完整的檔案 重新依照Low Pin Count USB Development Kit User’s Guide LPCUSBDK_Labs.zip 製作 lab1.mcp (LPCUSBDK_Labs_V3.zip compile 有一些資料找不到) 檢查好幾次,終於 C18 compile ok ! programer 也 OK (JPGD/JPGC off)! 接上 PC USB, (JPGD/JPGC on) TH001A只有 藍光 led1 ON 其他都沒任何反應, PC 也沒反應! 那裡做錯呢?
發表於: 2009/7/13 17:49
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
剛剛進 USB 設計中心看了一下確實不能下載了,
不然還有一個辦法,就是設法取得春季研討會的光碟, 裡面也有,那個執行檔的檔案高達50MB。
發表於: 2009/7/9 13:25
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
有找到 網頁 可是無法下載?
The Microchip Application Libraries v2009-03-24 above is temporarily unavailable. Please check back at a later date. We apologize for the inconvenience wwwDownloads No documents found. Please check back later ================================ Microchip Application Libraries Microchip Applications Libraries Microchip Application Libraries v2009-03-24 contains the following: PIC Family Supported Software Application Stack Function PIC18F (8bit) MCHPFSUSB Framework2.4a –For a complete description, go HERE PIC24F (16bit) PIC32 (32 bit) PIC24F (16bit) Graphics Library v1.65 - For a complete description, go HERE PIC32 (32 bit) PIC18F (8bit) Memory Disk Drive (MDD) Library v1.1.1 PIC24F (16bit) PIC32 (32 bit) Make sure to check out the USB Design Center for answers to Frequently Asked Questions, Application Notes, Demo Boards, USB Products and much more. Make sure to check out the Graphics Design Center for answers to Frequently Asked Questions, Application Notes, Demo Boards, Products and much more. The Microchip Application Libraries v2009-03-24 above is temporarily unavailable. Please check back at a later date. We apologize for the inconvenience wwwDownloads No documents found. Please check back later
發表於: 2009/7/9 12:49
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
參照:
我也是照 wsrelect 兄說的下載那個檔,然後用 MPLAB 載入下面這個 Project,編譯成功後燒錄在 TH001A 電路板上執行,結果可看到滑鼠為順時鐘一直轉圈圈。 USB Device - HID - Mouse - C18 - Low Pin Count USB Development Kit.mcp 希望 Microchip 可以對 USB 的範例程式做詳細的介紹,像是畫一下流程圖,讓 User 知道每個副程式的執行順序,以瞭解使用 USB PIC 的正確步驟,謝謝。
發表於: 2009/7/9 11:47
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
初級會員
|
Dear Sir :
請至USA Microchip網站下載 Microchip Application Libraries v2009-03-24.zip 檔案 , 此為Graphic Library及MCHPFSUSB Framework2.4a 整合之執行檔 , 下載執行後就可在 C:\Microchip Solutions\Microchip\Include\Usb 目錄內找到您要的檔案了 .
發表於: 2009/7/9 9:41
|
|||
|
Re: TH001A EVM 有 demo code 嗎?
|
||||
---|---|---|---|---|
資深會員
|
看過 Low Pin Count USB Development Kit User’s Guide 後確定需要 cd 上的include files 資料才能完成
請問 仁杰兄 可以開放下載嗎? 不然有 18F4k150 TH001A/B 電路板的 user 應該很難用下去! 缺資料在 第6.項 ================================ 2.4.2 Procedure 2.4.2.1 BUILDING THE FRAMEWORK 1. Open the MPLAB IDE by selecting Start>Programs>Microchip>MPLAB IDE vx.xx>MPLAB IDE 2. Once in the MPLAB IDE, start the Project Wizard by selecting Project>Project Wizard 3. Select the PIC18F14K50 as the device, select the MPLAB C18 C Compiler as the language toolsuite, and create a new project folder in the following directory: C:\Microchip Solutions\Project Lab 1\Project Lab 1 4. In the Add Existing Files to Your Project window, navigate to C:\LPCUSBDK_Labs\Lab1_files and copy the following files: a) enumeration.c b) usb_descriptors.c c) HardwareProfile.h d) usb_config.h To copy a file, click on the large letter A in front of the file path in the right pane of the window until a large letter C appears. This mode makes a copy of this file into the new project directory leaving the original file intact. (see Figure 2-1) FIGURE 2-1: This next section will add the files that will build the Framework that takes care of the low level USB functions. This does not need to be done for every application. The included example projects could be easily converted to suit the needs of a custom application. However, in the interest of providing an intuitive introduction to the Framework, this lab builds this application from scratch. 5. Next, navigate to C:\Microchip Solutions\Microchip\Include and copy over the following files: a) Compiler.h b) GenericTypeDefs.h Note: These files are the user files that will need to be changed to implement any application. 6. Navigate to C:\Microchip Solutions\Microchip\Include\Usb and copy the following files: a) usb.h b) usb_ch9.h c) usb_common.h d) usb_device.h e) usb_function_hid.h (file defines components specific to the HID class) f) usb_hal.h g) usb_hal_pic18.h (file defines components specific to the PIC18 architecture) 7. Next, navigate to C:\Microchip Solutions\Microchip\Usb and copy the following file: a) usb_device.c 8. Next, navigate to C:\Microchip Solutions\Microchip\Usb\HID Device Driver tocopy the HID specific source file: a) usb_function_hid.c 9. Finally, navigate to C:\MCC18\lkr and copy the 18f14k50.lkr linker file. 10. Click Next>Finish to exit the project wizard. The Project window should now resemble Figure 2-2. FIGURE 2-2: PROJECT WINDOW FOR LAB 1 If the project window isn’t open in the MPLAB IDE workspace, select View> Project. Next the MPLAB IDE will need to be configured for the Framework by directing the C18 compiler to the associated file locations. 11. In the MPLAB IDE, select Project>Build Options…>Project. The Build Options dialog will appear (Figure 2-3). 12. Click on the Directories tab and select Output Directory and click New to add a new path. Click on the button, navigate to C:\LPCUSBDK_Labs\Lab1_files and create a new folder called output. Highlight the folder and click OK. This will now be the folder where the output files are placed. 13. Within the “Show directories for” drop-down menu, select the “Include Search Path” directory. Ensure that the C:\MCC18\h directory path is listed. Select New and navigate to C:\Microchipsolutions\Microchip\Include and click OK to add to the directory. Repeat these steps to add the application folder C:\LPCUSBDK_Labs\Lab1_files. 14. In the “show directories for:” drop-down menu, select Library Search Path. Ensure that the C:\MCC18\lib is listed. Next, select the Linker-Script Path and ensure that the path points to C:\MCC18\lkr directory. FIGURE 2-3: CONFIGURING FOR MICROCHIP USB FIRMWARE FRAMEWORK
發表於: 2009/7/8 18:16
|
|||
|