Alex Milenkovich 1. CPE/EE 421 Microcomputers: Motorola The CPU Hardware Model. Outline

Size: px
Start display at page:

Download "Alex Milenkovich 1. CPE/EE 421 Microcomputers: Motorola The CPU Hardware Model. Outline"

Transcription

1 Outline CPE/EE 421 Microcomputers: Motorola The CPU Hardware Model Instructor: Dr Aleksandar Milenkovic Lecture Notes interface Timing diagram Minimal configuration using the Extensions Exception Processing CPE/EE 421/521 Microcomputers Interface M68000: 64 pins, arranged in 9 groups: Address Bus: A 01 A 23 Data Bus: D 00 D 15 Asynchronous bus control: AS*, R/W*, UDS*, LDS*, DTACK*, BERR* Synchronous bus control: E, VPA*, VMA* Bus arbitration control: BR*, BG*, BGACK* Function code: FC0, FC1, FC2 System control: CLK, RESET*, HALT* Interrupt control: IPL0*, IPL1*, IPL2* Miscellaneous: Vcc(2), Gnd(2) Legend: Type XX Input XX Output XX Input/Output CPE/EE 421/521 Microcomputers Interface, cont d Classification of pins based on function SYSTEM SUPPORT PINS Essential in every system (power supply, clock, ) MEMORY AND PERIPHERAL INTERFACE PINS Connect the processor to an external memory subsystem SPECIAL-PURPOSE PINS (not needed in a minimal application of the processor) Provide functions beyond basic system functions Terminology Asterisk following a name: indicates the signal is active low Signal is asserted means signal is placed in its active state Signal is negated means signal is placed in its inactive state CPE/EE 421/521 Microcomputers 4 Alex Milenkovich 1

2 System Support Pins Power Supply Single +5V power supply: 2 Vcc pins and 2 ground pins Clock Single-phase, TTL-compatible signal Bus cycle: memory access, consists of a minimum 4 clock cycles Instruction: consists of one or more bus cycles RESET* Forces the into a known state on the initial application of power: supervisor s A7 is loaded from memory location $ Program counter is loaded from address $ During power-up sequence must be asserted together with the HALT* input for at least 100 ms. Acts also as an output, when processor executes the instruction RESET (used to reset peripherals w/out resetting the 68000) CPE/EE 421/521 Microcomputers 5 System Support Pins, cont d HALT* In simple systems can be connected together with RESET* Can be used: by external devices to make the stop execution after current bus cycle (and to negate all control signals) to single-step (bus cycle by bus cycle) through program to rerun a failed bus cycle (if memory fails to respond correctly) in conjunction with the bus error pin, BERR* It can be used as an output, to indicate that the found itself in situation from which it cannot recover (HALT* is asserted) CPE/EE 421/521 Microcomputers 6 Memory and Peripheral Interface Pins Memory and Peripheral Interface Pins, cont d Address Bus 23-bit address bus, permits bit words to be addressed Tri-state output pins (to permit devices other then the CPU to take a control over it) Auxiliary function: supports vectored interrupts Address lines A01, A02, A03 indicate the level of the interrupt being serviced All other address lines are set to a high level Data Bus AS* When asserted, indicates that the content of the address bus is valid. R/W* Determines the type of a memory access cycle CPU is reading from memory: R/W* = 1 CPU is writing to memory: R/W* = 0 If CPU is performing internal operation, R/W* is always 1 When CPU relinquishes control of its busses, R/W* is undefined UDS* and LDS* Bi-directional 16-bit wide data bus Used to determine the size of the data being accessed During a CPU read cycle acts as an input If both UDS* and LDS* are asserted, word is accessed During a CPU write cycle acts as an output R/W* UDS* LDS* Byte operations: only D00-D07 or D08-D15 are active 010: write lower byte (D Interrupting device identifies itself to the CPU by placing an 00 D 07 : data valid, replicated on D 8 -D 15 ) 011: write word (D interrupt vector number on D00-D07 during an interrupt 00 D 15 : data valid) 101: read upper byte (D acknowledge cycle 00 D 07 : invalid, D 8 -D 15 data valid) CPE/EE 421/521 Microcomputers 7 CPE/EE 421/521 Microcomputers 8 Alex Milenkovich 2

3 Memory and Peripheral Interface Pins, cont d DTACK* (Data Transfer Acknowledge) Handshake signal generated by the device being accessed Indicates that the contents of the data bus is valid If DTACK* is not asserted, CPU generates waitstates until DTACK goes low or until an error state is declared. When DTACK* is asserted, CPU completes the current access and begins the next cycle Memory and Peripheral Interface Pins, cont d Figure 4.3 DTACK* has to be generated a certain time after the beginning of a valid memory access (timer supplied by the system designer). CPE/EE 421/521 Microcomputers 9 CPE/EE 421/521 Microcomputers 10 Special-Function Pins of the BERR* (Bus Error Control) Enables the to recover from errors within the memory system BR*, BG*, BGACK* (Bus Arbitration Control) Used to implement multiprocessor systems based on M68000 FC0-FC2 (Function Code Output) Indicate the type of cycle currently being executed Becomes valid approximately half a clock cycle earlier than the contents of the address bus IPL0*-IPL2* (Interrupt Control Interface) Used by an external device to indicate that it requires service 3-bit code specifies one of eight levels of interrupt request Special-Function Pins of the Function Code Outputs Function Code Output FC2 FC1 FC0 Processor Cycle Type Undefined, reserved User data User program Undefined, reserved Undefined, reserved Supervisor data Supervisor program CPU space (interrupt acknowledge) CPE/EE 421/521 Microcomputers 11 CPE/EE 421/521 Microcomputers 12 Alex Milenkovich 3

4 Special-Function Pins of the Using FC Outputs Special-Function Pins of the Asynchronous Bus Control User data memory User program memory Figure 4.8 Supervisor program and data memory CPE/EE 421/521 Microcomputers 13 The is not fully asynchronous because its actions are synchronized with a clock input Figure 4.11 It can prolong a memory access until an ACK is received, but it has to be in increments of one clock cycle CPE/EE 421/521 Microcomputers 14 Outline interface Timing diagram Minimal configuration using the Extensions Exception Processing Timing Diagram of a Simple Flip-Flop Idealized form of the timing diagram Actual behavior of a D flip-flop Data hold time Data setup time Max time for output to become valid after clock CPE/EE 421/521 Microcomputers 15 CPE/EE 421/521 Microcomputers 16 Alex Milenkovich 4

