embedded and real time systems training and consultancy

Microchip PIC32 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 32 bit Microcontroller family with its MIPS architecture has an instruction set based on the original MIPS instruction set. The PIC32 processor core is based on the M4K core from MIPS Technologies. It supports a 16 bit instruction mode (MIPS16e) for more compact code. It also supports User and Kernel modes of operation which are especially useful when implementing and operating system, and has a multiply-divide unit.

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 PIC32 Architectures and Instruction Set
  • The PIC32 processor architecture and Instruction Set Details