Microprocessor Based System: My Lord! Advance Me in Knowledge and True Understanding
Microprocessor Based System: My Lord! Advance Me in Knowledge and True Understanding
Microprocessor Based System: My Lord! Advance Me in Knowledge and True Understanding
ِ
ْ ًِْ َو رْ ُز
ِ ْب زد
َر
My Lord! Advance me in Knowledge and true
understanding
Reliability
• reliable design will have long MTBF (Mean Time Between Failures)
and short MTTR (Mean Time to Repair)
• design approach with consideration to components tolerance & the
way h/w failures can affect the system -> increase the reliability
Hardware Reliability and Testability
Why Hardware Fails
• The blunder – obvious errors. Example: wrong connection, specify
wrong gates can be avoided by confirming it through simulation
prototype
• Logic Fan-out – driving logic gates larger than spec. (TTL gate can
feed up to 10 digital gates/devices)
• The stuck at fault – some logic output permanently stuck at 0 or stuck
at 1. Example: some bit on address/data bus grounded due to short
circuit between PCB tracks.
• Timing tolerance – overlooked timing parameters of devices such as
access time of ROM / RAM, gate delays, setup time& hold time
• Faulty IC, Faulty PCB, not enough power etc
Hardware Reliability and Testability
Design for Testability
• Objective: to design µP based systems such that faults can be located
with minimum effort.
• 2 things necessary to achieve testability
• Ability to monitor activity within a µP based systems
• Ability to influence this activity
• A µP based systems should be designed so that as many internal
signals as possible are available off board for monitoring and
influencing.
• May required extra connector to be added to the board for test
purposes. This provides facility for automatic testing.
• May not be possible for low cost, high volume system
Hardware Reliability and Testability
Design for Testability (cont)
• Maximize access to the input & output – provides test points & test input
paths
• Self testing – run self test routine when system is switch on or during
operation. Test main components ROM, RAM, I/O & indicates
success/failure.
• Adopt a modular approach to design – decompose the design into parts
that interact in well-defined, limited ways. System testing can be done
part by part.
• Place “important” devices in sockets – testing/replacing IC easier, but
sockets are less reliable and cost more than ICs!!!
• Avoid using marginal design – never design h/w that operates close to
the guarantee parameters. (tolerance design)
SECTION 7.1-7.4
Gnd Gnd
CPU Spec & Pin Description: Input / Output
Function Code Output
• This group of signals is used to
FC2 FC1 FC0 Cycle Type (Currently output encoded processor
executing) status.
0 0 0 Reserved • Indicates the current internal
processing state of the 68000
0 0 1 User Data
• These codes are only valid when
0 1 0 User Program AS* signal is active (AS* is low)
0 1 1 Reserved • Ex.: Use 3-to-8 decoder 74LS138
1 0 0 Reserved
AS* 6
1 0 1 Supervisor Data FC 28
0
INTACK*
D0-D7 D0-D7
E, VMA*, VPA*
HALT
T >= 100ms Execution
begin
CPU Spec & Pin Description: Input / Output
IPL0*, IPL1*, IPL2 * (Input IPL2 IPL1 IPL0 Interrupt
pins) Level
1 1 1 0 (lowest,
• Interrupt control none)
Add
A1-A23
bus
68000
1
BR
2 Alternate bus
BG master
3
BGACK
Data
D0-D15
bus
Control
AS, LDS, UDS, DTACK
bus
CPU Spec & Pin Description: Input / Output
BR* (in), BG* (out) & BGACK* (in)
CPU Spec & Pin Description: Input / Output
AS*, R/W*, UDS*, LDS* & DTACK*
• Asynchronous bus control (Asynchronous data transfer) contains 5 signals
• AS, R/W*, UDS*, LDS* – Output
• DTACK* – Input
• AS* (Address Strobe) – signal to indicate valid memory add. exist in add
bus
• R/W* – determine cycle : read or write cycle
• UDS* (Upper Data Strobe) – 8-15bit / LDS* (Lower Data Strobe) – 0-7 bit,
used to gate 8 bit info to/from 68000 bus. Choose which to activate.
• DTACK* (data transfer ack.) used by external circuit to perform
asynchronous data transfer.
• How do we perform sync. data transfer ?????
CPU Spec & Pin Description: Input / Output
A1 through A23, D0 Through D15
• Address and Data busses
• Address bus – A0: UDS, LDS
• A1 – A23 unidirectional (output only)
• D0 through D15 bidirectional
• Except interrupt acknowledge cycle, A1-A3 interrupt level, others high, D0-D7
(transmit interrupt vector number by external device)
CPU Spec & Pin Description: Bus Buffering
• Buffering address and Data Bus
DB15
DB8
DB0
DB7
74LS244
74LS244
74LS244
LS245
LS245
Dir
Dir
EN
EN
EN
EN
EN
D15
LSD
D0
D7
D8
A14
A15
USD
R/W
A1
A6
A7
A22
A23
CPU
CPU Spec & Pin Description:
+5V +/- 5%
Input / Output
D0 – D15
CLK
VCC VCC
Data bus
A1 – A23
Add Bus
FC0
FC1 AS
Processor Status FC2 R/W
UDS Asyn Bus Ctrl
LDS
DTACK
E
68000 Peripheral Ctrl VMA BR