Sunday, October 17, 2010

Embedded System - PIC: Instruction Set


PIC is a family of Harvard architecture microcontrollers made by Microchip Technology, derived from the PIC1640[1] originally developed by General Instrument's Microelectronics Division. The name PIC initially referred to "Programmable Interface Controller".  A PIC's instructions vary from about 35 instructions for the low-end PICs to over 80 instructions for the high-end PICs. The instruction set includes instructions to perform a variety of operations on registers directly, the accumulator and a literal constant or the accumulator and a register, as well as for conditional execution, and program branching. Some operations, such as bit setting and testing, can be performed on any numbered register, but bi-operand arithmetic operations always involve W (the accumulator) ; writing the result back to either W or the other operand register. To load a constant, it is necessary to load it into W before it can be moved into another register. On the older cores, all register moves needed to pass through W, but this changed on the "high end" cores.

All instruction take one cycle unless conditional test is true or PC is changed as a result og an instruction.

Tutorial:
http://www.pictutorials.com/INCFSZ-DECFSZ.htm
http://www.pictutorials.com/INCFSZ-DECFSZ.htm 






No comments:

Post a Comment