CHIP-SELECT UNIT
6-20
Example 6-1. Initializing the Chip-Select Unit
$
TITLE
(Chip-Select Unit Initialization)
$ MOD186XREF
NAME
CSU_EXAMPLE_1
; External reference from this module
$
include(PCBMAP.INC
;File declares register
;locations and names.
; Module equates
; Configuration equates
INTRDY
EQU
0004H
;Internal bus ready modifier
EXTRDY
EQU
0000H
;External bus ready modifier
IO
EQU
0080H
;PCS Memory/IO select modifier
ALLPCS
EQU
0040H
;PCS/Latched address modifier
;Below is a list of the default system memory and I/O environment. These
;defaults configure the Chip-Select Unit for proper system operation.
;EPROM memory is located from 0E0000 to 0FFFFF (128 Kbytes).
;Wait states are calculated assuming 16MHz operation.
;UCS# controls the accesses to EPROM memory space.
EPROM_SIZE EQU 128
;Size in Kbytes
EPROM_BASE EQU 1024 - EPROM_SIZE;Start address in Kbytes
EPROM_WAIT EQU 1
;Wait states
;The UMCS register values are calculated using the above system contraints
;and the equations below.
UMCS_VAL EQU
(EPROM_BASE SHL 6)OR (0C038H) OR
&
(EPROM_RDY) OR
(EPROM_WAIT)
;SRAM memory starts at 0H and continues to 7FFFH (32 Kbytes).
;Wait states are calculated assuming 16MHz operation.
;LCS# controls the accesses to SRAM memory space.
SRAM_SIZE EQU
32
;Size in Kbytes
SRAM_BASE EQU
0
;Start address in Kbytes
SRAM_WAIT EQU
0
;Wait states
SRAM_RDY EQU
INTRDY
;Ignore bus ready
;The LMCS register value is calculated using the above system constraints
;and the equations below
LMCS_VAL EQU
((SRAM_SIZE - 1)SHL6) OR (0038H) OR
&
(SRAM_RDY)
OR (SRAM_WAIT)
;A DRAM interface is selected by the MCS3:0 chip-selects. The BASE value
;defines the starting address of the DRAM window. The SIZE value (along with
;the BASE ;value) defines the ending address. Zero wait state performance
;is assumed. The Refresh Control Unit uses DRAM_BASE to properly configure
;refresh operation.
Содержание 80C186XL
Страница 1: ...80C186XL 80C188XL Microprocessor User s Manual...
Страница 2: ...80C186XL 80C188XL Microprocessor User s Manual 1995...
Страница 18: ...1 Introduction...
Страница 19: ......
Страница 27: ......
Страница 28: ...2 Overview of the 80C186 Family Architecture...
Страница 29: ......
Страница 79: ......
Страница 80: ...3 Bus Interface Unit...
Страница 81: ......
Страница 127: ......
Страница 128: ...4 Peripheral Control Block...
Страница 129: ......
Страница 137: ......
Страница 138: ...5 ClockGenerationand Power Management...
Страница 139: ......
Страница 154: ...6 Chip Select Unit...
Страница 155: ......
Страница 178: ...7 Refresh Control Unit...
Страница 179: ......
Страница 193: ......
Страница 194: ...8 Interrupt Control Unit...
Страница 195: ......
Страница 227: ......
Страница 228: ...9 Timer Counter Unit...
Страница 229: ......
Страница 253: ......
Страница 254: ...10 Direct Memory Access Unit...
Страница 255: ......
Страница 283: ......
Страница 284: ...11 Math Coprocessing...
Страница 285: ......
Страница 302: ...12 ONCE Mode...
Страница 303: ......
Страница 306: ...A 80C186 Instruction Set Additions and Extensions...
Страница 307: ......
Страница 318: ...B Input Synchronization...
Страница 319: ......
Страница 322: ...C Instruction Set Descriptions...
Страница 323: ......
Страница 371: ......
Страница 372: ...D Instruction Set Opcodes and Clock Cycles...
Страница 373: ......
Страница 396: ...Index...
Страница 397: ......