Section 4. Program Memory - Microchip Taiwan
Section 4. Program Memory - Microchip Taiwan
Section 4. Program Memory - Microchip Taiwan
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Section</strong> <strong>4.</strong> <strong>Program</strong> <strong>Memory</strong><strong>4.</strong>3 PROGRAM COUNTERThe PC increments by two with the Least Significant bit (LSb) set to ‘0’ to provide compatibilitywith data space addressing. Sequential instruction words are addressed in the 4M programmemory space by PC. Each instruction word is 24 bits wide.The LSb of the program memory address (PC) is reserved as a Byte Select bit for programmemory accesses from data space, that use <strong>Program</strong> Space Visibility (PSV) or table instructions.For instruction fetches via the PC, the Byte Select bit is not required, so PC is always set to‘0’. For more information on the PSV mode of operation, see <strong>4.</strong>5 “<strong>Program</strong> Space Visibilityfrom Data Space”.Figure 4-2 illustrates an instruction fetch example. Note that incrementing PC by ‘1’ isequivalent to adding 2 to PC.Figure 4-2:Instruction Fetch Example24 bits23 User+1 (1)Space23Instruction0x00000024InstructionLatch<strong>Program</strong> Counter 022 00x7FFFFENote 1:An increment of ‘1’ to PC is equivalent to PC+2.4<strong>Program</strong> <strong>Memory</strong>© 2010 <strong>Microchip</strong> Technology Inc. DS70613B-page 4-5