Page 44
Epson Research and Development
Vancouver Design Center
S1D13503
Programming Notes and Examples
X18A-G-002-06
Issue Date: 01/01/30
Example 14: Write 12h to register 08h on the S5U13503B00C evaluation board; the base port address
is 310h, and indexed port mapping is used.
1.
Write 08h to the index register
The index register is at base port a 0 = 310h.
MOV DX,310h
MOV AL,08h
OUT DX,AL
2.
Write 12h to the data register
The data register is at base port a 1 = 311h.
MOV DX,311h
MOV AL,12h
OUT DX,AL
5.3.2 Direct Mapping
This method of addressing requires 16 sequential I/O addresses starting from the base I/O address. The base I/O address is
determined by the power-on state of the SRAM data lines VD[7 through 12]. See “Summary of Configuration Options” in
the S1D13503 Hardware Functional Specification, Drawing Office No. X18A-A-001-xx.
To access the internal 16 registers of the S1D13503, simply perform I/O read/write functions to the absolute address as
defined in the previous paragraph.
There is no memory banking available in direct addressing mode.
Example 15: Write 12h to register 08h on the S5U13503B00C evaluation board; the base port address
is 310h, and direct port mapping is used.
1.
Calculate the port address for register 08h.
2.
Write the value 12h to port address 318h.
MOV DX,318h
MOV AL,12h
OUT DX,AL
Note
The S5U13503B00C is normally configured for indexed mapping, not direct mapping. Refer to the
S5U13503B00C Evaluation Board User’s Manual for more information configuring the
S5U13503B00C board for indexed or direct mapping.
port address
310h
8h
+
318h
=
=
electronic components distributor