5 General form of the timing diagram An alternative form of the timing diagram The Clock A microprocessor requires a clock that provides a stream of timing pulses to control its internal operations A memory access takes a minimum of eight clock states numbered from clock state S0 to clock state S7 CPE/EE 421/521 Microcomputers 17 CPE/EE 421/521 Microcomputers 18 A memory access begins in clock state S0 and ends in state S7 The most important parameter of the clock is the duration of a cycle, t CYC. CPE/EE 421/521 Microcomputers 19 CPE/EE 421/521 Microcomputers 20 Alex Milenkovich 5

6 At the start of a memory access the CPU sends the address of the location it wishes to read to the memory Address Timing We are interested in when the generates a new address for use in the current memory access The next slide shows the relationship between the new address and the state of the s clock CPE/EE 421/521 Microcomputers 21 CPE/EE 421/521 Microcomputers 22 Initially, in state S0 the address bus contains the old address In state S1 a new address becomes valid for the remainder of the memory access CPE/EE 421/521 Microcomputers 23 The time at which the contents of the address bus change can be related to the edges of the clock. CPE/EE 421/521 Microcomputers 24 Alex Milenkovich 6

7 Address Timing Let s look at the sequence of events that govern the timing of the address bus The old address is removed in state S0 The address bus is floated for a short time, and the CPU puts out a new address in state S1 The old address is removed in clock state S0 and the address bus floated CPE/EE 421/521 Microcomputers 25 CPE/EE 421/521 Microcomputers 26 t CLAV The designer is interested in the point at which the address first becomes valid. This point is t CLAV seconds after the falling edge of S0. CPE/EE 421/521 Microcomputers 27 The memory needs to know when the address from the CPU is valid. An address strobe, AS*, is asserted to indicate that the address is valid. CPE/EE 421/521 Microcomputers 28 Alex Milenkovich 7

8 Address and Address Strobe We are interested in the relationship between the time at which the address is valid and the time at which the address strobe, AS*, is asserted When AS* is active-low it indicates that the address is valid We now look at the timing of the clock, the address, and the address strobe CPE/EE 421/521 Microcomputers 29 AS* goes active low after AS* goes inactive the address has become valid high before the address changes CPE/EE 421/521 Microcomputers 30 AS* goes low in clock state S2 The Data Strobes The has two data strobes LDS* and UDS*. These select the lower byte or the upper byte of a word during a memory access To keep things simple, we will use a single data strobe, DS* The timing of DS* in a read cycle is the same as the address strobe, AS* CPE/EE 421/521 Microcomputers 31 CPE/EE 421/521 Microcomputers 32 Alex Milenkovich 8

9 The Data Bus During a read cycle the memory provides the CPU with data The next slide shows the data bus and the timing of the data signal Note that valid data does not appear on the data bus until near the end of the read cycle The data strobe, is asserted at the same time as AS* in a read cycle CPE/EE 421/521 Microcomputers 33 CPE/EE 421/521 Microcomputers 34 Data from the memory appears near the end of the read cycle Analyzing the Timing Diagram We are going to redraw the timing diagram to remove clutter We aren t interested in the signal paths themselves, only in the relationship between the signals CPE/EE 421/521 Microcomputers 35 CPE/EE 421/521 Microcomputers 36 Alex Milenkovich 9

10 We are interested in the relationship between the clock, AS*/DS* and the data in a read cycle CPE/EE 421/521 Microcomputers 37 The earliest time at which the memory can begin to access data is measured from the point at which the address is first valid CPE/EE 421/521 Microcomputers 38 Address becomes valid Data becomes valid The time between address valid and data valid is the memory s CPE/EE access 421/521 time, Microcomputers t 39 acc Calculating the Access Time We need to calculate the memory s access time By knowing the access time, we can use the appropriate memory component Equally, if we select a given memory component, we can calculate whether its access time is adequate for a particular system CPE/EE 421/521 Microcomputers 40 Alex Milenkovich 10

11 Data from the memory is latched into the by the falling edge of the clock in state S6. CPE/EE 421/521 Microcomputers 41 Data must be valid t DICL seconds before the falling edge of S6 CPE/EE 421/521 Microcomputers 42 We know that the time between the address valid and data valid is t acc CPE/EE 421/521 Microcomputers 43 The address becomes valid t CLAV seconds after the falling edge of S0 CPE/EE 421/521 Microcomputers 44 Alex Milenkovich 11

12 From the falling edge of S0 to the falling edge of S6: the address becomes valid the data is accessed the data is captured CPE/EE 421/521 Microcomputers 45 The falling edge of S0 to the falling edge of S6 is three clock cycles CPE/EE 421/521 Microcomputers 46 Timing Example clock 8 MHz t CYC = 125 ns CPU t CLAV = 70 ns CPU t DICL = 15 ns What is the minimum t acc? 3 t CYC = t CLAV + t acc + t DICL 375 = 70 + t acc + 15 t acc = 290 ns 3 t cyc = t CLAV + t acc + t DICL CPE/EE 421/521 Microcomputers 47 CPE/EE 421/521 Microcomputers 48 Alex Milenkovich 12

13 A Read Cycle Extended Read Cycle DTACK* did not go low at least 20ns before the falling edge of state S4 Figure 4.15 Figure 4.14 CPE/EE 421/521 Microcomputers 49 Designer has to provide logic to control DTACK* CPE/EE 421/521 Microcomputers 50 Memory Timing Diagram Memory Timing (min 200ns Diagram, address stable) cont d The 6116 static memory component 2K x 8bit memory byte-oriented! Two 6116 s configured in parallel to allow word accesses Eleven address inputs (usually derived from UDS*/LDS*) (max 200ns) Data is floating Figure 4.18 CPE/EE 421/521 Microcomputers 51 Figure 4.17 Assumptions: (max 15ns) R/W* is high for the duration of the read cycle OE* is low (max 50ns) CPE/EE 421/521 Microcomputers 52 Alex Milenkovich 13

