Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Embedded Controller Hardware Design (Ken Arnold, 2001).pdf
Скачиваний:
151
Добавлен:
12.08.2013
Размер:
1.22 Mб
Скачать

138EMBEDDED CONTROLLER

Hardware Design

We’ll now look at three typical design problems and show how to use the techniques described in this chapter to solve them.

Design Problem 1

For the same three paths in Figure 6-3, find the maximum allowable clock rate, given the slowest EPROM from Table 6-2. Use the specs for the -30 part which has a 300 nS access time and the same address latch specs in Table 6-3. Consider the 8031, EPROM, and 74ALS373 latch specs as discussed in the sections describing Paths A, B and C.

Solution: In this case, we are given the component timing, and we need to solve for the minimum clock period (T = 1/maximum clock frequency).

Path A:

The CPU allows TAVIV = 5*T-100 nS

The EPROM uses Taa = 300 nS

The limiting condition is TAVIV = Taa, so:

5T-100 = 300

5T = 400 T = 80 nS

Path B:

The CPU allows TAVIV = 5*T-100 nS

The EPROM uses Taa = 300 nS

The latch uses TPHL D->Q = 16 nS

The limiting condition is Taa + Tlatch = TAVIV, so:

TAVIV = Taa + Tplatch and TAVIV = 5T-100, so:

5T-100 = 300 + 16

5T = 416 T = 83 nS

Path C:

The limiting condition is TPLIV = Toe of the EPROM, so:

The EPROM Toe from the table is 120 nS

The equation is TPLIV = Toe

139CHAPTER SIX

A Detailed Design Example

Solving for T, we have:

3T - 100 = 120

3T = 220

T = 220/3 = 73 nS

Of all three paths, the longest period is due to Path B at 83nS, so it is the limit to the clock rate for the specs considered here.

Paths A and C are not constraints for this case.

So Path B is the limiting case when /OE is connected to /PSEN, and the maxi­ mum clock frequency is 1/83nS = 12 MHz.

Note that Path B is just at the spec limit for 12 MHz operation (1/83 nS = 12 MHz), so the maximum clock is 12 MHz, even for a faster EPROM.

Also notice that if /PSEN was instead connected to /CE, (Path C), the TPLIV spec would be the limiting factor: TPLIV = 3T-100 = Tce of the EPROM. The EPROM Tce from the table is 300 nS. Solving for T, we have:

3T-100 = 300

3T = 400

T = 400/3 = 133 nS.

For this case, 1/133 nS = 7.5 MHz would be the maximum allowable clock rate.

Design Problem 2

You have an existing processor design, and you need to define what the mini­ mum acceptable specs are for the program EPROM to determine which vendors and part numbers will work in the system. Assuming a clock rate of 12 MHz for the 8051, determine the following specs for the memory chip to be used with it, assuming the same address latch used in the previous examples, and find the maximum acceptable values for:

Tce max (chip enable acess time)

Taa max (address access time)

Tod max (output disable time, referred to as Tdf in the EPROM spec)

Assume /PSEN is connected to the EPROM /CE and EPROM /OE is grounded.