2.7 Program Counter (PC)
program counter (PC)controls the instruction sequence in program memory FLASH, it can address in the
whole range of FLASH. After obtaining instruction code, PC will increase by 1 and point to the address of the
next instruction code. When executing jump, passing value to PCL, sub-program, initializing reset, interrupt,
interrupt return, sub-program returns and other actions, PC will load the address which is related to the
instruction, rather than the address of the next instruction.
When encountering condition jump instructions and the condition is met, the instruction read during the
current instruction will be discarded and an empty instruction period will be inserted. After this, the correct
instruction can be obtained. If not, the next instruction will follow the order.
Program counter (PC)is 12 Bit, user can access lower 8 bits through PCL (02H). The higher 4 bits cannot
be accessed. It can hold address for 4K×16Bit program. Passing a value to PCL will cause a short jump which
range until the 256 address of the current page.