14 RAMCS Inputs UDS Outputs CS2 AS* LDS* CS1* Operation 1 X* X* A 01 X 1 1* No operation D 00 X 1 X X 1 1 No operation Word read D A Upper byte read Lower byte read No operation Connecting The 6116 RAM to a CPU A 12 A 23 D 08 D 15 A 01 A 11 A 01 A 11 Figure 4.19 CPE/EE 421/521 Microcomputers 53 Connecting The 6116 RAM to a CPU Timing Diagram Figure ns 10ns 60ns Turnoff time = 140ns CPE/EE 421/521 Microcomputers 54 Timing Example clock 8 MHz t CYC = 125 ns CPU t CLAV = 70 ns CPU t DICL = 15 ns What is the minimum t acc? 3 t CYC >t CLAV +t acc +t DICL 375 > 70 + t acc + 15 t acc < 290 ns (or t AA from the timing diagram, access time) For the 12.5MHz version of t CYC = 80 ns CPU t CLAV = 55 ns CPU t DICL = 10 ns 3 80 > 55 + t acc + 10 t acc < 175 ns Remember, maximum t AA for the 6116 RAM was 200 ns CPE/EE 421/521 Microcomputers Write Cycle transmits a byte or a word to memory or a peripheral Essential differences: The CPU provides data at the beginning of a write cycle One of the bus slaves (see later) reads the data In a read cycle DS* and AS* were asserted concurrently This will be not a case here! Reason for that: asserts DS* only when the contents of data bus have stabilized Therefore, memory can use UDS*/LDS* to latch data from the CPU CPE/EE 421/521 Microcomputers 56 Alex Milenkovich 14

15 Simplified write cycle timing diagram Write Cycle In a write cycle: UDS*/LDS* is asserted one cycle after AS* Follow this sequence of events in a write cycle: Address stable AS* asserted R/W* brought low Data valid DS* asserted Figure 4.22 CPE/EE 421/521 Microcomputers 57 CPE/EE 421/521 Microcomputers 58 Figure 4.23 Write Cycle Timing Diagram of a 6116 RAM Write Cycle Timing Diagram of a 6116 RAM, cont d Write recovery time (min 10ns) Address setup time (min 20ns) Address valid to end of write (min 120ns) Write pulse width (min 90ns) Figure 4.24 CPE/EE 421/521 Microcomputers 59 Write cycle ends with either CS* or WE* being negated (CS* and WE* internally combined) An address must be valid for at least t AS nanoseconds before WE* is asserted Must remain valid for at least t WR nanoseconds after WE* is negated Data from the CPU must be valid for at least t DW nanoseconds before WE* is negated Must remain valid for at least t DH nanoseconds after the end of the cycle CPE/EE 421/521 Microcomputers 60 Alex Milenkovich 15

16 Designing a Memory Subsystem An Example Design a M68000 memory subsystem using Two 32K 8 RAM chips residing at address $ Two 8K 8 RAM chips residing in the consecutive window LS 138 (3 to 8 decoder) and basic logic gates Solution 32K is 4 8K => Let s split the address space into 8K modules In total, we have five (4+1) 8K windows To address each line in 8K window => 13 bits (23*210 = 213 = 8K) To address five modules we need 3 bits Don t forget that there is no A0, we will use LDS/UDS A 23 A 22 A 21 A 20 A 19 A 18 A 17 A 16 A 15 A 14 A 13 A 12 A 11 A 10 A 09 A 08 A 07 A 06 A 05 A 04 A 03 A 02 A 01 A 00 A17... A23 Designing a Memory Subsystem An Example A14 A15 A16 AS* Vcc module address LS138 A B C E1 E2 E3 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 address within 8K module RAM1* RAM2* LDS* UDS LDS R1CSL* R2CSL* R1CSU* R2CSU* CPE/EE 421/521 Microcomputers 61 UDS* CPE/EE 421/521 Microcomputers 62 Designing a Memory Subsystem An Example Interrupt Control Interface (details later) D0..D15 A1..A23 low p ri A1 A0 D0 D0 A1 A0 D0 D8... A15 A14 D1 D2 D1 D2... A15 A14 D1 D2 D9 D10 o ri R/W* R1CSL* WE* CE* OE* RAM 32Kx8 D3 D4 D5 D6 D7 D3 D4 D5 D6 D7 R/W* R1CSLU* WE* CE* OE* RAM 32Kx8 D3 D4 D5 D6 D7 D11 D12 D13 D14 D15 high t y R/W* R2CSL* A1 A0... A13 A12 WE* CE* OE* RAM 8Kx8 D0 D1 D2 D3 D4 D5 D6 D7 D0 D1 D2 D3 D4 D5 D6 D7 R/W* R2CSLU* A1 A0... A13 A12 WE* CE* OE* RAM 8Kx8 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 Figure 4.9 CPE/EE 421/521 Microcomputers 63 CPE/EE 421/521 Microcomputers 64 Alex Milenkovich 16

17 Bus Arbitration Control Bus Arbitration Control, cont d When controls the address and data buses, we call it the bus master The may allow another or DMA controller to take control over buses In the system with only one bus master, would have permanent control of the address and data buses Address bus Data bus Control bus Slave module Memory Arbitration bus Master module Master module CPU Local CPU Local memory memory I/O I/O CPE/EE 421/521 Microcomputers must respond to BR* request (it cannot be masked) Assertion of BG* indicates that the bus will be given up at the end of present bus cycle Requesting device waits until AS*, DTACK*, and BGACK* have been negated, and only then asserts its own BGACK* output Old master negates its BG*, and BR* can be asserted by another potential master CPE/EE 421/521 Microcomputers 66 Data Bus Contention in Microcomputers Data Bus Contention in Microcomputers, cont d Situation where more than one device attempts to drive the bus simultaneously Example: Two memory modules, M1 selected during read cycle 1, M2 selected during read cycle 2 Assumption: M1 has data bus drivers with relatively long turn-off times M2 has data bus drivers with relatively short turn-on times Long turn-off time Short turn-on time Figure 4.27a CPE/EE 421/521 Microcomputers 67 CPE/EE 421/521 Microcomputers 68 Alex Milenkovich 17

18 Bus Contention and Data Bus Transceivers Outline interface Timing diagram Minimal configuration using the Extensions Exception Processing Data bus transceiver consists of a transmitter (driver) and a receiver Driver tristate output, can be driven high, low, or internally disconnected form the rest of the circuit Two control inputs: Enable (active low) and DIR (direction) Dynamic data bus contention CPE/EE 421/521 Microcomputers 69 CPE/EE 421/521 Microcomputers 70 DESIGN CONSTRAINTS Used in stand-alone mode Classroom teaching aid 16 KB EPROM-based monitor Speed is not important At least 4 KB RAM 1 serial and 1 parallel port Memory expandable No interrupts and multiple processors MAJOR COMPONENTS ROM Two 8K 8 components RAM Two 2K 8 components Parallel 6821 Peripheral Interface Adapter (PIA) Serial 6850 Asynchronous Comm. Interface Adapter (ACIA) CPE/EE 421/521 Microcomputers 71 CPE/EE 421/521 Microcomputers 72 Alex Milenkovich 18

