ebook img

Programming PIC Microcontrollers Programming PIC Microcontrollers PDF

117 Pages·2008·0.5 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Programming PIC Microcontrollers Programming PIC Microcontrollers

PPrrooggrraammmmiinngg PPIICC MMiiccrrooccoonnttrroolllleerrss MMoodduullee:: EEEE22AA22 EEmmbbeeddddeedd MMiiccrroopprroocceessssoorr SSyysstteemmss Lecturer: James Grimblebyy URL: http://www.personal.rdg.ac.uk/~stsgrimb/ email: jj.b.ggrimblebyy readingg.ac.uk Number of Lectures: 5 Recommended text book: RR. BBaarrnneetttt, LL OO’CCuullll aanndd SS. FFooxx Embedded C Programming and the Microchip PIC TThhoommssoonn ((22000044)) ISBN 1401837484 James Grimbleby School of Systems Engineering - Electronic Engineering Slide 1 PPrrooggrraammmmiinngg PPIICC MMiiccrrooccoonnttrroolllleerrss RReeccoommmmeennddeedd TTeexxtt BBooookk:: RR.. BBaarrnneetttt,, LL OO’CCuullll aanndd SS.. FFooxx Embedded C Programming and the Microchipp PIC Thomson (2004) ISBN 1401837484 Price (Amazon) £47 James Grimbleby School of Systems Engineering - Electronic Engineering Slide 2 PPrrooggrraammmmiinngg PPIICC MMiiccrrooccoonnttrroolllleerrss OOnn--lliinnee bbooookk ddeessccrriibbiinngg PPIICC mmiiccrrooccoonnttrroolllleerrss:: hhttttp:////www.miikkroellekkttroniikka.co.yu//englliishh//prodductt//bbookks// PICbook/0_Uvod.htm James Grimbleby School of Systems Engineering - Electronic Engineering Slide 3 PPrrooggrraammmmiinngg PPIICC MMiiccrrooccoonnttrroolllleerrss MMaannuuaall ffoorr CCCCSS PPIICC C compiler: hhttttpp::////wwwwww.ccccssiinnffoo.ccoomm//ddoowwnnllooaaddss//ccccss_cc_mmaannuuaall.ppddff James Grimbleby School of Systems Engineering - Electronic Engineering Slide 4 PPrrooggrraammmmiinngg PPIICC MMiiccrrooccoonnttrroolllleerrss This course is about programming PIC microcontrollers in C using the CCS PIC-C compiler Topics covered include: PIC architecture PPIICC-ssppeecciiffiicc lliimmiittaattiioonnss aanndd eexxtteennssiioonnss ttoo CC Programming PIC hardware such as ports, ADC, timers, etc UUssiinngg ssooffttwwaarree lliibbrraarriieess YYoouu sshhoouulldd aallrreeaaddyy bbee ffaammiilliiaarr wwiitthh tthhee CC aanndd CC++++ programming languages James Grimbleby School of Systems Engineering - Electronic Engineering Slide 5 AAsssseessssmmeenntt TThhiiss unniitt wiillll bbee aasssseesssseedd bby aa mmullttiippllee-cchhooiiccee tteesstt TThhee mmuullttiippllee-cchhooiiccee tteesstt wwiillll llaasstt ffoorr 3300 mmiinnuutteess, dduurriinngg wwhhiicchh 20 questions must be answered You will be permitted to bring your notebooks and the course nnootteess iinnttoo tthhee tteesstt TThhee tteesstt wwiillll bbee hheelldd aatt tthhee eenndd ooff tthhee AAuuttuummnn tteerrmm TThhee mmaarrkkss ffrroomm tthhiiss tteesstt wwiillll ccoonnttrriibbuuttee ttoo tthhee oovveerraallll mmaarrkk ffoorr the module EE2A2 James Grimbleby School of Systems Engineering - Electronic Engineering Slide 6 MMuullttii-CChhooiiccee TTeesstt EExxaammppllee TThhiiss qquueessttiioonn rreellaatteess ttoo tthhee uussee ooff tthhee CCCCSS PPIICC CC compiler. AA vvaarriiaabbllee qq iiss ddeeccllaarreedd:: long int q; q can takke on any vallue iin thhe range: (a) -128 to +127 ((bb)) 00 to 2255 (c) -32768 to +32767 ((dd)) 00 ttoo 6655553355 (e) -2147483648 to + 2147483647 Answer: James Grimbleby School of Systems Engineering - Electronic Engineering Slide 7 PPrrooggrraammmmiinngg PPIICC MMiiccrrooccoonnttrroolllleerrss Lecture 1 PPIICC AArrcchhiitteeccttuurree James Grimbleby School of Systems Engineering - Electronic Engineering Slide 8 PPIICC MMiiccrrooccoonnttrroolllleerr AArrcchhiitteeccttuurree PPIICCss uussee HHaarrvvaarrdd aarrcchhiitteeccttuurree aanndd aa RRIISSCC iinnssttrruuccttiioonn sseett vvoonn NNeeuummaann AArrcchhiitteeccttuurree:: PProgram andd CPU data memory Harvard Architecture: Program Data CCPPUU memory memory James Grimbleby School of Systems Engineering - Electronic Engineering Slide 9 PPIICC MMiiccrrooccoonnttrroolllleerr AArrcchhiitteeccttuurree Counter/ Flash Program ttiimers program memory counter RAM file reggisters Instruction Stack register Address MUX I/O ports FSR Status reggister MUX Instruction Brn out reset decode Watchdog Peripherals ALU Start up timer Timing Low volt prog generation W register Debugger James Grimbleby School of Systems Engineering - Electronic Engineering Slide 10

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.