Docsity

Embedded Systems Programming: Intel 8031 Timing Analysis (Part 1) - Prof. Stephen Kuyath, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Embedded Systems Programming: Intel 8031 Timing Analysis (Part 1) - Prof. Stephen Kuyath and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Embedded Systems Programming

ETEE 3285

Topic 15: Design Example: Part 1

Objectives

 To analyze the timing of a simple embedded system

design.

 Correct any problems that arise

A Detailed Design Example

 The design process is iterative in nature:

 Develop the preliminary logic design

 A simple block diagram showing the components of interest

 This design is analyzed for fanout limitations and violations of the

timing requirements for the various ICs

 Detailed timing diagrams, specifications, and timing analysis

 Modifications and additions are then made to the design to

correct the design or improve the system’s performance

 The modified design is then verified for fanout and timing

violations

 Once the process is understood more advanced designs

can be implemented

The Intel 8031

 The Intel 8031 microcontroller will be used in this design:

 Has a simple bus interface

 Has brief timing specifications

 Uses SRAM

 Incorporates relatively simple I/O

 Uses a Harvard architecture

 Uses a multiplexed address and data bus

 Uses three address spaces:

 internal RAM  external data RAM  external program ROM

PSEN, RD, & WR

 /PSEN (active low):

 Program Strobe ENable

 Indicates a program read cycle

 May be directly connected to enable the program ROM

 /RD (active low):

 Indicates a RAM data read cycle

 May be connected to the output enable pin of the data RAM

 /WR (active low):

 Indicates a RAM data write cycle

 May be connected to the write enable pin of the data RAM

Lower Address

 The lower eight address

bits are multiplexed on the

data bus

 They are held by a

transparent latch (74x373)

 The processor outputs an

active high enable signal to

control the latch

 ALE (address latch

enable)

ALE (not beer)

 The instruction fetch

(program memory

read) cycle of the Intel

#1: ALE goes active (high)

Enables the external latch to pass A0.. through to its outputs

PC

 The instruction fetch

(program memory

read) cycle of the Intel

#1: ALE goes active (high)

Enables the external latch to pass A0.. through to its outputs

This address is the 16-bit PC ( program counter ) value. The PC contains the address of the next instruction byte to be fetched from memory. It will be placed on the 16 address lines.

#2: The lower eight address lines A0..7 are placed on Port 0, at the same time as A8..15 are placed on Port 2.

As soon as the address lines are

stable and valid, address access time for the memory begins (tACC).

The address will be valid before ALE goes low, so an active high latch is used to give the memory the address as soon as possible.

Valid Address

Latch

#2: The lower eight address lines A0..7 are placed on Port 0, at the same time as A8..15 are placed on Port 2.

As soon as the address lines are

stable and valid, address access time for the memory begins (tACC).

The address will be valid before ALE goes low, so an active high latch is used to give the memory the address as soon as possible.

If a negative edge triggered register was used instead of the active high latch, then address bits A0..7 would not be available until some time after the falling edge of ALE

ALE

#3: Once the address lines are valid, ALE goes low, latching A0.. bits in the external address latch.

Data Bus

#3: Once the address lines are valid, ALE goes low, latching A0.. bits in the external address latch.

Now the multiplexed address/data bus can be used to transfer data

without disturbing the lower eight address lines

Which One?

#3: Once the address lines are valid, ALE goes low, latching A0.. bits in the external address latch.

Now the multiplexed address/data bus can be used to transfer data

without disturbing the lower eight address lines

Since the upper eight address lines (A8..15) are not multiplexed, they remain valid for the rest of the cycle and do not need to be latched.

So now, the Program EPROM and the Data SRAM have valid address inputs and are waiting for /PSEN or /RD or /WR to go low and enable one of the memory ICs.

/PSEN

#4: /PSEN goes active (low) to indicate that this is a program memory read cycle.