ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

EMBED THIS PC part 2


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

EMBED THIS PC

Lessons from the TrenchesPART 2: Emulator and EPROM Basics
by George Martin

Start ı Making The Choice ı Getting The Debugger Going ı Putting It All Together ı Sources and PDF

PUTTING IT ALL TOGETHER

Now that Iıve selected a CPU, DRAM, and BIOS, Iıll try to put together a design. Take a look at the AMD ELAN SC400. You can find the schematics for the development boards at the AMD web site. The CPU comes in a 292-pin ball-grid array (BGA) package.

Iıll start by connecting the DRAM. I use OrCAD as my design-capture software, but Iım still in the 16-bit DOS version, so Iım hesitant about posting those schematics. And, unless your requirements exactly match mine, youıll be rolling your own schematics anyway. Hopefully, the AMD web site and this series will give you what you need to be able to generate your own schematics.

Let me try this approach. Table 1 illustrates the DRAM connections. Most are directly connected to the CPU, while some go through buffers. Depending on your specific application, you may not require the buffers. Remember my previous article on defects. Well, the type of mistake I tend to make is with errors in large tables of dataılike that spreadsheet. So, check my work. Donıt just copy it.

DRAM 1

DRAM 3

DRAM 2

DRAM 4

Bank 0

Bank 1

Buffer

Signal

Low

High

Low

High

MA0

17

17

17

17

18

74LVTH244ADW

2

MA1

18

18

18

18

16

74LVTH244ADW

4

MA2

19

19

19

19

14

74LVTH244ADW

6

MA3

20

20

20

20

12

74LVTH244ADW

8

MA4

23

23

23

23

9

74LVTH244ADW

11

MA5

24

24

24

24

7

74LVTH244ADW

13

MA6

25

25

25

25

5

74LVTH244ADW

15

MA7

26

26

26

26

3

74LVTH244ADW

17

MA8

27

27

27

27

18

74LVTH244ADW

2

MA9

28

28

28

28

16

74LVTH244ADW

4

Table 1ıHere are the DRAM connections for the Elan SC400. As you can see, DRAM 1 and 2 share Bank 0, while DRAM 3 and 4 share Bank 1.

As you can see, it looks pretty straightforward. I connected two banks of DRAM (each bank is 1M x 32) to the CPU using the 1M x 16 DRAM devices I talked about earlier. This gives a total of 8 MB of DRAM.

Now, let me configure the CPU to use the DRAM. The ELAN SC400 has configuration registersılots of them! Much of the classic PC architecture is preserved 100%, so the COM0: I/O addresses are unchanged. To find places for the new registers without causing a conflict with the existing code base, AMD found a few free I/O registers using a different technique. It adopted an index register into the new register set. For example, I/O addresses 0x22 and 0x23 are the register pair used to configure DRAM. In I/O address 0x22, I write the index, and in I/O address 0x23, I write the value:

Outb(0x22, 0x00);
Outb(0x23, 0xAD);

The first instruction points the index register to index zero, while the second instruction sets the value. Index register zero is the DRAM Bank0 configuration register, and the value 0xAA does the following:

1 = Bank 0 Enabled
0 = Reserved AMD
1 = EDO type DRAM
0 = Symmetrical Addressing
1 = 32-bit DRAM interface (for speed!!!)
010 = 1-Mb deep bank

These are the values required for this particular DRAM and design. Youıll quickly notice that the CPU supports many more options than youıll ever come across in your design experience. But, itıs good to know theyıre all there.

LOOKING AHEAD

This should give you a start on your project. Next month, Iıll go further into the software, taking a closer look at the EPROM emulator and real versus protected mode.

As you poke away at your initial design, remember indecision is the key to flexibility.

PREVIOUSNEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ıCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