+ All Categories
Home > Documents > An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local...

An#Introduc+on#to#PIC32# - web.sonoma.edu · PIC32_Introduction.pptx Author: Farid Faramand Local...

Date post: 26-Jun-2018
Category:
Upload: duongtuong
View: 214 times
Download: 0 times
Share this document with a friend
14
An Introduc+on to PIC32 Dr. Farahmand
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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

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 ...

Assembly    Programing  Example  

hXp://pages.hmc.edu/jspjut/class/f2014/e155/lab/lab04.pdf  


Recommended