• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (hann_mh)




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 嗎?
資深會員
資深會員


看過 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
頂部


Re: 請問 FW2.4 是否只有 USB 相關的範例專案
資深會員
資深會員


建議你可以報名 何仁杰先生主講 usb 的課.


下載中心 RTC 實作及PDF講義 可以下載有關usb 資料

USB101 Workshop 的 CDC , HID & Custom Class Firmware 以及 PC 端的範例程式

USB101 Workshop 的上課教材 - 黑白版本投影片

發表於: 2009/7/7 23:50
頂部


Re: [兩個 256 bytes 的 "Rom" array 取值錯誤]
資深會員
資深會員


我用 hitech C pro (Lite )v9.65 PIC 690 測試

總共使用 3個 const char 陣列 只要是 總數 >= 400 就死當.

===================================

C18 還沒試過, 你可以把data變少再讀看看.

發表於: 2009/7/7 10:17
頂部


Re: ICD2 一直出現ICD0031/0275 是不是壞了!
資深會員
資深會員


也許是 16F690 相關的 files 壞了 只要是用 icd2 + 16f690 就掛了.

我用 app013 18f4550 , app001 18f4520 又都正常

可能會要把 mplab 8.3 重灌

發表於: 2009/7/5 11:11
頂部


Re: PICkit2 compile 時發生問題
資深會員
資深會員


pickit 2 原本能支援的 chips 及 function 就少, 雖然號稱有增加很多, 但是可能 firmware debug 不完整 就放出來了!

我用pickit2 + 16f914 就有類似問題.

最進買了 pickit 3 不知道是否一樣有問題?

發表於: 2009/7/5 11:01
頂部


TH001A EVM 有 demo code 嗎?
資深會員
資深會員


最近買了 TH001A usb kit 及 pickit 3

下載美國原廠 Low Pin-Count USB Development Kit Project Labs LPCUSBDK_labs_V3.zip

建立 lab4_V3.mcp 找不到一些 include files

zip 裡都沒附上, USB001_Workshop 裡也找不到?

有人知道在那裡嗎 ???

===================================

Executing: "C:\MCC18\bin\mcc18.exe" -p=18F14K50 "main.c" -fo="main.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:45:Error [1027] unable to locate 'GenericTypeDefs.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:46:Error [1027] unable to locate 'Compiler.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:48:Error [1027] unable to locate './USB/usb_device.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:49:Error [1027] unable to locate './USB/usb.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:50:Error [1027] unable to locate './USB/usb_function_cdc.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:208:Error [1027] unable to locate 'GenericTypeDefs.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:209:Error [1027] unable to locate 'Compiler.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:211:Error [1027] unable to locate 'USB\usb_device.h'
C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\main.c:212:Error [1027] unable to locate 'USB\usb.h'
MPLAB C18 v3.30 (evaluation)
Copyright 2000-2009 Microchip Technology Inc.
Days remaining until evaluation becomes feature limited: 14
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\USB\Low Pin Count\LPCUSBDK_Labs\LPCUSBDK_Labs_V3\Lab4_files\LAB4_V3.mcp' failed.
Language tool versions: mpasmwin.exe v5.30.01, mplink.exe v4.30.01, mcc18.exe v3.30
Preprocessor symbol `__DEBUG' is defined.
Sun Jul 05 08:11:26 2009
----------------------------------------------------------------------
BUILD FAILED


=========================================

pickit 3 很沒質感 , 很像不值錢的玩具 , 紅色的 usb 線 塑膠臭味很重

發表於: 2009/7/5 10:51
頂部


Re: 奇怪的 mplab 8.3 & ICD2 for 16f914 debug mode !
資深會員
資深會員


這是 picc 的組態設定
[16F913]
MAKE=MICROCHIP
ARCH
=PIC14
PROCID
=F913
ROMSIZE
=1000
BANKS
=4
RAMBANK
=20-7F,A0-EF,120-16F
COMMON
=70-7F
ICD2RAM
=70-70,165-16F
ICD2ROM
=0F00-0FFF
DATABANK
=2
FLASHTYPE
=READ
FLASH_READ
=1
EEPROMSIZE
=100

[16F914]
MAKE=MICROCHIP
ARCH
=PIC14
PROCID
=F914
ROMSIZE
=1000
BANKS
=4
RAMBANK
=20-7F,A0-EF,120-16F
COMMON
=70-7F
ICD2RAM
=70-70,165-16F
ICD2ROM
=0F00-0FFF
DATABANK
=2
FLASHTYPE
=READ
FLASH_READ
=1
EEPROMSIZE
=100

[16F916]
MAKE=MICROCHIP
ARCH
=PIC14
PROCID
=F916
ROMSIZE
=2000
BANKS
=4
RAMBANK
=20-7F,A0-EF,120-16F,190-1EF
COMMON
=70-7F
ICD2RAM
=70-70,165-16F
ICD2ROM
=1F00-1FFF
DATABANK
=2
FLASHTYPE
=READ
FLASH_READ
=1
EEPROMSIZE
=100

[16F917]
MAKE=MICROCHIP
ARCH
=PIC14
PROCID
=F917
ROMSIZE
=2000
BANKS
=4
RAMBANK
=20-7F,A0-EF,120-16F,190-1EF
COMMON
=70-7F
ICD2RAM
=70-70,165-16F
ICD2ROM
=1F00-1FFF
DATABANK
=2
FLASHTYPE
=READ
FLASH_READ
=1
EEPROMSIZE
=100

===========================
 
ICD2 只佔用最後page 共256 bytes rom
                             70
-70,165-16F ram


我只用55.4% rom, 使用是 picc 9.65 LITE 應該沒有記憶體限制

所以應該有 bug !

發表於: 2009/6/29 22:23

Edited by Ryang on 2009年06月30日 09:15:13
頂部


Re: 請問 FW2.4 是否只有 USB 相關的範例專案
資深會員
資深會員


在usb 的練習中 mchfsusb/fw/hid 下

應該有 mouse 及 Ctrl_IO_AD_DEMO 兩個 HID 可以練習 !

還有 VB_DEMO/HID_PIC18F4550.exe

可以測試 Ctrl_IO_AD_DEMO

已經很完整, 測試看看 !

發表於: 2009/6/29 22:03
頂部


Re: 請問在 MPLAB 內如何觀察編譯後的程式碼大小?
資深會員
資深會員


我最近也要試用18F14K50, 會注意這個問題!

發表於: 2009/6/29 10:45
頂部



« 1 ... 15 16 17 (18) 19 20 21 ... 23 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------