Kontron VM162 User Manual

Page 75

Advertising
background image

VM162/VM172

Chapter 4 Programming

July 19,1997

Page 4- 5

© PEP Modular Computers

8) Configure PEPAR register

• set /IOUT0-2 are PRTY0-2

• select /RAS1DD function

• select /WE0-3

• select AMUX

• select /CAS0-3

0x51C0.W -> PEPAR

9) Configure GMR register

• set refresh counter period to 24

• set refresh cycle length to 3

• set DRAM port size to 32 bit

• assert CS/RAS on CPU space

• enable refresh

0x18800100.L -> GMR

10)Configure autovector register

• enable autovector on levels 2, 3, 5 and 7

0xAC.B -> AVR

11)Configure Chip Select lines (General Example)

Note: It is important that the Chip Select lines are initialized in the sequence shown below. It should
also be noted that the following values need to be changed for various configurations of the on-board
memory (see note below).

• CS0: FLASH to 0x4000000, negate timing ‘040

0x4000011.L -> BR0

• CS0: size to 16 MByte, port size 32 bit, tcyc 3

0x3F000000.L -> OR0

• CS1: size to 64 MByte, port size 32 bit, tcyc 0, bcyc 1

0xC000001.L -> OR1

• CS1: DRAM to 0x0, burst acknowledge ‘040

0x21.L -> BR1

• CS2: size to 16 MByte, port size external, tcyc 1

0x1F000006.L -> OR2

• CS2: DMA - VME to 0x87000000

0x87000001.L -> BR2

• CS3: size to 16 MByte, port size external, tcyc 1

0x1F000006.L -> OR3

• CS3: AutoBahn to 0x9000000

0x9000001.L -> BR3

• CS4: size to 16 MByte, port size external, tcyc 1

0x1F000006.L -> OR4

• CS4: SRAM to 0xA000000

0xA000001.L -> BR4

Advertising
This manual is related to the following products: