21.01.2015 Views

PIC12F683 Data Sheet - Microchip

PIC12F683 Data Sheet - Microchip

PIC12F683 Data Sheet - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PIC12F683</strong><br />

3.0 MEMORY ORGANIZATION<br />

3.1 Program Memory Organization<br />

The <strong>PIC12F683</strong> has a 13-bit program counter capable<br />

of addressing an 8k x 14 program memory space. Only<br />

the first 2k x 14 (0000h-07FFh) for the <strong>PIC12F683</strong> is<br />

physically implemented. Accessing a location above<br />

these boundaries will cause a wraparound within the<br />

first 2K x 14 space. The Reset vector is at 0000h and<br />

the interrupt vector is at 0004h (see Figure 3-1).<br />

FIGURE 3-1:<br />

PROGRAM MEMORY MAP<br />

AND STACK FOR THE<br />

<strong>PIC12F683</strong><br />

PC<br />

3.2 <strong>Data</strong> Memory Organization<br />

The data memory (see Figure 3-2) is partitioned into two<br />

banks, which contain the General Purpose Registers<br />

(GPR) and the Special Function Registers (SFR). The<br />

Special Function Registers are located in the first 32<br />

locations of each bank. Register locations 20h-7Fh in<br />

Bank 0 and A0h-BFh in Bank 1 are General Purpose<br />

Registers, implemented as static RAM. Register<br />

locations F0h-FFh in Bank 1 point to addresses 70h-7Fh<br />

in Bank 0. All other RAM is unimplemented and returns<br />

‘0’ when read. RP0 of the STATUS register is the bank<br />

select bit.<br />

RP0<br />

0 → Bank 0 is selected<br />

1 → Bank 1 is selected<br />

CALL, RETURN<br />

RETFIE, RETLW<br />

Stack Level 1<br />

Stack Level 2<br />

13<br />

Note:<br />

The IRP and RP1 bits of the STATUS<br />

register are reserved and should always<br />

be maintained as ‘0’s.<br />

Stack Level 8<br />

Reset Vector<br />

0000h<br />

Interrupt Vector<br />

On-chip Program<br />

Memory<br />

0004h<br />

0005h<br />

07FFh<br />

0800h<br />

Wraps to 0000h-07FFh<br />

1FFFh<br />

© 2007 <strong>Microchip</strong> Technology Inc. DS41211D-page 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!