19 DESIGH CHOICES The s Reset Sequence Chose the location of ROM (16KB) and RAM (8 KB) within the address space (16 MB) Unimportant, as long as the reset vectors are located at $ Chose the location of memory-mapped peripherals Control of DTACK* (is delay applied or not?) RESET SEQUENCE Set SR S bit to 1 Set SR T bit to 0 Set SR mask to 111 Fetch SSP from address 0 Transfer longword to SSP Bus error occurs? Double bus error FATAL ERROR Fetch initial PC from address 4 Bus error occurs? Transfer longword to PC Begin processing in the supervisor state CPE/EE 421/521 Microcomputers 73 CPE/EE 421/521 Microcomputers 74 REMEMBER When the RESET* pin is asserted for the appropriate duration: SR = $2700 SSP is loaded with the $ PC is loaded with the $ CPE/EE 421/521 Microcomputers 75 Block Diagram of a based microcomputer Figure 4.43 CPE/EE 421/521 Microcomputers 76 Alex Milenkovich 19

20 Memory and Peripheral Components We assigned address lines to address pins, and data lines to data pins. Before designing logic that will generate chip select signals, we have to decide about RAM/ROM location. To assure that the reset vector location is at $ , let s situate 16 KB of ROM at $ CPE/EE 421/521 Microcomputers 77 Memory and Peripheral Components Figure 4.44 CPE/EE 421/521 Microcomputers 78 Control Section We will divide the memory space $ $01 FFFF into eight blocks of 16 KB (IC1a,b, IC2a, IC3) 16 KBytes of ROM are at $ to $00 3FFF Where is the RAM situated? Peripherals? Note: there is no delay applied to DTACK*. What will happen if we access nondecoded memory? Control Section Figure 4.45 CPE/EE 421/521 Microcomputers 79 CPE/EE 421/521 Microcomputers 80 Alex Milenkovich 20

21 Different approaches to memory arrangement Largest memory window (16 KB) [MEMORY GAPS] Different approaches to memory arrangement, cont d Smallest memory window (4 KB) [NO MEMORY GAPS] A 23 A 15 A 14 A 13 A 12 A 11 A 1 A 23 A 17 A 16 A 15 A 14 A 13 A 1 SELECT DECODER DECODER SELECT DECODER DECODER A15... A23 A12 A13 A14 AS* Vcc A B C E1 E2 E3 Q0 Q1 Q2 Q3 Q4 Q5 Q6 ROM (16 KB) 4 Windows (Blocks) RAM Q7 CPE/EE 421/521 Microcomputers 81 CPE/EE 421/521 Microcomputers 82 Outline interface Timing diagram Minimal configuration using the Extensions Exception Processing How can we make it better? ROM is EPROM-based, and thus slower With EPROMs from the same generation, we ll need wait states, maybe even with RAM components Watchdog for non-decoded memory addresses CPE/EE 421/521 Microcomputers 83 CPE/EE 421/521 Microcomputers 84 Alex Milenkovich 21

22 How can we make it better? How can we make it better? Cont d CONTROL OF INTERRUPTS Use 74LS148 priority encoder to provide 7 levels of interrupt EXTERNAL BUS INTERFACE CPU can supply only the limited current to drive the bus SOLUTION: Bus drivers (buffers) Figure 4.46 CPE/EE 421/521 Microcomputers 85 CPE/EE 421/521 Microcomputers 86 DTACK* Generation DTACK* generator based on a shift register DTACK* Generation Shift register and its timing diagram Figure 4.72 CPE/EE 421/521 Microcomputers 87 CPE/EE 421/521 Microcomputers 88 Alex Milenkovich 22

23 DTACK* Generation Shift register and its timing diagram DTACK* Generation DTACK* generator based on a counter Figure 4.74 CPE/EE 421/521 Microcomputers 89 CPE/EE 421/521 Microcomputers 90 Outline Interrupt Processing Mechanism interface Timing diagram Minimal configuration using the Extensions Exception Processing Interrupt is an asynchronous event When an interrupt occur, the computer can: Service it Ignore it (for the time being) CPE/EE 421/521 Microcomputers 91 CPE/EE 421/521 Microcomputers 92 Alex Milenkovich 23

24 Interrupt Control Interface Interrupt processing mechanism, cont d low high p ri o ri t y Sequence of actions when an interrupt is being serviced: 1. The computer completes its current machine-level instruction 2. The contents of PC is saved (on stack) 3. The state of the processor (status word) is saved on the stack 4. Jump to the location of the interrupt handling routine Figure 4.9 CPE/EE 421/521 Microcomputers 93 CPE/EE 421/521 Microcomputers 94 Interrupt processing mechanism, cont d The interrupt is transparent to the interrupted program Interrupt request: Can be deferred or denied When it is deferred, it is said to be masked Special one: nonmaskable interrupt request (NMI) The NMI: IRQ7 (MSP430: RST*/NMI pin) Prioritized interrupts Vectored interrupts Requesting peripheral identifies itself, CPU doesn t have to poll the status of each device to discover the interrupter CPE/EE 421/521 Microcomputers 95 The Interrupt Interface CPE/EE 421/521 Microcomputers 96 Alex Milenkovich 24

25 The Interrupt Interface The Interrupt Interface Reset, bus error, address error, and trace exceptions take precedence over an interrupt A level 7 interrupt CAN interrupt level 7 interrupt CPE/EE 421/521 Microcomputers 97 CPE/EE 421/521 Microcomputers 98 Interrupt Timing Diagram Processing the Interrupt CPE/EE 421/521 Microcomputers 99 CPE/EE 421/521 Microcomputers 100 Alex Milenkovich 25

26 Exception Vectors Vectored Interrupts CPE/EE 421/521 Microcomputers 101 A vector is associated with each type of exception Vector is the 32-bit absolute address of the appropriate exception handling routine 256 exception vectors, 32 bits (4 bytes) each, extending from address $ to $00 03FF Vectors 0-63 : EXCEPTIONS Vectors : INTERRUPT HANDLING ROUTINES Difference between the reset vector and all other exceptions: It requires 2 longwords Located in SP space (FC = 110); others are in SD space (FC = 101) CPE/EE 421/521 Microcomputers 102 Privileged States and the Privileged States and the 68000, cont d User programs operate only An exception always forces the into the supervisor state CPE/EE 421/521 Microcomputers 103 CPE/EE 421/521 Microcomputers 104 Alex Milenkovich 26

