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 Even More Assembler Code examples (tutorials 12 to 16)]
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
Updated 20.06.07 ML
Powered by Google
Site Map