Contents
What is the use of working register in PIC?
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.
How many registers are there in PIC?
As a result, the PIC18 designers divided the 4096 file registers into 16 banks. Only one bank of 256 file registers is active at any time. An additional four bits are placed in a special register called bank select register (BSR) to select the bank to be active.
How do I set configuration bits in Mplab?
xx the configuration bits can be set by going to MPLAB IDE -> Configure -> Configuration bits. There is a check box that allows the user to specify if he wants the Config bits to be set in code (for this the writing specifications from the compiler user guide has to be followed) or to be set from the window.
What is a working register?
A processor register (CPU register) is one of a small set of data holding places that are part of the computer processor. A register may hold an instruction, a storage address, or any kind of data (such as a bit sequence or individual characters). Some instructions specify registers as part of the instruction.
What is SFR in pic?
Special Function Registers (SFR) These registers perform various dedicated functions inside the PIC chip. Each special function inside this PIC chip is controlled by using these registers. These registers are used by the CPU and peripheral modules for controlling the desired operation of the device.
What is a configuration word?
3 The Configuration Word. A special part of the 16F84A program memory is its ‘Configuration Word’ (Figure 2.6). This allows the user to define certain configurable features of the microcontroller, at the time of program download. These are fixed until the next time the microcontroller is programmed.
https://www.youtube.com/watch?v=AxspMcSEWUc