
CS5954AM
ADVANCE
INFORMATION
Document #: 38-08025 Rev. **
Page 18 of 44
The current CS5954AM BIOS only support up to a 2Kbyte serial EEPROM. To read and write to a device that is larger than
2Kbytes, the CS5954AM-BIOS requires additional serial EEPROM to be connected as shown in Figure 4-4.
In this example, the CS5954AM BIOS will first access the (small) program residing on IC1 serial EEPROM, and then it will access
the second IC2 EEPROM (see [Ref. 1] SL11R_BIOS for more information).
4.13
External SRAM
The CS5954AM has a multiplexed address port and 16-bit data port. These interface signals are provided to interface to an
external SRAM. At boot up stage, the CS5954AM BIOS configures the CS5954AM for external SRAM and serial EEPROM. In
addition, the external memory interface is set up as 16-bit and seven wait states for both external SRAM and EEPROM.
Example 2 CS5954AM extended memory set-up:[17]
internal_rom_start:
mov
[0xC03A],0x0077
;set 16-bit ROM and 7 wait
cmp
[0xC100],0xCB36 ;check for special pattern in external ROM
je
0xC102
;if it’s there, jump to it
mov
[0xC006],0x10
;2/3 clock
mov
[0xC008],1
;at 24 MHz
mov
[0xC03E],3
;extra wait state for ROM and Debug
cmp
[0xC100],0xC3B6 ;external ROM has 0xC3B6 as first 16 bits
je
xrom_ok
cmp
b[0xC100],0xB6
;check 0xc3b6 for 8-bit ROM
jne
xrom_ok
or
[0xC03A],0x80
;set for 8-bit ROM
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:
4.13.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.13.2
Extended Memory Control Register (0xC03A: R/W)
This register provides control of Wait states for the external SRAM/EPROM.[18]
D12
RM
ROM Merge. If “1,” nXROMSEL is active if nXMEMSEL is active.
D11
EM3
Extended Memory Width (“0” = 16, “1” = 8)
D10–8EM2–0
Extended Memory Wait states (0–7)
D7
RO3
External ROM Width (“0” = 16, “1” = 8)
D6–4RO2–0
External ROM wait states (0–7)
D3
RA3
External RAM Width (“0” = 16, “1” = 8)
D2–0RA2–0
External RAM Wait States (0–7)
Notes:
17. The external memory devices can be 8 or 16 bits wide, and can be programmed to have up to seven wait-states. External SRAM/PROM requires one wait state.
18. The default Wait State setting on power-up or reset is seven wait states.
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
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