27 The Exceptions Interrupts and Real-time Processing Multitasking (multiprogramming) concurrent execution multiple tasks (processes) resource sharing (multiple users using the same printer) Multiprocessing parallel execution multiple PROCESSORS! CPE/EE 421/521 Microcomputers 105 CPE/EE 421/521 Microcomputers 106 Multitasking Real-Time Operating System Real time - meaningful time fast enough to influence the system at that moment space shuttle / chemical plant Operating system (to schedule activities) Interrupt mechanism (to switch between tasks) CPE/EE 421/521 Microcomputers 107 Real-time system Optimizes the response time to events Tries to use resources efficiently Multitasking system Optimizes resource utilization Tries to provide a reasonable response time CPE/EE 421/521 Microcomputers 108 Alex Milenkovich 27

28 Real-Time Kernel Scheduler is the kernel, nucleus, of a real-time OS Functions a first-level interrupt handler scheduler - the sequence in which tasks are executed READY BLOCKED interprocess communication Task States Ready Running RUNNING Blocked (dormant) Tasks Volatile portion (PC, status, registers) Task control block (TCB) Task ID Task block pointer PC SP status register other registers Task status run / ready / blckd Task priority Task time allocation how many slots Figure 6.25 CPE/EE 421/521 Microcomputers 109 CPE/EE 421/521 Microcomputers 110 Exception Handling and Tasks Preemptive real-time OS: RTC generates periodic interrupts used by the kernel to locate and run the next task How to deal with other interrupts? Service them independently, subject to priority Integrate them into the real-time task structure Vectored interrupt Exception Real-time clock interrupt Turn on ready to run flag of appropriate task Turn on ready to run flag of appropriate task Call RT task scheduler and switch tasks RTE CPE/EE 421/521 Microcomputers 111 Alex Milenkovich 28

CPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview

CPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview CPE/EE 421/521 Fall 2004 Chapter 4 The 68000 CPU Hardware Model Dr. Rhonda Kay Gaede UAH Fall 2004 1 The 68000 CPU Hardware Model - Overview 68000 interface Timing diagram Minimal configuration using the

More information

CPE/EE 421 Microcomputers

CPE/EE 421 Microcomputers CPE/EE 421 Microcomputers THE 68000 CPU HARDWARE MODEL Instructor: Dr Aleksandar Milenkovic Lecture Notes Lecture 19 CPE/EE 421/521 Microcomputers 1 THE 68000 CPU HARDWARE MODEL Chapter 4 68000 interface

More information

Interpreting the Timing Diagram

Interpreting the Timing Diagram CPE/EE 421 Microcomputers WEEK #10 Interpreting the Timing Diagram The 68000 Read Cycle 2 Timing Diagram of a Simple Flip-Flop Idealized form of the timing diagram Actual behavior of a D flip-flop Data

More information

CPE/EE 421 Microcomputers

CPE/EE 421 Microcomputers CPE/EE 421 Microcomputers Instructor: Dr Aleksandar Milenkovic Lecture Note S19 CPE/EE 421/521 Microcomputers 1 Course Administration Instructor: URL: Aleksandar Milenkovic milenka@ece.uah.edu www.ece.uah.edu/~milenka

More information

Chapter Operation Pinout Operation 35

Chapter Operation Pinout Operation 35 68000 Operation 35 Chapter 6 68000 Operation 6-1. 68000 Pinout We will do no construction in this chapter; instead, we will take a detailed look at the individual pins of the 68000 and what they do. Fig.

More information

Computer Architecture 5.1. Computer Architecture. 5.2 Vector Address: Interrupt sources (IS) such as I/O, Timer 5.3. Computer Architecture

Computer Architecture 5.1. Computer Architecture. 5.2 Vector Address: Interrupt sources (IS) such as I/O, Timer 5.3. Computer Architecture License: http://creativecommons.org/licenses/by-nc-nd/3./ Hardware interrupt: 5. If in an eternal device (for eample I/O interface) a predefined event occurs this device issues an interrupt request to

More information

INTERFACING THE ISCC TO THE AND 8086

INTERFACING THE ISCC TO THE AND 8086 APPLICATION NOTE INTERFACING THE ISCC TO THE 68 AND 886 INTRODUCTION The ISCC uses its flexible bus to interface with a variety of microprocessors and microcontrollers; included are the 68 and 886. The

More information

Central Processing Unit. Steven R. Bagley

Central Processing Unit. Steven R. Bagley Central Processing Unit Steven R. Bagley Introduction So far looked at the technology underpinning computers Logic signals to cause things to happen, and represent numbers Boolean gates to combine and

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5. DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure EC 6504 Microprocessor and Microcontroller Unit II 8086 System Bus Structure Syllabus: 8086 Signals Basic Configurations System bus timing System Design using 8086 IO Programming Introduction to multiprogramming

More information

Unit DMA CONTROLLER 8257

Unit DMA CONTROLLER 8257 DMA CONTROLLER 8257 In microprocessor based system, data transfer can be controlled by either software or hardware. To transfer data microprocessor has to do the following tasks: Fetch the instruction

More information

Microprocessor Architecture. mywbut.com 1

Microprocessor Architecture. mywbut.com 1 Microprocessor Architecture mywbut.com 1 Microprocessor Architecture The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory. The microprocessor

More information

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of

More information

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY,VIRUDHUNAGAR

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY,VIRUDHUNAGAR Year/sem: 02/04 Academic Year: 2014-2015 (even) UNIT II THE 8086 SYSTEM BUS STRUCTURE PART A 1. What are the three groups of signals in 8086? The 8086 signals are categorized in three groups. They are:

More information

3. The MC6802 MICROPROCESSOR

3. The MC6802 MICROPROCESSOR 3. The MC6802 MICROPROCESSOR This chapter provides hardware detail on the Motorola MC6802 microprocessor to enable the reader to use of this microprocessor. It is important to learn the operation and interfacing

More information

Topic 3. ARM Cortex M3(i) Memory Management and Access. Department of Electronics Academic Year 14/15. (ver )

Topic 3. ARM Cortex M3(i) Memory Management and Access. Department of Electronics Academic Year 14/15. (ver ) Topic 3 ARM Cortex M3(i) Memory Management and Access Department of Electronics Academic Year 14/15 (ver 25-10-2014) Index 3.1. Memory maps 3.2. Memory expansion 3.3. Memory management & Data alignment

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

