76
76
76
76
The address decoding and memory chip selects generation is done in the FPGA.
Since the Devkit16 Mainboard can be delivered with external SRAM memories
of 512K or 2M size, the FPGA decodes the address in a way that it reserves a
2M block in both the high memory block (HMB, 800000H-FFFFFFH) and
lower memory block (LMB, 010000H-800000H). In the LMB it is the
100000H-2FFFFFH area, in HMB it is E00000-FFFFFF. With the 512K version
of the Mainboard, the SRAM memory will therefore be mirrored in these areas
four times and the 256K FLASH eight times. For example, accessing address
100000H will do the same as address 180000H, 200000H and 280000H in the
SRAM memory (SWAP is off). Also, addresses E00000H, E40000H, E80000H
and so on will work the same for the 256K FLASH memory.
This allows using the whole 256K of FLASH (or 512K of SRAM when SWAP
is ON) in the mixed mode, when there is the internal FLASH on addresses
FC0000H-FFFFFFH - the external memory can be accessed on lower addresses
in the 2M block, e.g. E00000H.
The
Adr/IO
switch allows to use the A16-A23 CPU pins as a general I/O mode
pins. If the switch is on, any memory access above the 00FFFFh address is
mirrored to the 4000h-FFFFh area. The decode logic (FPGA) ignores the A16-
A23 address signals and the MirrorFF bit setting. This switch allows to use the
port P2 (A16-A23 signals) as general I/O without giving up the external
RAM/FLASH memory. It can be useful for developing mixed mode
applications with only one 64k external RAM memory bank, that need more I/O
External bus mode with MIRROR on
(SWAP off)
Peripheral
External-FPGA
Int. RAM 6K
External
Peripheral
FLASH - image of
FF4000-FFFFFF
Ext. RAM 512K
0000BFH
000000H
0018FFH
000100H
003900H
002000H
00FFFFH
004000H
Ext. FLASH 256K
180000H
100000H
FFFFFFH
FC0000H
FPGA res.
FPGA res.
E00000H
2FFFFFH
External bus mode with MIRROR on
and SWAP on
Peripheral
External-FPGA
Int. RAM 6K
External
Peripheral
FLASH - image of
FF4000-FFFFFF
Ext. FLASH 256K
0000BFH
000000H
0018FFH
000100H
003900H
002000H
00FFFFH
004000H
Ext. RAM 512K
140000H
100000H
FFFFFFH
F80000H
FPGA res.
FPGA res.
E00000H
2FFFFFH