an#introduc+on#to#pic32# - web.sonoma.edu · pic32_introduction.pptx author: farid faramand local...
TRANSCRIPT
![Page 1: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/1.jpg)
An Introduc+on to PIC32
Dr. Farahmand
![Page 2: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/2.jpg)
PIC32 Family Different in terms of IO pins / RAM (data memory) / FLASH (program memory; non-‐vola+le ) / Peripherals 32-‐bit in terms of
Instruc+ons, register size, Instruc+on Bus, Data Bus
![Page 3: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/3.jpg)
PIC32 Family MX6 supports
CAN and Ethernet
MZ – Using MIPS – Licensed by MICROCHIP
![Page 4: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/4.jpg)
PIC32 Architecture
![Page 5: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/5.jpg)
Architecture:
![Page 6: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/6.jpg)
Example
hXp://www.microchip.com/pagehandler/en-‐us/family/32bit/
![Page 7: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/7.jpg)
Example The PIC32MX795F512L is powered by a supply voltage in the range 2.3 to 3.6 V and features a max clock frequency of 80 MHz, 512 KB program memory (Flash) 128 KB data memory (RAM) 1610-‐bit analog-‐to-‐digital input lines (mul+plexed to a single analog-‐to-‐digital converter, or ADC), USB 2.0, Ethernet, two CAN modules, I2C and four SPI synchronous serial communica+on modules, six UARTs for RS-‐232 or RS-‐485 asynchronous serial communica+on…….
![Page 8: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/8.jpg)
Development Boards
![Page 9: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/9.jpg)
Development Boards
• Hardware – PIC32 USB Starter Kit – With on-‐board programmer
– Development Board – Need PICKIT3 – Development Board with a Boot Loader – Can be programmed using USB cable
• Sohware – XC32 Compiler – MPLABX
![Page 10: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/10.jpg)
Sample Prog:
hXp://www.johnloomis.org/microchip/pic32/resources.html
![Page 11: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/11.jpg)
Introduc+on to MIPS • Microprocessors without Interlocked Pipelines Stages – MIPS I, II, …V, 32, 64
• Developed by MIPS Technology • RISC Instruc+on Sets • 32-‐bit Instruc+ons – R-‐type; I-‐type, & J-‐type instruc+ons
• Applica+ons: – Routers, Switches, Laser Printers, Sony Sta+on, Nintendo 64, etc.
• Main Compe+tor is ARM – PDAs and Cellphones
![Page 12: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/12.jpg)
MIPS Assembly
• Basic commands: – Arithme+c, Data Transfer, Logic, Bit opera+on, Branch, Jump
![Page 13: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/13.jpg)
MIPS Assembly
• Basic commands: – Arithme+c, Data Transfer, Logic, Bit opera+on, Branch, Jump
hXps://en.wikipedia.org/wiki/MIPS_instruc+on_set
![Page 14: An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local Created Date: 12/8/2015 4:09:14 PM](https://reader031.vdocuments.net/reader031/viewer/2022022522/5b3192d17f8b9ae1108bbc3a/html5/thumbnails/14.jpg)
Assembly Programing Example
hXp://pages.hmc.edu/jspjut/class/f2014/e155/lab/lab04.pdf