Useful Tools

contact us contact tutor/group email to a friend accessibility options report a fault
Microcontrollers

Microcontrollers

Practical Session 5: Programming Exercise


We are going to be using 'MPLAB' software for producing the machine code and for assembler code-simulation and step-thru debugging facility of the code. We will use the 'C2C' environment for downloading the machine code to the PIC16F84 chip on the MatrixMultimedia development board. The C2C software can also produce the machine code from the assembler, but it's limitation is that it cannot step through and inspect the individual registers.

For simple examples of code to help get an appreciation of more of the PIC Instruction Set please click on the links:-

[Link to Examples of Using Assembler Instructions and appreciation via simulation (tutorials 1 to 5)]

 

[Link to Further Examples of Using Assembler Instructions and appreciation via simulation (tutorials 6 to 11)]

 

[Link to Even More Assembler Code examples (tutorials 12 to 16)]

 


Programming Exercise

Use the MPLAB development software to develop a program to output a binary count sequence on portB after pressing switch (SA0) on portA bit RA0.

 

When you have finished, compare your answer with this: Solution


[On to the start of Module 4]


Updated 20.06.07 ML

Site Search

Powered by Google
Site Map