SECTION I-1: The WREG Register in the PIC micro-controller

CPUs use many registers to store data temporarily. PIC micro-controllers have many registers for arithmetic and logic operations.

WREG Register:-

In the CPU, registers are used to store information temporarily. That information could be a byte of data to be processed, or an address pointing to the data to be fetched. The vast majority of PIC registers are 8-bit registers. In the PIC there is only one data type: 8-bit as shown below. These range from the MSB (most significant bit) D7 to the LSB (least significant bit) D0. With an 8-bit data type, any data larger than 8 bits must be broken into 8-bit chunks before it is processed.




The 8 bit WREG register is the most widely used register in the PIC micro-controllers. WREG stands for working register, as there is only one. The WREG register is the same as the accumulator in other microprocessors. The WREG register is used for all arithmetic and logic instructions. To understand the use of WREG register, we will show it in the context of two simple instructions: MOVE and ADD in the next sections.

More From