Книга: Advanced PIC Microcontroller Projects in C

2.1.2 Data Memory Organization

2.1.2 Data Memory Organization

The data memory map of the PIC18F452 microcontroller is shown in Figure 2.4. The data memory address bus is 12 bits with the capability to address up to 4Mbytes. The memory in general consists of sixteen banks, each of 256 bytes, where only 6 banks are used. The PIC18F452 has 1536 bytes of data memory (6 banks ? 256 bytes each) occupying the lower end of the data memory. Bank switching happens automatically when a high-level language compiler is used, and thus the user need not worry about selecting memory banks during programming.


Figure 2.4: The PIC18F452 data memory map

The special function register (SFR) occupies the upper half of the top memory bank. SFR contains registers which control operations such as peripheral devices, timers/counters, A/D converter, interrupts, and USART. Figure 2.5 shows the SFR registers of the PIC18F452 microcontroller.


Figure 2.5: The PIC18F452 SFR registers

Оглавление книги


Генерация: 1.563. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз