70 likes | 445 Views
Assembly Programming with the PicKit ACSE Annual Conference November 2006 Erin Lester Microchip’s PicKit USB flash microcontroller programmer Costs approx. $30 US Can be programmed in C++ or Assembly Comes with a free IDE - MPLAB® (complete with programming and debugging facilities)
E N D
Assembly Programming with the PicKit ACSE Annual Conference November 2006 Erin Lester
Microchip’s PicKit • USB flash microcontroller programmer • Costs approx. $30 US • Can be programmed in C++ or Assembly • Comes with a free IDE - MPLAB® (complete with programming and debugging facilities) • Can get free sample chips (6 of each type) from Microchip every 2 months
PicKit components • Comes with 2 microcontroller chips - the PIC12F675 and PIC16F684 • Supports other 8 and 14-pin Flash PIC® microcontrollers • Board has 8 LEDs, a potentiometer, input jumpers, and a push-button switch • Additional components can be added to the board • Additional I/O facilities can be added via daughter boards such as the PICTail
Using the PicKit for ICE 4MI • Mike Devoy has developed a set of activities (see resources slide for URL) • Can be used to cover assembly, computer architecture, debugging expectations • Teach assembly, microcontroller architecture, using a debugger and IDE, and using the PicKit to program a microcontroller • Build up to controlling a traffic light intersection (or many other applications)
Assembly • Low-level programming • Common misconceptions • More difficult • More efficient • Analogy - walking instructions • Instructions versus statements • Instructions consist of an opcode (specifies the operation) and 1+ operand (parameter)
Resources - Websites • Mike Devoy’s ICE4M website - http://doyle.wcdsb.edu.on.ca/ICE4MI/index.htm • Microchip - http://www.microchip.com
Resources - Books • PIC Microcontroller Project Book - http://www.amazon.com/Microcontroller-Project-Book-John-Iovine/dp/0071354794 • PIC Microcontroller Experiments for the Evil Genius - http://www.amazon.com/123-Microcontroller-Experiments-Evil-Genius/dp/0071451420/sr=1-10/qid=1164507347/ref=sr_1_10/104-5782250-8415102?ie=UTF8&s=books • PIC in Practice - A Project-Based Approach - http://www.amazon.com/PIC-Practice-Second-Project-Approach/dp/0750668261/sr=1-6/qid=1164513519/ref=sr_1_6/104-5782250-8415102?ie=UTF8&s=books