How to make management for RAM area with pages?
Some single
chip series depart memory data with pages for management, Ram divided into BANK0,
BANK1, even BANK2, such as SN8P2708A and some USB series MCU.
1. Define Bank1 RAM area when user defined more than one BANK ram, use can try the following way to define a variable BANK of ram.
.DATA //declare the following definitions for the variables
ORG 0X00 //BANK0 ram address
Buffer DS 1 //BANK0 variables
。。。。。。。。。。。。。。。。。。。。。。。。
ORG 0X100 //BANK1 ram address
Buffer1 DS 1 //BANK1 variables
2. Operation between Banks area, user needs to pay attention to change bank.
1. Define Bank1 RAM area when user defined more than one BANK ram, use can try the following way to define a variable BANK of ram.
.DATA //declare the following definitions for the variables
ORG 0X00 //BANK0 ram address
Buffer DS 1 //BANK0 variables
。。。。。。。。。。。。。。。。。。。。。。。。
ORG 0X100 //BANK1 ram address
Buffer1 DS 1 //BANK1 variables
2. Operation between Banks area, user needs to pay attention to change bank.