Microprocessor s. Address Bus. External Buses. Interfacing CPU with external word. We classify the CPU interfacing signals in three functional buses:

Microprocessor s. Address Bus. External Buses. Interfacing CPU with external word. We classify the CPU interfacing signals in three functional buses: Interfacing CPU with external word s interfacing signals bus bus Power supply lines a d Typical Bus arbitration Status Bus control Interrupts control Control bus Clock signal Miscellaneous External Buses

More information

SECTION 2 SIGNAL DESCRIPTION

SECTION 2 SIGNAL DESCRIPTION SECTION 2 SIGNAL DESCRIPTION 2.1 INTRODUCTION Figure 2-1 displays the block diagram of the MCF5206 along with the signal interface. This section describes the MCF5206 input and output signals. The descriptions

More information

These three counters can be programmed for either binary or BCD count.

These three counters can be programmed for either binary or BCD count. S5 KTU 1 PROGRAMMABLE TIMER 8254/8253 The Intel 8253 and 8254 are Programmable Interval Timers (PTIs) designed for microprocessors to perform timing and counting functions using three 16-bit registers.

More information

Home Automation System

Home Automation System A-level Electronics Major Project Home Automation System Theodore Markettos 25th March 1997 PDF conversion by GhostScript 5.10 2 Contents Summary...1 Part 1: The microprocessor system Choice of microprocessor...3

More information

Computer Systems Organization

Computer Systems Organization The IAS (von Neumann) Machine Computer Systems Organization Input Output Equipment Stored Program concept Main memory storing programs and data ALU operating on binary data Control unit interpreting instructions

More information

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1 Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1 Lesson 15 Interrupts Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would learn Interrupts

More information

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals. 1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals. A typical communication link between the processor and

More information

VMEbus Vertical Interconnect Alan Jones

VMEbus Vertical Interconnect Alan Jones VMEbus Vertical Interconnect Alan Jones 1.0 INTRODUCTION The Vertical Interconnect module allows a standard VMEbus crate to be expanded, by accessing other remote VMEbus crates over a 60 MHz serial link.

More information

Chapter 13 Direct Memory Access and DMA-Controlled I/O

Chapter 13 Direct Memory Access and DMA-Controlled I/O Chapter 13 Direct Memory Access and DMA-Controlled I/O The DMA I/O technique provides direct access to the memory while the microprocessor is temporarily disabled This allows data to be transferred between

More information

The Memory Component

The Memory Component The Computer Memory Chapter 6 forms the first of a two chapter sequence on computer memory. Topics for this chapter include. 1. A functional description of primary computer memory, sometimes called by

More information

Address connections Data connections Selection connections

Address connections Data connections Selection connections Interface (cont..) We have four common types of memory: Read only memory ( ROM ) Flash memory ( EEPROM ) Static Random access memory ( SARAM ) Dynamic Random access memory ( DRAM ). Pin connections common

More information

Summer 2003 Lecture 21 07/15/03

Summer 2003 Lecture 21 07/15/03 Summer 2003 Lecture 21 07/15/03 Simple I/O Devices Simple i/o hardware generally refers to simple input or output ports. These devices generally accept external logic signals as input and allow the CPU

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

Microcomputer Architecture and Programming

Microcomputer Architecture and Programming IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller

More information

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B

Z Z-280 MT8930, MT8992/3/4/5 MT8880 MT8888 MT8889 MT8980/1 MT8985, MT8986 (DIP-40) MT8986 (PLCC-44) MT8920B MT8952B MSAN-145 How to Interface Mitel Components to Parallel Bus CPUs TABL OF CONTNTS Introduction ISSU 1 August 1993 1.0 Group 1 Components 1.1 Interfacing to the 6802 1.2 Interfacing to the 6809 1.3 Interfacing

More information

INPUT-OUTPUT ORGANIZATION

INPUT-OUTPUT ORGANIZATION 1 INPUT-OUTPUT ORGANIZATION Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes of Transfer Priority Interrupt Direct Memory Access Input-Output Processor Serial Communication 2

More information

6 Direct Memory Access (DMA)

6 Direct Memory Access (DMA) 1 License: http://creativecommons.org/licenses/by-nc-nd/3.0/ 6 Direct Access (DMA) DMA technique is used to transfer large volumes of data between I/O interfaces and the memory. Example: Disk drive controllers,

More information

SYS68K/CPU-6 User s Manual

SYS68K/CPU-6 User s Manual SYS68K/CPU-6 User s Manual Edition No. 4 March 1997 P/N 200119 FORCE COMPUTERS Inc./GmbH All Rights Reserved This document shall not be duplicated, nor its contents used for any purpose, unless express

More information

Topics. Interfacing chips

Topics. Interfacing chips 8086 Interfacing ICs 2 Topics Interfacing chips Programmable Communication Interface PCI (8251) Programmable Interval Timer (8253) Programmable Peripheral Interfacing - PPI (8255) Programmable DMA controller

More information

SECTION 8 EXCEPTION PROCESSING

SECTION 8 EXCEPTION PROCESSING SECTION 8 EXCEPTION PROCESSING Exception processing is defined as the activities performed by the processor in preparing to execute a handler routine for any condition that causes an exception. In particular,

More information

System Reset / C167. Figure 17-1 External Reset Circuitry. Semiconductor Group 17-1

