Assembler

Development Board | E Blocks | Flowcode

Electronics Home

Programs can be written using a basic text editor such as windows notepad. Though the syntax highlighting and formatting capabilities of a more advanced package like Ultraedit will improve the readability of the source code.

Once the text file has been saved it can be loaded into the assembler and a hex file produced to load into the PIC device.

Microchip MPASM Assembler

The assembler show here is produced by Microchip, and can be downloaded from their website. A more advanced package, MLAB IDE, which has full simulation capabilities can also be downloaded from the website. Both packages are currently free.

Once compiled, the file has to be uploaded into the PIC. This is done using the development board. A USB cable connects it to the PC. The file is uploaded using a program called PPP. This is supplied with the development board.

Matrix Multimedia PPP Loader

 

Matrix Multimedia PPP Configuration Screen

 

Assembler Code.

Similar to the assembly language used to program microprocessors. This is a RISC (Reduced Instruction Set) language. It comprises of 32 Op-Codes.
Assembler is still the most memory efficient way of programming regardless of the processor. It does, however have the disadvantage of being a steeper learning curve than a graphical environment such as flowcode.

The example below is a simple binary counter 0 to 255 (0000 0000 to 1111 1111) with the output to a row of leds on the development board. Once 255 is reached, the variable rolls over back to 0 and the sequence starts again.

 


Last Updated - Sunday 24-Aug-2008