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.
Summary of Contents for 80C186EA
Page 1: ...80C186EA 80C188EA Microprocessor User s Manual...
Page 2: ...80C186EA 80C188EA Microprocessor User s Manual 1995...
Page 19: ......
Page 20: ...1 Introduction...
Page 21: ......
Page 28: ...2 Overview of the 80C186 Family Architecture...
Page 29: ......
Page 79: ......
Page 80: ...3 Bus Interface Unit...
Page 81: ......
Page 129: ......
Page 130: ...4 Peripheral Control Block...
Page 131: ......
Page 139: ......
Page 140: ...5 ClockGenerationand Power Management...
Page 141: ......
Page 165: ......
Page 166: ...6 Chip Select Unit...
Page 167: ......
Page 190: ...7 Refresh Control Unit...
Page 191: ......
Page 205: ......
Page 206: ...8 Interrupt Control Unit...
Page 207: ......
Page 239: ...INTERRUPT CONTROL UNIT 8 32...
Page 240: ...9 Timer Counter Unit...
Page 241: ......
Page 265: ......
Page 266: ...10 Direct Memory Access Unit...
Page 267: ......
Page 295: ...DIRECT MEMORY ACCESS UNIT 10 28...
Page 296: ...11 Math Coprocessing...
Page 297: ......
Page 314: ...12 ONCE Mode...
Page 315: ......
Page 318: ...A 80C186 Instruction Set Additions and Extensions...
Page 319: ......
Page 330: ...B Input Synchronization...
Page 331: ......
Page 334: ...C Instruction Set Descriptions...
Page 335: ......
Page 383: ...INSTRUCTION SET DESCRIPTIONS C 48...
Page 384: ...D Instruction Set Opcodes and Clock Cycles...
Page 385: ......
Page 408: ...Index...
Page 409: ......