System Reset / C167. Figure 17-1 External Reset Circuitry. Semiconductor Group 17-1 17 System Reset The internal system reset function provides initialization of the C167 into a defined default state and is invoked either by asserting a hardware reset signal on pin RSTIN (Hardware Reset

More information

INPUT-OUTPUT ORGANIZATION

INPUT-OUTPUT ORGANIZATION INPUT-OUTPUT ORGANIZATION Peripheral Devices: The Input / output organization of computer depends upon the size of computer and the peripherals connected to it. The I/O Subsystem of the computer, provides

More information

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output 8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes

More information

The D igital Digital Logic Level Chapter 3 1

The D igital Digital Logic Level Chapter 3 1 The Digital Logic Level Chapter 3 1 Gates and Boolean Algebra (1) (a) A transistor inverter. (b) A NAND gate. (c) A NOR gate. 2 Gates and Boolean Algebra (2) The symbols and functional behavior for the

More information

EE251: Tuesday December 4

EE251: Tuesday December 4 EE251: Tuesday December 4 Memory Subsystem continued Timing requirements Adding memory beyond 4 Gbyte Time Allowing: Begin Review for Final Exam Homework #9 due Thursday at beginning of class Friday is

More information

Microprocessor Architecture

Microprocessor Architecture Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration

More information

INPUT/OUTPUT ORGANIZATION

INPUT/OUTPUT ORGANIZATION INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and

More information

Digital IP Cell 8-bit Microcontroller PE80

Digital IP Cell 8-bit Microcontroller PE80 1. Description The is a Z80 compliant processor soft-macro - IP block that can be implemented in digital or mixed signal ASIC designs. The Z80 and its derivatives and clones make up one of the most commonly

More information

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Lecture Note On Microprocessor and Microcontroller Theory and Applications Lecture Note On Microprocessor and Microcontroller Theory and Applications MODULE: 1 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip

More information

EE251: Thursday November 30

EE251: Thursday November 30 EE251: Thursday November 30 Course Evaluation Forms-fill out Memory Subsystem continued Timing requirements Adding memory beyond 4 Gbyte Time Allowing: Begin Review for Final Exam Homework due next Tuesday,

More information

8254 PROGRAMMABLE INTERVAL TIMER Y Y Y Compatible with All Intel and Most Other Microprocessors Handles Inputs from DC to 10 MHz 8 MHz 8254 10 MHz 8254-2 Status Read-Back Command Y Y Y Y Y Six Programmable

More information

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016 PIN DIAGRAM Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu January 19, 2016 Richa Upadhyay Prabhu (MPSTME) 8080 Microprocessor January 19, 2016 1 / 51 Pin Diagram of 8086 Richa Upadhyay

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 System I/O System I/O (Chap 13) Central

More information

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1 EEL 4744C: Microprocessor Applications Lecture 7 Part 1 Interrupt Dr. Tao Li 1 M&M: Chapter 8 Or Reading Assignment Software and Hardware Engineering (new version): Chapter 12 Dr. Tao Li 2 Interrupt An

More information

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1 Reading Assignment EEL 4744C: Microprocessor Applications Lecture 7 M&M: Chapter 8 Or Software and Hardware Engineering (new version): Chapter 12 Part 1 Interrupt Dr. Tao Li 1 Dr. Tao Li 2 Interrupt An

More information

Microprocessors and Microcontrollers (EE-231)

Microprocessors and Microcontrollers (EE-231) Microprocessors and Microcontrollers (EE-231) Main Objectives 8088 and 80188 8-bit Memory Interface 8086 t0 80386SX 16-bit Memory Interface I/O Interfacing I/O Address Decoding More on Address Decoding

More information

Module 5 - CPU Design

Module 5 - CPU Design Module 5 - CPU Design Lecture 1 - Introduction to CPU The operation or task that must perform by CPU is: Fetch Instruction: The CPU reads an instruction from memory. Interpret Instruction: The instruction

More information

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE 1 CHAPTER 6 HARDWARE ARCHITECTURE OF 8086 8086 Architecture: 6.1 8086 Pin diagram 8086 is a 40 pin DIP using CHMOS technology. It has 2 GND s as circuit complexity demands a large amount of current flowing

More information

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors OVERVIEW UNIT II Introduction to 8086 microprocessors Architecture of 8086 processors Register Organization of 8086 Memory Segmentation of 8086 Pin Diagram of 8086 Timing Diagrams for 8086 Interrupts of

More information

Interconnection Structures. Patrick Happ Raul Queiroz Feitosa

Interconnection Structures. Patrick Happ Raul Queiroz Feitosa Interconnection Structures Patrick Happ Raul Queiroz Feitosa Objective To present key issues that affect interconnection design. Interconnection Structures 2 Outline Introduction Computer Busses Bus Types

More information

BUS TIMING ANALYSIS. George E Hadley, Timothy Rogers, and David G Meyer 2018, Images Property of their Respective Owners

BUS TIMING ANALYSIS. George E Hadley, Timothy Rogers, and David G Meyer 2018, Images Property of their Respective Owners BUS TIMING ANALYSIS George E Hadley, Timothy Rogers, and David G Meyer 2018, Images Property of their Respective Owners LEARNING OBJECTIVES identify CPU and memory timing parameters draw a bus timing diagram

More information

Digital System Design

Digital System Design Digital System Design by Dr. Lesley Shannon Email: lshannon@ensc.sfu.ca Course Website: http://www.ensc.sfu.ca/~lshannon/courses/ensc350 Simon Fraser University i Slide Set: 15 Date: March 30, 2009 Slide

More information

PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1

PIO 8255 (cont..) M Krishna kumar MAM/M3/LU9e/V1/2004 1 PIO 8255 (cont..) The parallel input-output port chip 8255 is also called as programmable peripheral input-output port. The Intel s 8255 is designed for use with Intel s 8-bit, 16-bit and higher capability

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1 Microcomputer Structure and Operation Chapter 5 A Microprocessor ( P) contains the controller, ALU and internal registers A Microcomputer ( C) contains a microprocessor, memory (RAM, ROM, etc), input and

More information

Embedded Applications. COMP595EA Lecture03 Hardware Architecture

Embedded Applications. COMP595EA Lecture03 Hardware Architecture Embedded Applications COMP595EA Lecture03 Hardware Architecture Microcontroller vs Microprocessor Microprocessor is a term used to describe all programmed computational devices. Microcontroller is a term

More information

Chapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware

More information

EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA)

EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA) EXPERIMENT #7 PARALLEL INTERFACING USING THE PERIPHERAL INTERFACE ADAPTER (PIA) 1.0 Procedure The purpose of this experiment is to introduce the student to the following topics: the Peripheral Interface

More information

Memory Interface. are used for DMD 15-0

Memory Interface. are used for DMD 15-0 Memory Interface 10 10.1 OVERVIEW The ADSP-2100 family has a modified Harvard architecture in which data memory stores data and program memory stores both instructions and data. Each processor contains

More information

CHAPTER TWELVE - Memory Devices

CHAPTER TWELVE - Memory Devices CHAPTER TWELVE - Memory Devices 12.1 6x1,024 = 16,384 words; 32 bits/word; 16,384x32 = 524,288 cells 12.2 16,384 addresses; one per word. 12.3 2 16 = 65,536 words = 64K. Thus, memory capacity is 64Kx4.

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT I THE 8085 & 8086 MICROPROCESSORS PART A (2 Marks) 1. Give the significance of SIM and RIM instruction available in 8085. [NOV/DEC 2006] Instruction

More information

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Chapter 5 Input/Output Organization Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Accessing I/O Devices Interrupts Direct Memory Access Buses Interface

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

