12.07.2015 Views

PIC16F84A 18-pin Enhanced Flash/EEPROM 8-Bit MCU Data Sheet

PIC16F84A 18-pin Enhanced Flash/EEPROM 8-Bit MCU Data Sheet

PIC16F84A 18-pin Enhanced Flash/EEPROM 8-Bit MCU Data Sheet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PIC16F84A</strong>2.0 MEMORY ORGANIZATIONThere are two memory blocks in the <strong>PIC16F84A</strong>.These are the program memory and the data memory.Each block has its own bus, so that access to eachblock can occur during the same oscillator cycle.The data memory can further be broken down into thegeneral purpose RAM and the Special FunctionRegisters (SFRs). The operation of the SFRs thatcontrol the “core” are described here. The SFRs usedto control the peripheral modules are described in thesection discussing each individual peripheral module.The data memory area also contains the data<strong>EEPROM</strong> memory. This memory is not directly mappedinto the data memory, but is indirectly mapped. That is,an indirect address pointer specifies the address of thedata <strong>EEPROM</strong> memory to read/write. The 64 bytes ofdata <strong>EEPROM</strong> memory have the address range0h-3Fh. More details on the <strong>EEPROM</strong> memory can befound in Section 5.0.Additional information on device memory may be foundin the PICmicro Mid-Range Reference Manual,(DS33023).2.1 Program Memory OrganizationThe PIC16FXX has a 13-bit program counter capableof addressing an 8K x 14 program memory space.For the <strong>PIC16F84A</strong>, the first 1K x 14 (0000h-03FFh)are physically implemented (Figure 2-1). Accessing alocation above the physically implemented address willcause a wraparound. For example, for locations 20h,420h, 820h, C20h, 1020h, 1420h, <strong>18</strong>20h, and 1C20hwill be the same instruction.The reset vector is at 0000h and the interrupt vector isat 0004h.FIGURE 2-1:PROGRAM MEMORY MAPAND STACK - <strong>PIC16F84A</strong>PCCALL, RETURN13RETFIE, RETLWStack Level 1•User MemorySpaceStack Level 8Reset VectorPeripheral Interrupt Vector0000h0004h3FFh1FFFh© 1998 Microchip Technology Inc. Preliminary DS35007A-page 5

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

Saved successfully!

Ooh no, something went wrong!