PX-200 OEM-PICkit2TM Programmer board
1
PX-200 OEM-PICkit2TM Programmer
ºÍà ´â»Ãá¡ÃÁäÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC Ẻ ISP ¼ Ò¹¾Íà µ USB 1. ¤Ø³ÊÁºÑµ·Ô ҧ෤¹Ô¤ àª×Íè Áµ ͤÍÁ¾ÔÇàµÍà ¼Ò ¹¾Íà µ USB 㪠ä¿àÅÕÂé §¨Ò¡¾Íà µ USB l â»Ãá¡ÃÁäÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC º¹ºÍà ´à» ÒËÁÒ¼ Ò¹·Ò§á¨ ¡ ICD2 l ÁÕ LED áÊ´§Ê¶Ò¹Ð¡Ò÷íÒ§Ò¹ 3 ´Ç§ (POWER, TARGET áÅÐ BUSY) l ÊÒÁÒöÍÑ»à¡Ã´à¿ ÃÁ áÇÃ ä´ ¼ Ò¹·Ò§«Í¿µ áÇà l àºÍà ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ·ãÕè ª §Ò¹Ã ÇÁ´ ÇÂä´ (¢ ÍÁÙŶ֧¾ÄȨԡÒ¹ 2549) l
Baseline Devices PIC10F200, 202, 204, 206 PIC16F505, 506
PIC10F220, 222 PIC16F54, 57, 59
PIC12F508, 509, 510
Midrange Devices PIC12F615, HV615
PIC12F629, 635, 675, 683
PIC16F616, HV616
PIC16F627A, 628A, 648A
PIC16F630, 631, 636, 676
PIC16F677, 684, 685, 687
PIC16F688, 689, 690
PIC16F72
PIC16F73, 74, 76, 77
PIC16F716
PIC16F737, 747, 767, 777
PIC16F785, HV785
PIC16F84A, 87, 88
PIC16F818, 819
PIC16F870, 871, 872
PIC16F873, 874, 876, 877
PIC16F873A, 874A, 876A, 877A PIC16F883, 884, 886, 887
PIC16F913, 914, 916, 917
PIC16F946
PIC18 Devices PIC18F242, 252, 442, 452 PIC18F2331, 2410, 2420, 2431 PIC18F2550, 2580, 2585 PIC18F4420, 4431, 4450, 4455 PIC18F4610, 4620, 4680 PIC18F6527, 6622, 6627, 6722
PIC18F458 PIC18F2450, PIC18F2610, PIC18F4480, PIC18F6520, PIC18F8527,
2455, 2620, 4510, 6620, 8622,
PIC18F1220, 1320, 2220, 2480 PIC18F2510, 2515, 2520, 2680 PIC18F4220, 4320, 4331, 4515, 4520· PIC18F4525, 4550, 4580, 6720, 8520 PIC18F8620, 8720 8627, 8722
2320 2525 4410 4585
PIC18F_J_ Devices PIC18F24J10, 25J10 PIC18F67J10 PIC18F87J10
PIC18F44J10, 45J10 PIC18F66J60, 66J65, 67J60 PIC18F86J60, 86J65, 87J60
PIC18F65J10, 65J15, 66J10, 66J15 PIC18F85J10, 85J15, 86J10, 86J15 PIC18F96J60, 96J65, 97J60
PIC24 Devices PIC24FJ64GA006, 64GA008, 64GA010 PIC24FJ96GA006, 96GA008, 96GA010 PIC24FJ128GA006, 128GA008, 128GA010
â´Â¡ÒÃà¾ÔÁè àµÔÁàºÍà ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ¹¹Ñé ÊÒÁÒö´Ù¢Í ÁÙÅà¾ÔÁè àµÔÁ áÅдÒǹ âËÅ´â»Ãá¡ÃÁÃÇÁ·Ñ§é à¿ ÃÁ áÇà ÅÒ ÊØ´ä´ ·Õè www.microchip.com ¤ ¹ËÒ˹ Ò PICkit2TM * PICkit 2TM à» ¹ÅÔ¢ÊÔ·¸Ô¢ì ͧ Microchip Technology â´Â»ÃСͺ´ ÇÂÎÒà ´áÇà áÅЫͿµ áÇà «Ö§è ÁÕ¡ÒÃà¼Â á¾Ã ãË ÊÒÁÒö¹íÒä»ãª »ÃѺ»ÃاËÃ×;Ѳ¹Òµ Íä´
2 PX-200 OEM-PICkit2TM Programmer board
l 㪠§Ò¹¡ÑººÍà ´ Low pin count demo board ¢Í§ Microchip ä´
ÊÒÁÒö·íÒ¡ÒÃ´ÕºÑ¡ä´ ¢Öé¹ÍÂÙ ¡ÑºÃØ ¹¢Í§à¿ à ÁáÇà ÊíÒËÃѺ㹢³Ð¹Õé´ÕºÑ¡ä´ ੾ÒÐàºÍà PIC16F917 â´Âµ ͧ㪠PX-200 ¹ÕÃé Ç Á¡Ñº MPLAB V7.4 ¢Ö¹é ä» â´ÂàÅ×Í¡ Debug Tools à» ¹ Pickit 2 l
l
ÁÕá¼ ¹¾ÅÒʵԡÃͧà¾×Íè » ͧ¡Ñ¹á¼§Ç§¨Ã
»ÃСͺ´ Ç ºÍà ´ PX-200, ÊÒ USB, ÊÒ ICD2, «Õ´ÃÕ ÍÁ áÅÐàÍ¡ÊÒûÃСͺ¡ÒÃ㪠§Ò¹ ã¹ÃÙ»·Õè 1 áÊ´§Ë¹ ÒµÒáÅÐÊ Ç¹»ÃСͺ·Ñ§é ËÁ´¢Í§ PX-200 ¤Í¹à¹ç¡àµÍà µÍ ¾Íà µ USB ˹ ǤÇÒÁ¨íÒÍÕ; Õ ÃÍÁ ÊíÒËÃѺà¾ÔÁè àµÔÁ¤ÇÒÁÊÒÁÒö 㹡ÒÃ㪠§Ò¹â´ÂÅíҾѧ (à» ¹ÍØ»¡Ã³ àÊÃÔÁ áÅФÇÒÁ ÊÒÁÒö¹Õ¨é ÐÁÕã¹Í¹Ò¤µ) à¿ ÃÁ áÇà ¤Çº¤ØÁ¡Ò÷íÒ§Ò¹ ÊÒÁÒöÍÑ»à¡Ã´ä´ ´Ç  ä¿áÊ´§ÀÒÇÐä¿àÅÕÂé § ä¿áÊ´§¡Òè Ò Âä¿àÅÕé  §ä»ÂÑ § äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ä¿á¨ §Ê¶Ò¹ÐäÁ ÇÒ § ᨠ¡ ICD2 ¨Ø´µ Í ICSP
ÊÇÔµª PROGRAM 㪠¡´à¾×Íè ·íÒ¡ÒÃâ»Ãá¡ÃÁ ·Ò§ÎÒà ´áÇÃ
ÃÙ»·Õè 1 áÊ´§Ê ǹ»ÃСͺ·ÕÊè Òí ¤Ñ¢Í§ PX-200 ºÍà ´â»Ãá¡ÃÁäÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC Ẻ ISP ¼ Ò¹¾Íà µ USB
PX-200 OEM-PICkit2TM Programmer board
3
2. Ãкº¤ÍÁ¾ÔÇàµÍà ·µÕè Í §¡Òà l ¤ÍÁ¾ÔÇàµÍà ·µ Õè ´Ô µÑ§é Ãкº»¯ÔºµÑ ¡Ô ÒÃÇÔ¹â´ÇÊ
ME/2000/XP á¹Ð¹íÒãË ãª ¡ºÑ ÇÔ¹â´ÇÊ XP à«Íà ÇÊÔ á¾ç¡ 2 ¢Ö¹é 仨Ðä´ »ÃÐÊÔ·¸ÔÀҾ㹡Ò÷íÒ§Ò¹·Õ´è ÁÕ Ò¡¡Ç Ò ÃÇÁ·Ñ§é ÂѧàËÁÒÐÊíÒËÃѺÃͧÃѺ¡Òà »ÃѺ»ÃاàÇÍà ªÑ¹ãËÁ ·ÕèÍÒ¨ÁÕã¹Í¹Ò¤µ l
ÁÕ¾¹×é ·ÕÇè Ò §º¹ÎÒà ´´ÔÊ¡ Í ҧ¹ Í 10MB
ÁÕ«Õ´ÕÃÍÁä´Ã¿à¾×è͵ԴµÑé§â»Ãá¡ÃÁ¼ Ò¹«Õ´ÕÃÍÁ ¶ ÒäÁ ÁÕµ ͧ´Òǹ âËÅ´â»Ãá¡ÃÁÊíÒËÃѺ µÔ´µÑ§é ¨Ò¡àǺ䫵 ¢Í§ Microchip l
l ÁÕ¾Íà µ USB Ç Ò§ Í ҧ¹ Í 1 ª ͧ äÁ á¹Ð¹íÒãË ãª §Ò¹¼ Ò¹ USB ÎѺ
3. ¡ÒõԴµÑ§é «Í¿µ áÇà 3.1 µÔ´µÑ§é ¨Ò¡á¼ ¹«Õ´ÃÕ ÍÁ·ÕÁè ҡѺªØ´ PX-200 «Í¿µ áÇà ·ãÕè ª ¡ºÑ PX-200 ¤×Í PICkit2TM Programming Software â´Âã¹àÇÍà ª¹Ñ ãËÁ æ ¹Ñ¹é ¾Ñ²¹ÒÁÒ¨Ò¡ Microsoft .NET ´Ñ§¹Ñ¹é ¡ÒõԴµÑ§é â»Ãá¡ÃÁà¾×Íè 㪠§Ò¹ ¼Ùã ª §Ò¹µ ͧÁÕ¡ÒõԴµÑ§é Microsoft .NET Framework àÊÕ¡ ͹
3.1.1 ¡Ã³Õ·¤Õè ÍÁ¾ÔÇàµÍà äÁ Á¡Õ ÒõԴµÑ§é Microsoft .NET Framework ÁÒ¡ ͹ ·íÒ¡ÒõԴµÑ§é Microsoft .NET Framework â´ÂàÅ×Í¡µÔ´µÑ§é ¨Ò¡â¿Åà´Íà PICkit 2 Setup v2.01 dotNET à dotnetfx ã¹á¼ ¹«Õ´ÃÕ ÍÁ·Õ¨è ´Ñ ÁҾà ÍÁ¡ÑºªØ´ PX-200 ´ÑºàºÔŤÅÔ¡·Õäè ¿Å dotnetfx.exe ¨Ð㪠àÇÅÒ㹡ÒõԴµÑ§é ¤ÃÙË ¹Ö§è ¨Ò¡¹Ñ¹é ¨Ö§·íÒ¡ÒõԴµÑ§é â»Ãá¡ÃÁ PICkit2TM Programming Software â´Â àÅ×Í¡ä¿Å PICkit2Setup.msi
3.1.2 ¡Ã³Õ·¤Õè ÍÁ¾ÔÇàµÍà µ´Ô µÑ§é Microsoft .NET Framework áÅ Ç µÔ´µÑ§é â»Ãá¡ÃÁ PICkit2TM Programming Software â´ÂࢠÒä»·Õâè ¿Åà´Íà PICkit 2 Setup v2.01 ã¹á¼ ¹«Õ´ÃÕ ÍÁ·Õ¨è ´Ñ ÁҾà ÍÁ¡ÑºªØ´ PX-200 ´ÑºàºÔŤÅÔ¡·Õäè ¿Å PICkit2Setup.msi
3.2 µÔ´µÑ§é ¨Ò¡ä¿Å ·´Õè Òǹ âËÅ´¨Ò¡àǺ䫵 ¢Í§ Microchip ࢠÒä»ÂѧàǺ䫵 ¢Í§ Microchip ·Õè www.microchip.com àÅ×Í¡ËÑÇ¢ Í Development tools à Pickit 2 Programmer/Debugger
4 PX-200 OEM-PICkit2TM Programmer board
3.2.1 㹡óշäÕè Á à¤ÂµÔ´µÑ§é Microsoft .NET Framework ÁÒ¡ ͹ ãË ´Òǹ âËÅ´ä¿Å ¨Ò¡ËÑÇ¢ Í PICkit2V2.01 Install with .NET Framework ¨Ðä´ ä¿Å PICkit 2 Setup v2.01 dotNET.zip (µÑÇàÅ¢àÇÍà ª¹Ñ ÍÒ¨à»ÅÕÂè ¹á»Å§µÒÁÃع ·ÕÁè ¡Õ ÒûÃѺ»ÃاŠÒÊØ´) áÅ Ç·íÒ¡Òà ¢ÂÒÂä¿Å ·´Õè Òǹ âËÅ´ÁÒ à¡çºäÇ ã¹â¿Åà´Íà PICkit 2 Setup v2.01 dotNET ¨Ò¡¹Ñ¹é ࢠÒä»ã¹â¿Åà´Íà PICkit 2 Setup v2.01 dotNET à dotnetfx àÅ×Í¡´ÑºàºÔŤÅÔ¡·Õäè ¿Å dotnetfx.exe ¨Ð㪠àÇÅÒ㹡ÒõԴ µÑ§é ¤ÃÙË ¹Ö§è ¨Ò¡¹Ñ¹é ¨Ö§·íÒ¡ÒõԴµÑ§é â»Ãá¡ÃÁ Pickiit2TM Programming Software â´ÂࢠÒä»áŠǴѺ àºÔŤÅÔ¡·Õäè ¿Å PICkit2Setup.msi
3.2.2 㹡óշµÕè ´Ô µÑ§é Microsoft .NET Framework áÅ Ç ãË ´Òǹ âËÅ´ä¿Å ¨Ò¡ËÑÇ¢ Í PICkit2V2.01 Install ¨Ðä´ ä¿Å PICkit 2 Setup v2.01.zip (µÑÇàÅ¢àÇÍà ª¹Ñ ÍÒ¨à»ÅÕÂè ¹á»Å§µÒÁÃع ·ÕÁè ¡Õ ÒûÃѺ»ÃاŠÒÊØ´) áÅ Ç·íÒ¡ÒâÂÒÂä¿Å ·´Õè Òǹ âËÅ´ÁÒ à¡ç º äÇ ã ¹â¿Åà´Íà PICkit 2 Setup v2.01 ¨Ò¡¹Ñé ¹ à¢ Ò ä»ã¹â¿Åà´Íà àÅ× Í ¡´Ñ º àºÔ Å ¤ÅÔ ¡ ·Õè ä¿Å PICkit2Setup.msi à¾×Íè àÃÔÁè µ ¹µÔ´µÑ§é â»Ãá¡ÃÁ
3.3 ¢Ñ¹é µÍ¹¡ÒõԴµÑ§é â»Ãá¡ÃÁ 3.3.1 ´ÑºàºÔŤÅÔ¡ä¿Å µ´Ô µÑ§é PICkit2Setup.msi ¨Ð»ÃÒ¡¯Ë¹ Òµ Ò§àÃÔÁè ¡ÒõԴµÑ§é ¤ÅÔ¡»ØÁ Next
PX-200 OEM-PICkit2TM Programmer board
5
3.3.2 ¨Ð»ÃÒ¡¯Ë¹ Òµ ҧᨠ§µíÒá˹ §â¿Åà´Íà ·¨Õè зíÒ¡ÒõԴµÑ§é ËÒ¡äÁ µÍ §¡ÒÃà»ÅÕÂè ¹á»Å§ µíÒá˹ §â¿Åà´Íà ãË ¤ÅÔ¡»ØÁ Next à¾×Íè ¼ Ò¹¢Ñ¹é µÍ¹¹Õäé »
3.3.3 ¨Ð»ÃÒ¡¯Ë¹ Òµ ҧᨠ§Â×¹Âѹ¡ÒõԴµÑ§é â»Ãá¡ÃÁ ¤ÅÔ¡»ØÁ Next à¾×Íè µÍºµ¡Å§
6 PX-200 OEM-PICkit2TM Programmer board
Next
3.3.4 ˹ Òµ ҧᨠ§ÅÔ¢ÊÔ·¸ «Í¿µ áÇà »ÃÒ¡¯¢Ö¹é ¤ÅÔ¡àÅ×Í¡ I agree à¾×Íè µÍºÃѺ ¨Ò¡¹Ñ¹é ¤ÅÔ¡»ØÁ
3.3.5 ˹ Òµ ҧᨠ§Ê¶Ò¹Ð¡ÒõԴµÑ§é â»Ãá¡ÃÁ»ÃÒ¡¯¢Ö¹é Ãͨ¹¡ÃÐ·Ñ§è ¡ÒõԴµÑ§é àÊÃç¨ÊÁºÙó
PX-200 OEM-PICkit2TM Programmer board
7
3.3.6 ¨Ò¡¹Ñé¹Ë¹ Òµ ҧᨠ§¡ÒõԴµÑé§â»Ãá¡ÃÁàÊÃç¨ÊÁºÙó ¨Ð»ÃÒ¡¯¢Öé¹ ãË ¤ÅÔ¡»Ø Á Close à¾×èÍ» ´Ë¹ Òµ Ò§¹Õé
4. ¡ÒÃ㪠§Ò¹â»Ãá¡ÃÁ PICkit2TM Programming Software 4.1 ¡Ò÷´Êͺ¡ÒÃàª×Íè Áµ Íàº×Íé §µ ¹ 4.1.1 àÃÔÁè µ ¹´ Ç¡Òõ ÍÊÒ USB ÃÐËÇ Ò§ PX-200 ¡Ñº¾Íà µ USB ¢Í§¤ÍÁ¾ÔÇàµÍà ¨Ò¡¹Ñ¹é à» ´â»Ãá¡ÃÁ Pickiit2TM Programming Software â´ÂàÅ×Í¡·Õè Start à All programs à Microchip à Pickit 2 V201 (àÅ¢àÇÍà ª¹ Ñ ÍÒ¨à»ÅÕÂè ¹á»Å§ä´ µÒÁ¡ÒûÃѺ»ÃاŠÒÊØ´) ã¹ÃÙ»·Õè 2 áÊ´§Ë¹ Òµ Ò§ ËÅÑ¡¢Í§â»Ãá¡ÃÁ Pickiit2TM Programming Software
8 PX-200 OEM-PICkit2TM Programmer board
àÁ¹Ù¤Òí Êѧè ᶺáÊ´§¡Ò÷íÒ§Ò¹
»ØÁ ª ÇÂ㹡Òà ·íÒ§Ò¹
¡Ãͺ Configuration ª ͧáÊ´§Ê¶Ò¹Ð
˹ Òµ Ò§ºÑ¿à¿Íà ¢ ÍÁÙŢͧ˹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁ
ᨠ§ ·Õè Á Ңͧ ä¿Å .hex ·ÕÃè ºÑ à¢ ÒÁÒà¡çºäÇ ã¹ ºÑ¿à¿Íà »ØÁ ª ÇÂ㹡Òà ·íÒ§Ò¹
˹ Òµ Ò§ºÑ¿à¿Íà ¢ ÍÁÙŢͧ˹ ǤÇÒÁ¨íÒÍÕÍÕ¾ÃÍÁ
ÃÙ»·Õè 2 ˹ Òµ Ò§ËÅÑ¡¢Í§â»Ãá¡ÃÁ Pickiit2TM Programming Software
PX-200 OEM-PICkit2TM Programmer board
4.1.2 ËÒ¡¡ÒõԴµ ÍÃÐËÇ Ò§ PX-200 áÅÐâ»Ãá¡ÃÁÊÁºÙó ¨Ð»ÃÒ¡¯¢ ͤÇÒÁ PICkit found and connected ·Õª è Í §á¨ §Ê¶Ò¹Ð à¾ÃÒÐ PX-200 㪠ÎÒà ´áÇà ·àÕè ¢ Ò¡Ñ¹ä´ ¡ºÑ PICkit 2
9
2
4.1.3 ¶ Ò¡ÒõԴµ ÍäÁ ÊÁºÙó ËÃ×Íà» ´â»Ãá¡ÃÁ¡ ͹µ ͺÍà ´ PX-200 ¨Ð»ÃÒ¡¯¢ ͤÇÒÁ
PICkit 2 not found. Check USB connections and use Tools à Check Communication
·Õªè Í §á¨ §Ê¶Ò¹Ð ãË ·Òí ¡ÒõÃǨÊͺÊÒÂàª×Íè Áµ Í áÅ Çä»·Õàè Á¹Ù Tools àÅ×Í¡¤íÒÊѧè Check Communication ËÒ¡·Ø¡Í ҧ¶Ù¡µ ͧ ·Õªè Í §áÊ´§Ê¶Ò¹ÐáÊ´§¢ ͤÇÒÁ PICkit 2 found and connected µÒÁ¢Ñ¹é µÍ¹·Õè (4.1.2) to retry
Í ҧäáçµÒÁ ·Ø¡¤Ãѧé àÁ×Íè ÁÕ¡ÒõÃǨÊͺËÃ×ÍàÃÔÁè µ ¹¡ÒÃàª×Íè Áµ ÍãËÁ áÅÐäÁ Á¡Õ Òõ ÍäÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂ·Õ¨è ´Ø µ Í ICD2 áÅÐ ICSP ËÃ×ÍàÅ×Í¡àºÍà äÁ µÃ§¡Ñ¹ ¨Ð»ÃÒ¡¯ä´ÍÐÅçÍ¡ºçÍ¡ ᨠ§¤ÇÒÁ¼Ô´¾ÅÒ´à¡ÕÂè ǡѺÃдѺáç´Ñ¹ä¿àÅÕÂé §¢Ö¹é äÁ µÍ §¡Ñ§ÇÅ ãË ¤ÅÔ¡»ØÁ OK à¾×Íè ·íÒ§Ò¹µ Íä»
10 PX-200 OEM-PICkit2TM Programmer board
4.2 ÃÒÂÅÐàÍÕ´¢Í§á¶º¤íÒÊѧè 4.2.1 FILE à» ¹àÁ¹Ù¨´Ñ ¡ÒÃà¡ÕÂè ǡѺä¿Å ÁÕ¤Òí Êѧè ÀÒÂã¹àÁ¹Ù´§Ñ ¹Õé Import Hex - à» ´ËÃ×ÍÍ Ò¹ä¿Å ¹ÒÁÊ¡ØÅ .hex ·Õµè Í §¡ÒÃâ»Ãá¡ÃÁ ·Õªè Í § Source ¨Ðᨠ§µíÒá˹ §¢Í§ä¿Å .hex ·Õ¹è Òí ÁÒâ»Ãá¡ÃÁ Export Hex - ºÑ¹·Ö¡¢ ÍÁÙÅ㹺ѿà¿Íà ໠¹ä¿Å ¹ÒÁÊ¡ØÅ .hex Exit - ÍÍ¡¨Ò¡â»Ãá¡ÃÁ
4.2.2 DEVICE FAMILY à» ¹àÁ¹ÙàÅ×Í¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ·µÕè Í §¡ÒõԴµ Í´ Ç ÁÕ¤Òí Êѧè ÀÒÂã¹àÁ¹Ù´§Ñ ¹Õé Baseline - àÅ×Í¡àºÍà ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC Ãع 12 ºÔµ·ÕÁè ËÕ ¹ ǤÇÒÁ¨íÒ â»Ãá¡ÃÁá¿Åª·Õµè Í §¡ÒÃâ»Ãá¡ÃÁ ·Õºè Ã÷Ѵ Device 㹡Ãͺ Baseline Configuration ¨Ð»ÃÒ¡¯ ª ͧãË àÅ×Í¡àºÍà ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍÃ
Mid-range - àÅ×Í¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC Ãع 14 ºÔµ·ÕÁè ËÕ ¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁ á¿Åª·Õµè Í §¡ÒÃâ»Ãá¡ÃÁ äÁâ¤Ã¤Í¹â·ÃÅàÅÍà 㹡ÅØÁ ¹Õ¤é Í× PIC12F6xx áÅÐ 16F6xx, 7x, 7xx, 8x, 8xx â´ÂàÁ×Íè àÅ×Í¡¨ÐÁÕ¡ÒõÃǨÊͺàºÍà â´ÂÍѵâ¹Áѵ¼Ô Ò ¹·Ò§¨Ø´µ Í ICD2 áÅÐ ICSP ËÒ¡ÁÕ¡Òõ Í äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂÍÂÙ ¨Ð»ÃÒ¡¯àºÍà ¢Öé¹·ÕèºÃ÷Ѵ Device 㹡Ãͺ Midrange Configuration áµ ¶Ò äÁ Á¡Õ Òõ Í ¨ÐÁÕä´ÍÐÅçÍ¡ºç͡ᨠ§¤ÇÒÁ¼Ô´¾ÅÒ´à¡ÕÂè ǡѺÃдѺáç´Ñ¹ä¿àÅÕÂé § ¢Ö¹é äÁ µÍ §¡Ñ§ÇÅ ãË ¤ÅÔ¡»ØÁ OK à¾×Íè ·íÒ§Ò¹µ Íä»
PX-200 OEM-PICkit2TM Programmer board
11
PIC18F - àÅ×Í¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC ã¹Í¹Ø¡ÃÁ PIC18F ·ÕÁè ËÕ ¹ ǤÇÒÁ¨íÒ â»Ãá¡ÃÁá¿Åª·Õµè Í §¡ÒÃâ»Ãá¡ÃÁ â´ÂàÁ×Íè àÅ×Í¡¨ÐÁÕ¡ÒõÃǨÊͺàºÍà â´ÂÍѵâ¹Áѵ¼Ô Ò ¹·Ò§¨Ø´µ Í ICD2 áÅÐ ICSP ËÒ¡ÁÕ¡Òõ ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂÍÂÙ ¨Ð»ÃÒ¡¯àºÍà ¢¹Öé ·Õºè Ã÷Ѵ Device 㹡Ãͺ PIC18F Configuration áµ ¶Ò äÁ Á¡Õ Òõ ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ¨ÐÁÕä´ÍÐÅçÍ¡ºçÍ¡ ᨠ§¤ÇÒÁ¼Ô´¾ÅÒ´à¡ÕÂè ǡѺÃдѺáç´Ñ¹ä¿àÅÕÂé §¢Ö¹é äÁ µÍ §¡Ñ§ÇÅ ãË ¤ÅÔ¡»ØÁ OK à¾×Íè ·íÒ§Ò¹µ Íä» PIC18F_J_ - àÅ×Í¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC ã¹Í¹Ø¡ÃÁ PIC18FxxJxx Ẻáç ´Ñ¹µèÒí ·ÕÁè ËÕ ¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁá¿Åª·Õµè Í §¡ÒÃâ»Ãá¡ÃÁ â´ÂàÁ×Íè àÅ×Í¡¨ÐÁÕ¡ÒõÃǨÊͺàºÍà â´Â Íѵâ¹Áѵ¼Ô Ò ¹·Ò§¨Ø´µ Í ICD2 áÅÐ ICSP ËÒ¡ÁÕ¡Òõ ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂÍÂÙ ¨Ð»ÃÒ¡¯ àºÍà ¢¹Öé ·Õºè Ã÷Ѵ Device 㹡Ãͺ PIC18F_J_ Configuration áµ ¶Ò äÁ Á¡Õ Òõ ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ¨ÐÁÕä´ÍÐÅçÍ¡ºç͡ᨠ§¤ÇÒÁ¼Ô´¾ÅÒ´à¡ÕÂè ǡѺÃдѺáç´Ñ¹ä¿àÅÕÂé §¢Ö¹é äÁ µÍ §¡Ñ§ÇÅ ãË ¤ÅÔ ¡»ØÁ OK à¾×Íè ·íÒ§Ò¹µ Íä» PIC24 - àÅ×Í¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC ÃØ ¹ 16 ºÔµáººáç´Ñ¹µèíÒã¹Í¹Ø¡ÃÁ PIC24FJxx ·ÕèÁÕ˹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁá¿Åª·Õèµ Í§¡ÒÃâ»Ãá¡ÃÁ â´ÂàÁ×èÍàÅ×Í¡¨ÐÁÕ¡ÒõÃǨÊͺ àºÍà â´ÂÍѵâ¹ÁѵԼ Ò¹·Ò§¨Ø´µ Í ICD2 áÅÐ ICSP ËÒ¡ÁÕ¡Òõ ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂÍÂÙ ¨Ð»ÃÒ¡¯àºÍà ¢¹Öé ·Õºè Ã÷Ѵ Device 㹡Ãͺ PIC24 Configuration áµ ¶Ò äÁ µÍ ¨ÐÁÕä´ÍÐÅçÍ¡ºçÍ¡ ᨠ§¤ÇÒÁ¼Ô´¾ÅÒ´à¡ÕÂè ǡѺÃдѺáç´Ñ¹ä¿àÅÕÂé §¢Ö¹é äÁ µÍ §¡Ñ§ÇÅ ãË ¤ÅÔ¡»ØÁ OK à¾×Íè ·íÒ§Ò¹µ Íä»
4.2.3 PROGRAMMER à» ¹àÁ¹ÙºÃèؤÒí Êѧè Í Ò¹-à¢Õ¹˹ ǤÇÒÁ¨íÒÀÒÂã¹äÁâ¤Ã¤Í¹â·ÃÅàÅÍÃà» ÒËÁÒ ÁÕ¤Òí Êѧè ÀÒ ã¹àÁ¹Ù´Ñ§¹Õé Read Device - àÅ×Í¡ãË ÍÒ ¹¢ ÍÁÙŨҡ˹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁ, ˹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅ ÍÕÍ¾Õ ÃÍÁ, ID áÅкԵ Configuration ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ËÅѧ¨Ò¡·Õµè ´Ô µ ͡ѺºÍà ´ â»Ãá¡ÃÁ PX-200 ä´ áÅ Ç Write Device - àÅ×Í¡ãË à¢Õ¹ËÃ×Íâ»Ãá¡ÃÁ¢ ÍÁÙÅŧã¹Ë¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁ, ˹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁ, ID áÅкԵ Configuration ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ËÅѧ ¨Ò¡·Õµè ´Ô µ ͡ѺºÍà ´â»Ãá¡ÃÁ PX-200 ä´ áÅ Ç Verify - µÃǨÊͺ¢ ÍÁÙÅ·Õ·è Òí ¡ÒÃâ»Ãá¡ÃÁŧã¹äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂËÅѧ ¨Ò¡·Õµè ´Ô µ ͡ѺºÍà ´â»Ãá¡ÃÁ PX-200 ä´ áŠǡѺ¢ ÍÁÙÅ㹺ѿà¿Íà ¢Í§â»Ãá¡ÃÁ
12 PX-200 OEM-PICkit2TM Programmer board
Erase - ź¢ ÍÁÙÅã¹Ë¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁáÅÐ˹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁ¢Í§ äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ËÅѧ¨Ò¡·Õµè ´Ô µ ͡ѺºÍà ´â»Ãá¡ÃÁ PX-200 ä´ áÅ Ç â´ÂäÁ ·Òí ¡ÒÃź ¢ ÍÁÙÅÊíÒËÃѺ¡Òõѧé áÅЪ´àªÂ¤ ҢͧÊÑÒ³¹ÒÌ ¡Ò ·Ñ§é ¤ Ңͧ OSCCAL áÅÐ Band Gap (ÁÕ㪠㹠PIC12F629/675 áÅÐ PIC16F630/676) Blank Check - µÃǨÊͺ¢ ÍÁÙÅÇ Ò§ã¹Ë¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁ Verify on Write - àÅ×Í¡ãË ·Òí ¡ÒõÃǨÊͺ¢ ÍÁÙÅ·Õ·è Òí ¡ÒÃâ»Ãá¡ÃÁŧã¹äÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂËÅѧ¨Ò¡¡ÒÃâ»Ãá¡ÃÁ·Ñ¹·Õ Full Erase (OSCCAL and BG erased) - ź¢ ÍÁÙÅã¹Ë¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁáÅР˹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ËÅѧ¨Ò¡·Õµè ´Ô µ ͡ѺºÍà ´â»Ãá¡ÃÁ PX-200 ä´ áÅ Ç ÃÇÁ·Ñ§é ¤ Ңͧ OSCCAL áÅÐ Band Gap (ÁÕ㪠㹠PIC12F629/675 áÅÐ PIC16F630/ 676) Regenerate OSCCAL - ¡íÒ˹´¤ Ңͧ OSCCAL ¢Ö¹é ãËÁ (ÁÕ㪠㹠PIC12F629/675 áÅÐ PIC16F630/676) â´Âµ ͧµ ÍÊÑÒ³ PGM ࢠҡѺ¢Ò RA4/T1G ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ´ Ç Set Band Gap Calibration Value - µÑ§é ¤ Ò Band Gap ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC12F629/675 áÅÐ PIC16F630/676 Write on PICkit Button - àÅ×Í¡ãË ÊÒÁÒöâ»Ãá¡ÃÁäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ´ ÇÂÊÇÔµª PROGRAM º¹ºÍà ´ PX-200
4.2.4 TOOLS à» ¹àÁ¹Ù¤Òí ÊÑ§è ¡íÒ˹´¡Ò÷íÒ§Ò¹¢Í§ºÍà ´ PX-200 ÁÕ¤Òí Êѧè ÀÒÂã¹àÁ¹Ù´§Ñ ¹Õé Enable Code Protect - àÅ×Í¡» ͧ¡Ñ¹¡ÒÃÍ Ò¹¢ ÍÁÙŢͧ˹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁ Enable Code Protect - àÅ×Í¡» ͧ¡Ñ¹¡ÒÃÍ Ò¹Ë¹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁ Set OSCCAL - àÅ×Í¡ãË Á¡Õ ÒÃµÑ§é ¤ Ò OSCCAL ÊíÒËÃѺ»ÃѺᵠ§¤ÇÒÁ¶ÕÊè Ñ Ò³¹ÒÌ ¡Ò ÀÒÂ㹢ͧäÁâ¤Ã¤Í¹â·ÃÅàÅÍà (ÁÕ㪠㹠PIC12F629/675 áÅÐ PIC16F630/676) Target VDD Source - ¡íÒ˹´¡Òè ÒÂáç´Ñ¹ä¿àÅÕÂé §ãË á¡ äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ÁÕãË àÅ×Í¡ÍÕ¡ 3 ÇÔ¸¤Õ Í×
PX-200 OEM-PICkit2TM Programmer board
13
Auto-Detect : àÅ×Í¡ãË ºÍà ´·íÒ¡Òè ÒÂáç´Ñ¹ä¿àÅÕé§ËÃ×ͻŴÍÍ¡â´Â Íѵâ¹ÁÑµÔ ¨Ò¡¡ÒõÃǨÊͺ·Õäè Áâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ (äÁ á¹Ð¹íÒãË àÅ×͡㪠¤ÇÒÁÊÒÁÒö¹Õ)é Forced PICkit2 : àÅ×Í¡ãË ¨Ò Âáç´Ñ¹ä¿àÅÕÂé §·Õàè ËÁÒÐÊÁ¨Ò¡ PX-200 «Ö§è ÁÕ¡Òà ·íÒ§Ò¹µÃ§¡Ñº PICkit2 Programmer àÁ×Íè àÅ×Í¡áÅ Ç ä¿·Õµè Òí á˹ § Target º¹ºÍà ´ PX-200 ¨ÐµÔ´ÊÇ Ò§ ·Õªè Í § VDD PICkit2 ã¹µíÒá˹ § On ¨Ð¶Ù¡àÅ×Í¡ ÊÒÁÒö»ÃѺᵠ§ÃдѺáç´Ñ¹ä¿àÅÕÂé §·Õàè ËÁÒÐÊÁ ¨Ò¡ª ͧ¡íÒ˹´¤ Òáç´Ñ¹·ÕèÍÂÙ ´ Ò¹« ÒÂÁ×Í (äÁ á¹Ð¹íÒãË àÅ×͡㪠¤ÇÒÁÊÒÁÒö¹Õé) Forced Target : àÅ×Í¡ãË â»Ãá¡ÃÁÃѺ·ÃÒºÇ Ò ÁÕ¡Òè ÒÂáç´Ñ¹ä¿àÅÕÂé §¨Ò¡ ÀÒ¹͡ä»ÂѧäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ ¤ÇÃàÅ×͡㪠¤ÇÒÁÊÒÁÒö¹Õé à¾×Íè » ͧ¡Ñ¹¡Òè Ò¡ÃÐáÊ à¡Ô¹¢Í§¾Íà µ USB Fast Programming - àÅ×Í¡ãË â»Ãá¡ÃÁ´ ǤÇÒÁàÃçÇÊÙ§ ¤ÇÃàÅ×Í¡¤ÇÒÁÊÒÁÒö¹Õé Check Communication - µÃǨÊͺ¡ÒÃàª×èÍÁµ ÍÃÐËÇ Ò§â»Ãá¡ÃÁ PICkit2TM Microcontroller Programmer áÅÐäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ¼ Ò¹ºÍà ´ PX-200 â´Â¢ ÍÁÙÅ·ÕÁè Õ ¡ÒÃÍ Ò¹¨Ò¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ¤×Í ÃËÑÊ»ÃШíÒµÑÇËÃ×Í ID Download PICkit 2 Firmware - à» ¹¤íÒÊѧè ÊíÒËÃѺÍѻവËÃ×Í»ÃѺ»Ãا࿠ÃÁ áÇà ·Õè 㪠㹡ÒÃâ»Ãá¡ÃÁ¢Í§ºÍà ´ PX-200 «Ö§è ÁÕ¡Ò÷íÒ§Ò¹µÃ§¡Ñº PICkit2 ËÃ×ͺҧ¤Ãѧé àÃÕ¡¡ÒûÃѺ»Ãا ËÃ×ÍÍѻവ OS
4.2.5 Help 㪠àÅ×Í¡à¾×Íè áÊ´§¤ÙÁ Í× ãª §Ò¹â»Ãá¡ÃÁ, ÃÒÂÅÐàÍÕ´ÎÒà ´áÇà ¢Í§ Microchip ·Õãè ª §Ò¹Ã ÇÁ¡Ñº «Í¿µ áÇà ¹äÕé ´ ÃÇÁ·Ñ§é ä¿Å àÍ¡ÊÒÃà¾×Íè ᨠ§ÇÔ¸¡Õ ÒÃ㪠ËÃ×Í¢ ͤÇ÷ÃҺ㹡ÒÃ㪠§Ò¹ áÅÐᨠ§Ãع ËÃ×Í àÇÍà ªÑ¹¢Í§«Í¿µ áÇÃ
4.3 ¢ ͤÇ÷ÃҺ㹡ÒÃ㪠§Ò¹â»Ãá¡ÃÁ PICkit2TM Programming Software 4.3.1 ¡ÒáíÒ˹´¤ Ò Configuration PX-200 áÅÐâ»Ãá¡ÃÁ PICkit2TM Programming Software äÁ ʹѺʹع¡ÒÃá¡ ä¢ËÃ×Í¡íÒ˹´ ¤ Ò Configuration ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ¡Í ¹¡ÒÃâ»Ãá¡ÃÁÍ ҧÍÔÊÃÐ â´Â¼Ùã ª §Ò¹µ ͧ¡íÒ˹´ ÁÒÍ ҧ¶Ù¡µ ͧ¨Ò¡¡ÒÃà¢Õ¹â»Ãá¡ÃÁ ¡àÇ ¹¡ÒûÃѺᵠ§¤ Ò¤ÇÒÁ¶ÕÊè Ñ Ò³¹ÒÌ ¡Òã¹ PIC12F629/ 675 áÅÐ PIC16F630/676 ෠ҹѹé
14 PX-200 OEM-PICkit2TM Programmer board
4.3.2 ¡ÒÃᡠ䢤 Ò㹪 ͧ˹ ǤÇÒÁ¨íÒ â»Ãá¡ÃÁ PICkit2TM Programming Software ʹѺʹع¡ÒÃᡠ䢤 Ңͧ˹ ǤÇÒÁ¨íÒ·Ñé§ ã¹Ë¹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁáÅÐ˹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍÕ¾ÃÍÁ ¼ Ò¹·Ò§Ë¹ Òµ Ò§áÊ´§¤ Ңͧ˹ Ç ¤ÇÒÁ¨íҷѧé Êͧ»ÃÐàÀ· â´Â㪠àÁÒÊ ¤ÅÔ¡àÅ×Í¡ÂѧµíÒ˹ §·Õµè Í §¡ÒÃᡠ䢤 Ò áÅ Ç» ͹¤ Ò·Õµè Í §¡ÒÃŧ 仵çæ ä´ ·¹Ñ ·Õ ¹Í¡¨Ò¡¹Ñ¹é ¼Ùã ª §Ò¹ÂѧÊÒÁÒöàÅ×Í¡µÔ´µ Íà¾×Íè ·íÒ¡ÒÃâ»Ãá¡ÃÁËÃ×ÍÍ Ò¹¤ ÒËÃ×Íź¢ ÍÁÙÅ㹠˹ ǤÇÒÁ¨íҷѧé Êͧ»ÃÐàÀ·¾Ã ÍÁæ ¡Ñ¹ËÃ×ÍÍ ҧã´Í ҧ˹֧è â´Â 4.3.2.1 ¡Ã³Õ·µÕè Í §¡ÒõԴµ ͡Ѻ˹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁà· Ò¹Ñ¹é ¤ÅÔ¡·Õªè Í § Enabled 㹡Ãͺ Program Memory ãË äÁ ÁàÕ ¤Ã×Íè §ËÁÒ ËÃ×ͤÅÔ¡»Å´ ÍÍ¡¹Ñ¹è àͧ ·Õ¡è Ãͺ EEPROM data ¨Ð»ÃÒ¡¯¢ ͤÇÒÁ Write and Read EEPROM data only à» ¹µÑÇ ÍÑ¡ÉÃÊÕá´§ ÁÕ¤ÇÒÁËÁÒÂÇ Ò ÊÒÁÒöà¢Õ¹áÅÐÍ Ò¹Ë¹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁ෠ҹѹé
-
PX-200 OEM-PICkit2TM Programmer board
15
4.3.2.2 ¡Ã³Õ·µÕè Í §¡ÒõԴµ ͡Ѻ˹ ǤÇÒÁ¨íÒâ»Ãá¡ÃÁà· Ò¹Ñ¹é ¤ÅÔ¡·Õªè Í § Enabled 㹡Ãͺ EEPROM data ãË äÁ Á¡Õ Ò÷íÒà¤Ã×Íè §ËÁÒ ËÃ×ͤÅÔ¡»Å´ ÍÍ¡¹Ñ¹è àͧ ·Õ¡è Ãͺ EEPROM data ¨Ð»ÃÒ¡¯¢ ͤÇÒÁ Preserve device EEPROM data on write à» ¹ µÑÇÍÑ¡ÉÃÊÕá´§ ÁÕ¤ÇÒÁËÁÒÂÇ Ò Ë¹ ǤÇÒÁ¨íÒ¢ ÍÁÙÅÍÕÍ¾Õ ÃÍÁä´ ÃºÑ » ͧ¡Ñ¹äÁ ãË à¢Õ¹¢ ÍÁÙŷѺ
16 PX-200 OEM-PICkit2TM Programmer board
4.4 ¡ÒÃÍÑ»à¡Ã´ËÃ×Í»ÃѺ»Ãاà¿ÔÃÁì áÇÃì à¹×Íè §¨Ò¡ Microchip ÁÕ¡ÒüÅÔµäÁâ¤Ã¤Í¹â·ÃÅàÅÍà àºÍà ãËÁ æ ÍÍ¡ÁÒÍ ҧµ Íà¹×Íè § ÃÇÁ ¶Ö§¡ÒûÃѺ»ÃاàºÍà à´ÔÁ´ Ç ´Ñ§¹Ñ¹é  ÍÁµ ͧÁÕ¤ÇÒÁ¨íÒà» ¹ã¹¡ÒûÃѺ»Ãاâ»Ãá¡ÃÁ¤Çº¤ØÁ·Õºè ÃèØÍÂÙ ã¹ PICkit2 «Ö§è PX-200 Íѹ໠¹ºÍà ´â»Ãá¡ÃÁäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ·ÁÕè ¡Õ Ò÷íÒ§Ò¹àËÁ×͹¡Ñº PICkit2 ¨Ö§ÊÒÁÒö»ÃѺ»ÃاËÃ×ÍÍÑ»à¡Ã´à¿ ÃÁ áÇÃ ä´ ´Ç  â´ÂÁÕ¢¹Ñé µÍ¹´Ñ§¹Õé 4.4.1 ä»·Õàè Á¹Ù Tools àÅ×Í¡ Download PICkit 2 Firmware
4.4.2 ¨Ð»ÃÒ¡¯Ë¹ Òµ Ò§ãË àÅ×Í¡ä¿Å ¹ÒÁÊ¡ØÅ .hex ·Õè㪠㹡ÒÃÍÑ»à¡Ã´ «Ö觻¡µÔ¨ÐºÃèØÍÂÙ ã¹â¿Åà´Íà Microchip à PICkit 2 v2 «Ö§è à¡Ô´¢Ö¹é ¨Ò¡¡ÒõԴµÑ§é «Í¿µ áÇÃ
4.4.3 àÁ×Íè àÅ×Í¡ä¿Å ¡Ãкǹ¡ÒÃÍÑ»à¡Ã´à¿ ÃÁ áÇà ¨ÐàÃÔÁè µ ¹¢Ö¹é ·Õªè Í §áÊ´§Ê¶Ò¹Ð¡Ò÷íÒ§Ò¹ ¨Ð»ÃÒ¡¯¢ ͤÇÒÁ Downloading new PICkit 2 Firmware º¹¾×¹é ÊÕ¹Òéí à§Ô¹ Ãͨ¹¡Ãзѧè àÃÕº à Í ¨Ðᨠ§¢ ͤÇÒÁ PICkit 2 found and connected ·Õªè Í §á¨ §Ê¶Ò¹Ð à» ¹ÍѹàÃÕºà ÍÂ
PX-200 OEM-PICkit2TM Programmer board
17
4.5 »ØÁ ª Ç¡Ò÷íÒ§Ò¹ ÁÕÍÂÙ´ Ç Â¡Ñ¹ 7 »ØÁ ¤×Í 4.5.1 Read : ¡´à¾×Íè Í Ò¹¢ ÍÁÙŨҡäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ 4.5.2 Write : à¢Õ¹ËÃ×Íâ»Ãá¡ÃÁ¢ ÍÁÙÅŧã¹äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ 4.5.3 Verify : µÃǨÊͺ¡ÒÃâ»Ãá¡ÃÁ 4.5.4 Erase : ź¢ ÍÁÙÅã¹äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ 4.5.5 Blank Check : µÃǨÊͺ¢ ÍÁÙÅÇ Ò§ã¹äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ 4.5.6 Import Hex File + Write Device : ·íÒ¡ÒÃà» ´ä¿Å ¹ÒÁÊ¡ØÅ .hex áÅ Çâ»Ãá¡ÃÁ ŧã¹äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂÍ ҧÍѵâ¹ÁÑµÔ 4.5.7 Read Device + Export Hex File : ·íÒ¡ÒÃÍ Ò¹¢ ÍÁÙŨҡäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂáŠǺѹ·Ö¡à» ¹ä¿Å ¹ÒÁÊ¡ØÅ .hex Í ҧÍѵâ¹ÁѵÔ
5. ¡ÒÃâ»Ãá¡ÃÁ¢ ÍÁÙÅâ´Â㪠ÊÇÔµª PROGRAM à» ¹¤ÇÒÁÊÒÁÒö¾ÔàÈÉ·Õèª ÇÂÍíҹǤÇÒÁÊдǡ㹡óշÕèÁÕ¤ÇÒÁµ ͧ¡ÒÃâ»Ãá¡ÃÁäÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ´Ç Â⤠´à´ÕÂǡѹ¨íҹǹÁÒ¡ â´Âá·¹·Õ¨è Ð㪠àÁÒÊ ¤ÅÔ¡à¾×Íè ¡íÒ˹´¡ÒÃâ»Ãá¡ÃÁ·Ò§ «Í¿µ áÇà ÊÒÁÒö¡´ÊÇÔµª PROGRAM º¹ºÍà ´ PX-200 ãË ·Òí §Ò¹á·¹ä´ ·¹Ñ ·Õ ÁÕ¢Ñ鹵͹¡Ò÷íÒ§Ò¹´Ñ§¹Õé 5.1 àª×Íè Áµ ͺÍà ´ PX-200 ࢠҡѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ 5.2 ·íÒ¡ÒÃà» ´ËÃ×ÍâËÅ´ä¿Å .hex ࢠÒÁÒ㹺ѿà¿Íà â´Â㪠¤Òí Êѧè Import Hex 5.3 ä»·Õàè Á¹Ù Programmer àÅ×Í¡¤íÒÊѧè Write on PICkit Button
18 PX-200 OEM-PICkit2TM Programmer board
5.4 ·Õèª Í§áÊ´§Ê¶Ò¹Ð¡Ò÷íÒ§Ò¹¢Í§Ë¹ Òµ Ò§ËÅÑ¡¢Í§â»Ãá¡ÃÁáÊ´§¢ ͤÇÒÁ Waiting for PICkit 2 button to be pressed...
5.5 ¨Ò¡¹Ñ鹡´ÊÇÔµª PROGRAM ·ÕèºÍà ´ PX-200 ¨ÐàÃÔèÁ¡ÒÃâ»Ãá¡ÃÁäÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ·ѹ·Õ ¨¹¡Ãзѧè àÊÃç¨ÊÔ¹é ¡Ãкǹ¡Òà µ Íä»ä´ ·Ñ¹·Õ
5.6 ËÒ¡µ ͧ¡ÒÃâ»Ãá¡ÃÁµ Í´ ÇÂ⤠´à´ÔÁ ÊÒÁÒö¡´ÊÇÔµª PROGRAM à¾×Íè ·íÒ§Ò¹
6. ¡ÒèѴÊÒÂÊÑÒ³ ICD2 ᨠ¡ ICD2
~ ~
PGC
PGM PGD
$
GND Vpp
º¹ºÍà ´â»Ãá¡ÃÁ PX-200
µ Íä»Âѧἧǧ¨Ãà» ÒËÁÒÂËÃ×ͺÍà ´·´Åͧ Vdd
~ ~
PGM PGD Vdd
ÊÒÂ ICD
PGC GND Vpp
PGM PGD Vdd
PGM PGC PGD GND Vdd Vpp
PGC GND Vpp
¡ÒèѴ¢Ò¢Í§á¨ ¡ ICD2 ·Õºè Íà ´à» ÒËÁÒÂ
7. µÑÇÍ ҧ¡ÒÃàª×Íè Áµ ͡ѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒ 㹡ÒÃࢠҶ֧˹ ǤÇÒÁ¨íÒáÅÐ Configuration ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC ¢Í§ PX-200 ¨Ð㪠¡Ãкǹ¡Òà ICSP (In-Circuit Serial Programming) ËÃ×Í¡ÒÃâ»Ãá¡ÃÁã¹Ç§¨ÃẺ͹ءÃÁ ¢ÒÊÑÒ³·Õàè ¡ÕÂè Ç¢ ͧÁÕ·§Ñé ÊÔ¹é 6 ¢Ò´Ñ§¹Õé (1) MCLR/Vpp à» ¹¢ÒÃÕ૵áÅÐÃѺáç´Ñ¹ÊÙ§ÊíÒËÃѺ¡ÒÃâ»Ãá¡ÃÁ
PX-200 OEM-PICkit2TM Programmer board
19
(2) VDD ËÃ×Í Vdd à» ¹¢Òµ Íä¿àÅÕÂé § (3) GND à» ¹¢Ò¡ÃÒÇ´ (4) PGD à» ¹¢ÒÃÑºÊ §¢ ÍÁÙÅÊíÒËÃѺ¡ÒÃâ»Ãá¡ÃÁ (5) PGC à» ¹¢ÒÊÑÒ³¹ÒÌ ¡Ò¢Í§¡ÒÃâ»Ãá¡ÃÁ (6) PGM à» ¹¢ÒÃѺáç´Ñ¹µèÒí ÊíÒËÃѺ¡ÒÃâ»Ãá¡ÃÁ (»¡µÔäÁ 㪠§Ò¹¢Ò¹Õ)é 㹡ÒÃàª×Íè Áµ ͨе ͡ѹ¢Òµ Í¢Ò Â¡àÇ ¹¢Ò MCLR/Vpp ¨íÒà» ¹Í ҧÂÔ§è µ ͧÁÕǧ¨Ã» ͧ¡Ñ¹áç ´Ñ¹Ê٧ ͹¡ÅѺµ Íà¾ÔèÁàµÔÁ´ Ç ã¹ÃÙ»·Õè 3 áÊ´§¡ÒÃàª×Íè Áµ ÍÃÐËÇ Ò§ PX-200 ¡ÑºäÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC ¢¹Ò´ 40 ¢ÒµÑÇ ¶Ñ§ DIP ÍÒ·Ô àºÍà PIC16F877ËÃ×Í PIC18F45xx à» ¹µ ¹ C1 0.1/50V
+5V
Vdd
PGC GND 8FF
PX-200
31
äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ໠ÒËÁÒÂ
1+, PGD
12
32
11
39 RB6/PGC PGC
ÊÒÂ ICD2
GND 8FF
1+,
PGD Vdd
40 +5V
RB7/PGD
IC1 PIC16F877 PIC18F45xx
D1 1N4148 R1 10k
1
MCLR
RB3/LVP/PGM (RB5-18F45xx)
SW1 RESET R2* 1k
* R2 ãÊ äÇ à¾×Íè » ͧ¡Ñ¹ªÔ»àÊÕÂËÒ 㹡óա´ÊÇÔµª RESET ã¹¢³Ð·Õ¡è Òí Åѧâ»Ãá¡ÃÁÍÂÙ
OSC1 13 C3 33pF
OSC2 14 XTAL 20MHz
36 (38)
R3 4.7k-10k
C4 33pF
ÃÙ»·Õè 3 áÊ´§µÑÇÍ ҧ¡ÒÃàª×Íè Áµ ÍÃÐËÇ Ò§ PX-200 ¡ÑºäÁâ¤Ã¤Í¹â·ÃÅàÅÍà PIC16F877(A) ËÃ×Í PIC18F45xx ¢¹Ò´ 40 ¢ÒµÑǶѧ DIP
20 PX-200 OEM-PICkit2TM Programmer board
ºÃÔÉÑ· ÍÔ¹â¹àǵտ àÍç¡à¾ÍÃÔàÁ¹µ ¨íÒ¡Ñ´
3133/53 «.ÊØ¢ÁØ ÇÔ· 101/2 ¶. ÊØ¢ÁØ ÇÔ· á¢Ç§ºÒ§¹Ò ࢵºÒ§¹Ò ¡ÃØ§à·¾Ï 10260 â·ÃÈѾ· 0-2747-7001-4 â·ÃÊÒà 0-2747-7005
URL : www.inex.co.th, www.inexglobal.com
e-mail : tech@inex.co.th