embedded and real time systems training and consultancy

Microchip PIC24 Assembly Language Programming

Duration: 5 Days

Course Background

A knowledge of assembly language programming is a key skill for small embedded systems application developers. Not only does an understanding of the microcontroller instruction set help with debugging, it can be used to optimise code in resource constrained systems. It is also an important skill to have when implementing applications that are a mix of assembler and C code and when implementing low level device drivers. The Microchip 16 bit Microcontroller family has a richer instruction set than that of the 8 bit family. There is however a considerable overlap. The dsPIC family differs from the PIC24 family in having extra hardware concerned with DSP (Digital Signal Processing) and extra instructions for this very purpose. In this course the emphasis will be on the PIC24 instruction set and also the use of the same instructions in dsPIC processors. The dsPIC DSP course will cover the DSP related instructions found in the dsPIC family of microcontrollers

This course will cover techniques for modular programming in assembler and the structured use of macros. It should also be of use to those teaching or developing computer science courses who will be delivering a module on more advanced microprocessor architectures, instruction sets and programming at the level of instruction sets.

Laboratory Workshops

Course Prerequisites and Target Audience

Basic knowledge of programming and working with PC tools is assumed. Attendees are also expected to have a working knowledge of number systems decimal, octal, hexadecimal and binary and basic logic operations such as AND, OR, Exclusive OR and NOT. An appreciation of basic approaches to structured programming would also be helpful.

Course Outline

  • Microchip Overview
  • Overview of Development Tools
  • The PIC24 Architectures and Instruction Set
  • The PIC24 processor architecture and Instruction Set Details