SST-DN4-PCU
Hardware Reference Guide
34
Hardware
Register
Details
©2009 Molex Inc.Automation & Electrical Products, Integrated Products Division
Document Edition: 1.0, Document #: 715-0101, Template Edition: 1.1, Template #: QMS-06-045
Use, duplication or disclosure of this document or any of the information contained herein is subject to the restrictions on page ii of this document.
Bit and Value
Window Size and Bank Number
BA19 BA18 BA17 BA16 BA15 BA14 BA13 BA12
8k
16k
32k
64k
128k
256k
x x 1 0 1 0 0 x 20 10 5 2 1 0
x x 1 0 1 0 1 x 21 10 5 2 1 0
x x 1 0 1 1 0 x 22 11 5 2 1 0
x x 1 0 1 1 1 x 23 11 5 2 1 0
x x 1 1 0 0 0 x 24 12 6 3 1 0
x x 1 1 0 0 1 x 25 12 6 3 1 0
x x 1 1 0 1 0 x 26 13 6 3 1 0
x x 1 1 0 1 1 x 27 13 6 3 1 0
x x 1 1 1 0 0 x 28 14 7 3 1 0
x x 1 1 1 0 1 x 29 14 7 3 1 0
x x 1 1 1 1 0 x 30 15 7 3 1 0
x x 1 1 1 1 1 x 31 15 7 3 1 0
* x = don’t care
Table 11: Bank Address Register Bit Descriptions
Bit Name
Description
BA17-13
The channel has 256k of memory accessible to the host. The Bank Address bits select which bank
of memory the host can access. For example, in 16k mode, the bank number may be 0 through 15
(or 0x0 - 0xf).
•
BA17-BA13 represent the bank address
•
Bank numbers depend on the window size, selected using the WinSize bits. Refer to
Table 15:
BankSize Register Values
, for more information.
To access any flat address of memory, “ADDR” in any window size, set the Bank Address bits
to bits 19-12 of the address. In C, you would write:
outport( BankSelect, addr>>12);
offset= addr & ((inport( WinSize ) <<12 ) | 0x0FFF);