falleaf
14-01-2008, 03:11 PM
Trong loạt bài viết này, F sẽ cùng các bạn tổng hợp lại các vấn đề về PIC32. Những vẫn đề các bạn thảo luận ở dưới đây sẽ được tổng hợp và đưa lên trên này để tham khảo.
1. Công cụ làm việc
Tất nhiên là các bạn không thể quên thằng MPLAB (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&part=SW007002) được!
Programmer, Bootloader, Debugger, Emulator:
MPLAB REAL ICE™ Emulator (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en028120)
MPLAB ICD 2 In-circuit Debugger (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010046&part=DV164005)
MPLAB PM3 Universal Device Programmer (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010068&part=DV007004)
Các mạch demo cho PIC32:
PIM32 (http://www.microchipdirect.com/ProductSearch.aspx?Keywords=MA320001)
PIC32 Starter Kit (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2615&dDocName=en532453)
Explorer 16 (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en024858&part=DM240001)
Chương trình dịch cho PIC32:
Xem bảng so sánh tại đây.
http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2602
2. Tìm hiểu về tập lệnh cho PIC32MX (MIPS32 Release 2)
Kiến trúc MIPS32 có thể tìm thấy ở đây:
http://www.mips.com/products/resource-library/product-materials/mips-architecture/
Để thuận tiện cho các bạn download (vì phải đăng ký mới download được), F upload các file đó ở dưới bài viết này.
Bài toán "Tháp Hà Nội" ở bên dưới giúp các bạn làm quen với việc lập trình sử dụng MIPS32.
MIPS32 Instruction Set Quick Reference (http://www.mips.com/media/files/MD00565%2D2B%2DMIPS32%2DQRC%2D01.00.pdf)
MIPS32 DSP ASE Instruction Set Quick Reference (http://www.mips.com/media/files/MD00566%2D2B%2DMIPSDSP%2DQRC%2D01.00.pdf)
Các bạn chú ý download tài liệu này, nó rất cần thiết vì nó là bản đầy đủ của tập lệnh.
MIPS32® Architecture For Programmers Volume II: The MIPS32® Instruction Set (http://www.mips.com/secure-download/index.cfm?filename=mips-architecture/MD00087%2D2B%2DMIPS64BIS%2DAFP%2D02.50.pdf)
3. Tìm hiểu trình dịch cho PIC32:
Đây là tài liệu tham khảo để lập trình với C32 của Microchip được Microchip giới thiệu:
The ANSI C Programming Language 2nd edition (http://tailieuvietnam.net/dspvietnam/The ANSI C Programming Language 2nd edition.pdf)
MPLAB C32 Compiler (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en532454): Đây là chương trình dịch PIC Việt Nam chọn làm cơ sở nghiên cứu PIC32.
Basic cho PIC32 (MiniBASIC): http://www.pic32.org/minibasic/
Tài liệu tham khảo:
[1] PIC32 Overview Brochure (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32%20Brochure_v2_sm.pdf)
[2] Getting Started with PIC32 (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_GettingStarted_61146A.pdf)
[3] PIC32MX Family Datasheet (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_Datasheet_v1_61143A.pdf)
[4] PIC32 Family Reference Manual- All Chapters (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_FRM_All_Chapters.zip)
[5] AN1108 - Microchip TCP/IP Stack with BSD Socket API for PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532885)
[6] AN1107 - HTTP Server using BSD Socket API for PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532879)
[7] AN1109 - SNMP Agent using BSD Socket API for PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532876)
[8] AN1111 - FTP Server using BSD Socket API for the PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532873)
[9] PIC32 Example Source Code - All Files (http://ww1.microchip.com/downloads/en/DeviceDoc/All_PIC32_Code_examples.zip)
[10] PIC32 Starter Kit Users Guide (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32_UsersGuide.pdf)
[11] PIC32MX Programming Spec (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_ProgramSpec_61145A.pdf)
[12] PIC32MX Family Rev. B2 Silicon Errata (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_Errata_80350A.pdf)
Chúc vui
1. Công cụ làm việc
Tất nhiên là các bạn không thể quên thằng MPLAB (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469&part=SW007002) được!
Programmer, Bootloader, Debugger, Emulator:
MPLAB REAL ICE™ Emulator (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en028120)
MPLAB ICD 2 In-circuit Debugger (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010046&part=DV164005)
MPLAB PM3 Universal Device Programmer (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010068&part=DV007004)
Các mạch demo cho PIC32:
PIM32 (http://www.microchipdirect.com/ProductSearch.aspx?Keywords=MA320001)
PIC32 Starter Kit (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2615&dDocName=en532453)
Explorer 16 (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en024858&part=DM240001)
Chương trình dịch cho PIC32:
Xem bảng so sánh tại đây.
http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2602
2. Tìm hiểu về tập lệnh cho PIC32MX (MIPS32 Release 2)
Kiến trúc MIPS32 có thể tìm thấy ở đây:
http://www.mips.com/products/resource-library/product-materials/mips-architecture/
Để thuận tiện cho các bạn download (vì phải đăng ký mới download được), F upload các file đó ở dưới bài viết này.
Bài toán "Tháp Hà Nội" ở bên dưới giúp các bạn làm quen với việc lập trình sử dụng MIPS32.
MIPS32 Instruction Set Quick Reference (http://www.mips.com/media/files/MD00565%2D2B%2DMIPS32%2DQRC%2D01.00.pdf)
MIPS32 DSP ASE Instruction Set Quick Reference (http://www.mips.com/media/files/MD00566%2D2B%2DMIPSDSP%2DQRC%2D01.00.pdf)
Các bạn chú ý download tài liệu này, nó rất cần thiết vì nó là bản đầy đủ của tập lệnh.
MIPS32® Architecture For Programmers Volume II: The MIPS32® Instruction Set (http://www.mips.com/secure-download/index.cfm?filename=mips-architecture/MD00087%2D2B%2DMIPS64BIS%2DAFP%2D02.50.pdf)
3. Tìm hiểu trình dịch cho PIC32:
Đây là tài liệu tham khảo để lập trình với C32 của Microchip được Microchip giới thiệu:
The ANSI C Programming Language 2nd edition (http://tailieuvietnam.net/dspvietnam/The ANSI C Programming Language 2nd edition.pdf)
MPLAB C32 Compiler (http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en532454): Đây là chương trình dịch PIC Việt Nam chọn làm cơ sở nghiên cứu PIC32.
Basic cho PIC32 (MiniBASIC): http://www.pic32.org/minibasic/
Tài liệu tham khảo:
[1] PIC32 Overview Brochure (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32%20Brochure_v2_sm.pdf)
[2] Getting Started with PIC32 (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_GettingStarted_61146A.pdf)
[3] PIC32MX Family Datasheet (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_Datasheet_v1_61143A.pdf)
[4] PIC32 Family Reference Manual- All Chapters (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_FRM_All_Chapters.zip)
[5] AN1108 - Microchip TCP/IP Stack with BSD Socket API for PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532885)
[6] AN1107 - HTTP Server using BSD Socket API for PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532879)
[7] AN1109 - SNMP Agent using BSD Socket API for PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532876)
[8] AN1111 - FTP Server using BSD Socket API for the PIC32MX (http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en532873)
[9] PIC32 Example Source Code - All Files (http://ww1.microchip.com/downloads/en/DeviceDoc/All_PIC32_Code_examples.zip)
[10] PIC32 Starter Kit Users Guide (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32_UsersGuide.pdf)
[11] PIC32MX Programming Spec (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_ProgramSpec_61145A.pdf)
[12] PIC32MX Family Rev. B2 Silicon Errata (http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_Errata_80350A.pdf)
Chúc vui