Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

is there anyone who knows bank swith of 8051?

Status
Not open for further replies.

gogogo

Member level 2
Joined
Jan 22, 2005
Messages
43
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
322
8051 bank switching

is there anyone who knows bank switch of 8051?
you know the largest address area is 64K,
how can i expand the address area,
as i know , through bank switch can,
but how do i do by this method?
is there any stuff introducing it??
thx
 

swith of

Hi,
If my memory is correct, IAR's C compiler had support for Bank Switching. The method they used was to use 2 or more pins of one of the IO ports to handle the physical addressing of the data and they had a special library to controll the access.

You can write your own code to handle the data. There are many different ways of doing it, hopefully someone has already the code for you here.

BR,
/Farhad
 

iar compiler banked model 8051

gogogo said:
is there anyone who knows bank switch of 8051?
you know the largest address area is 64K,
how can i expand the address area,
as i know , through bank switch can,
but how do i do by this method?
is there any stuff introducing it??
thx

The principles is:
Use additional port as chip select for bank.

For example if you will expand 8 chip of 64KB RAM.
16 Address line use P0 and P2 (as default) is connected to 16 bit address line of RAM.
Use 3 bit additional from P1 or P3 (example P1.0, P1.1 and P1.0) and connect to 3-8 decoder. The output of decoder is connected to each Chip Select of RAM.
In main program must be initiated the P1.0, P1.1, P1.2 all to 0's to select the first chip.
If you select the another chip, set P1.0, P1.1, P1.2 as you need.
 

8051 p1.1 p1.0

gogogo said:
is there anyone who knows bank switch of 8051?
you know the largest address area is 64K,
how can i expand the address area,
as i know , through bank switch can,
but how do i do by this method?
is there any stuff introducing it??
thx

A nice explanation:
**broken link removed**

**broken link removed**

**broken link removed**

and software:

**broken link removed**
Self-extracting file demonstrating methods for expanding memory beyond 64 KB.
BANKJMP1.asm: Demonstrates common-page memory expansion configuration using I/O.
BANKJMP2.asm: Demonstrates common-page memory expansion configuration using latched addressing.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top