
SL11R
Document #: 38-08006 Rev. **
Page 30 of 85
xrom_ok:
mov
[0xC00],0xC3B6
;check 0xC3B6 for 16-bit RAM
cmp
[0xC00],0xC3B6
je
xram_ok
or
[0xC03A],8
;set for 8-bit external RAM
xram_ok:
Note:
The external memory devices can be 8 or 16 bits wide, and can be programmed to have up to 7 wait-states. External SRAM/PROM
requires one wait state.
4.14.1
Memory Control Register (0xC03E: R/W)
This register provides control of Wait States for the internal RAM and ROM.
D2
RA
If ‘1’, one-wait state for internal RAM is added
D1
RO
If ‘1’, one-wait state for internal ROM is added
D0
DB
If ‘1’, DEBUG mode is enabled. Internal address bus is echoed to external address pins.
4.14.2
Extended Memory Control Register (0xC03A: R/W)
This register provides control of Wait States for the external SRAM/DRAM/EPROM.
D12
RM
ROM Merge. If ‘1’, nXROMSEL is active if nXMEMSEL is active.
D11
EM3
Extended Memory Width ('0' = 16, '1' = 8)
D10-8
EM2-0
Extended Memory Wait states (0 - 7)
D7
RO3
External ROM Width ('0' = 16, '1' = 8)
D6-4
RO2-0
External ROM wait states (0 - 7)
D3
RA3
External RAM Width ('0' = 16, '1' = 8)
D2-0
RA2-0
External RAM Wait States (0 - 7)
Note:
The default Wait State setting on power up or reset is 7 wait states.
4.14.3
Extended Page 1 Map Register (0xC018: R/W)
This register contains the Page 1 high order address bits. These bits are always appended to accesses to the Page 1 Memory
mapped space. The default is 0x0000.
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
000000
0000000
RA
RO
DB
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
RM
EM3
EM2
EM1
EM0
RO3
RO2
RO1
RO0
RA3
RA2
RA1
RA0
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
000000
0
A21
A20
A19
A18
A17
A16
A15
A14
A13