8086 Interrupts and Interrupt Responses:

8086 Interrupts and Interrupt Responses: UNIT-III PART -A INTERRUPTS AND PROGRAMMABLE INTERRUPT CONTROLLERS Contents at a glance: 8086 Interrupts and Interrupt Responses Introduction to DOS and BIOS interrupts 8259A Priority Interrupt Controller

More information

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

CSC 553 Operating Systems

CSC 553 Operating Systems CSC 553 Operating Systems Lecture 1- Computer System Overview Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users Manages secondary memory

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit

More information

Unit 5 DOS INTERRPUTS

Unit 5 DOS INTERRPUTS Unit 5 DOS INTERRPUTS 5.1 Introduction The DOS (Disk Operating System) provides a large number of procedures to access devices, files and memory. These procedures can be called in any user program using

More information

The Central Processing Unit

The Central Processing Unit The Central Processing Unit All computers derive from the same basic design, usually referred to as the von Neumann architecture. This concept involves solving a problem by defining a sequence of commands

More information

Am186ER/Am188ER AMD continues 16-bit innovation

Am186ER/Am188ER AMD continues 16-bit innovation Am186ER/Am188ER AMD continues 16-bit innovation 386-Class Performance, Enhanced System Integration, and Built-in SRAM Am186ER and Am188ER Am186 System Evolution 80C186 Based 3.37 MIP System Am186EM Based

More information

2 MARKS Q&A 1 KNREDDY UNIT-I

2 MARKS Q&A 1 KNREDDY UNIT-I 2 MARKS Q&A 1 KNREDDY UNIT-I 1. What is bus; list the different types of buses with its function. A group of lines that serves as a connecting path for several devices is called a bus; TYPES: ADDRESS BUS,

More information

Allmost all systems contain two main types of memory :

Allmost all systems contain two main types of memory : Memory Interface Allmost all systems contain two main types of memory : read-only memory (ROM) system software and permanent system data random access memory (RAM) or read/write memory application software

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Year III Computer Science 1-st Semester Lecture 11: I/O transfer with x86 I/O Transfer I/O Instructions We discussed IN, OUT, INS and OUTS as instructions for the transfer of

More information

8086 Hardware Specification

8086 Hardware Specification Content: Segment 5 8086 Hardware Specification 8086 Modes of operation. Pin diagram and pin function of 8086. 8284A Clock generator operation and pin functions. Prepared By: Mohammed Abdul Kader Lecturer,

More information

Lecture-50 Intel 8255A: Programming and Operating Modes

Lecture-50 Intel 8255A: Programming and Operating Modes Lecture-50 Intel 8255A: Programming and Operating Modes Operation Description: There are three basic modes of operation that can be selected by the system software. Mode 0: Basic Input/output Mode 1: Strobes

More information

Interfacing an Intel386 TM EX Microprocessor to an CAN Controller

Interfacing an Intel386 TM EX Microprocessor to an CAN Controller APPLICATION NOTE Interfacing an Intel386 TM EX Microprocessor to an 82527 CAN Controller GREG SCOTT TECHNICAL MARKETING ENGINEER January 1996 Order Number 272790-001 COPYRIGHT INTEL CORPORATION 1995 1

More information

INPUT/OUTPUT ORGANIZATION

INPUT/OUTPUT ORGANIZATION INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and

More information

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

CREATED BY M BILAL & Arslan Ahmad Shaad Visit: CREATED BY M BILAL & Arslan Ahmad Shaad Visit: www.techo786.wordpress.com Q1: Define microprocessor? Short Questions Chapter No 01 Fundamental Concepts Microprocessor is a program-controlled and semiconductor

More information

ECE 485/585 Microprocessor System Design

ECE 485/585 Microprocessor System Design Microprocessor System Design Lecture 4: Memory Hierarchy Memory Taxonomy SRAM Basics Memory Organization DRAM Basics Zeshan Chishti Electrical and Computer Engineering Dept Maseeh College of Engineering

More information

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY Senkottai Village, Madurai Sivagangai Main Road, Madurai -625 020 QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS UNIT 1 - THE 8085 AND 8086

More information

Freescale Semiconductor, I SECTION 5 SYSTEM INTEGRATION MODULE

Freescale Semiconductor, I SECTION 5 SYSTEM INTEGRATION MODULE nc. SECTION 5 SYSTEM INTEGRATION MODULE This section is an overview of the system integration module (SIM) function. Refer to the SIM Reference Manual (SIMRM/AD) for a comprehensive discussion of SIM capabilities.

More information

DP8420V 21V 22V-33 DP84T22-25 microcmos Programmable 256k 1M 4M Dynamic RAM Controller Drivers

DP8420V 21V 22V-33 DP84T22-25 microcmos Programmable 256k 1M 4M Dynamic RAM Controller Drivers DP8420V 21V 22V-33 DP84T22-25 microcmos Programmable 256k 1M 4M Dynamic RAM Controller Drivers General Description The DP8420V 21V 22V-33 DP84T22-25 dynamic RAM controllers provide a low cost single chip

More information

1-2 Chapter 1: The Beboputer Microcomputer

1-2 Chapter 1: The Beboputer Microcomputer 1-2 Chapter 1: The Beboputer Microcomputer The Beboputer microcomputer In its broadest sense, a computer is a device that can accept information from the outside world, process that information using logical

More information

MICROPROCESSOR ALL IN ONE. Prof. P. C. Patil UOP S.E.COMP (SEM-II)

MICROPROCESSOR ALL IN ONE. Prof. P. C. Patil UOP S.E.COMP (SEM-II) MICROPROCESSOR UOP S.E.COMP (SEM-II) 80386 ALL IN ONE Prof. P. C. Patil Department of Computer Engg Sandip Institute of Engineering & Management Nashik pc.patil@siem.org.in 1 Architecture of 80386 2 ARCHITECTURE

More information

Microprocessors & Interfacing

Microprocessors & Interfacing Lecture Overview Microprocessors & Interfacing Interrupts (I) Lecturer : Dr. Annie Guo Introduction to Interrupts Interrupt system specifications Multiple sources of interrupts Interrupt priorities Interrupts

More information

MARIE: An Introduction to a Simple Computer

MARIE: An Introduction to a Simple Computer MARIE: An Introduction to a Simple Computer 4.2 CPU Basics The computer s CPU fetches, decodes, and executes program instructions. The two principal parts of the CPU are the datapath and the control unit.

More information