UNIT.4. Syllabus I/O INTERFACING 8085

Size: px
Start display at page:

Download "UNIT.4. Syllabus I/O INTERFACING 8085"

Transcription

1 UNIT.4 I/O INTERFACING 8085 Syllabus Memory Interfacing and I/O interfacing Parallel communication interface Serial communication interface Timer Keyboard /display controller Interrupt controller DMA controller Programming and applications.

2 OVERVIEW CPU and main memory are very fast compared with electromechanical input or output devices like printers, etc. In such case it is essential that the data lines of the computer are not kept engaged for a long time during communication with input/output devices. Otherwise, the overall speed of the computer system comes down drastically. So I/O devices are connected to a computer through I/O ports. For example, to communicate with a printer, the CPU loads the output port connected to the printer at electronics speed. The printer slowly prints this. When printer has finished printing, the output port requests the CPU for further data. This way, the CPU is allowed to work at its full speed, with no degradation in the overall speed of the computer system. In fact, to further improve the speed, a printer will have printer buffer. For example, the dot matrix printer has buffer size of 3KB. The microcomputer fills this buffer in a fraction of second. Then as far as the computer is concerned the printing is over. But the user would not have witnessed the printing of a single character yet. The printer prints the entire information in about 15-20s. Then a printer requests for further data to be printed, from the computer. The I/O devices are never directly connected to a computer. Computer and an I/O device always communicate with an I/O port as the middleman.

3 LEARNING OBJECTIVES Need for I/O ports Memory interfacing and I/O interfacing Serial communication interface Timer Keyboard/display controller Interrupt controller DMA controller Programming and applications

4 1.THE 8255 PROGRAMMABLE PERIPHERAL INTERFACE (PPI) IS A WIDELY USED, PROGRAMMABLE, PARALLEL I/O DEVICE. It can be programmed to transfer data under various conditions from simple I/O to interrupt I/O. It is flexible, versatile & economical (when multiple I/O ports are required), but somewhat complex. It is an important general purpose I/O device that can be used with almost any P. BLOCK DOAGRAM OF It has two 8-bit ports (A&B), two 4 bit ports (C u & C L ), the data bus buffer, & control logic (Fig 1a). Fig 1b shows a simple but expanded version of internal structure including control register.

5 Port A D7 D6 D5 D4 D3 0/1 D2 D1 D0 8255A Cu C L Port C I/O mode Mode0 Mode1 Mode2 Port B BSR Mode Bit set/ Reset For port C No effect on I/O mode Simple I/O for ports A, B, C Handshake I/O for ports A, &/or B Port C bits used for H/S Bidirection -al data bus for port A Port B either in Mode 0 or 1 Port C bits used for h/s Fig 1a Fig 1b Control Logic. It has 6 lines 1. RD: Enables read operation. When low, MPU reads data from selected I/O port of the 8255A. 2. WR bar: Enables write operation to selected port or control register. 3. RESET: Active high signal that clears the control register & sets all pots in input mode. 4. CS bar, A 0, A 1 : Theses are device select signals. CS is connected to a decoded address & A0 & A1 are generally connected to MPU address lines A0 & A1. The CS bar signal is master chip select & A0, A1 specify one of the I/O ports or control register s given below:

6 CS A1 A0 Selected Port A Port B Port C Control register 1 X X 8255 not selected As an example, port addresses in Fig 2a are determined by CS bar, A0 & A1. The CS bar line goes low when A7=1 & A6 thru A2 are at logic 0. When these signals are combined with A0 & A1, the port addresses range from 80H to 83H as shown in Fig 2b. A7 A6 A5 A4 A3 A2 Fig 2(a) A1 A0 IOR IO W 8255 CS A1 A0 RD WR A=80H C=82H B=81H Hex Addr Port CS A7A6A5A4A3A2 A1 A = 80H A 0 1 = 81H B 1 0 = 82H C 1 1 = 83H Control Reg Fig 2(b) Fig 2: 8255A Chip select logic (a) & I/O port addresses (b) CONTROL WORD.

7 Fig 1b shows a register called Control Register. The contents of this register called the control word specify an I/O function for each port. This register can be accessed to write a control word when A0 & A1 are at logic 12. The register is NOT accessible for a Read operation. Bit D7 of the control register specifies either a BSR Mode or I/O function mode. If D7=1, D6 thru D0 determine I/O functions in various modes. To communicate with peripherals thru 8255A, 3 steps are necessary: 1. Determine the addresses of ports A, B, C & the control register according to Chip Select logic & address lines A1 & A0. 2. Write a control word in the control register. 3. Write I/O instructions to communicate with peripherals thru ports A, B, C. MODE: Simple Input or Output Ports A & B are used as 2 simple 8-bit ports & Port C as two 4-bit ports. Each port (or half port for C) can be programmed to function as simple Input/ Output Port. The I/O features in Mode 0 are: 1. Outputs are latched Inputs are not latched. 3. Ports do NOT have handshake or interrupt capability.

8 D7 D6 D5 D4 D3 D2 D1 D0 GROUP B Port C (Lower PC3-PC0) 1 = Input 0 = Output Port B 1 = Input 0 = Output Mode selection 0 = Mode 0 1 = Mode 1 Port C (Upper PC7-PC4) 1 = Input 0 = Output Port A 1 = Input 0 = Output GROUPA Mode selection 00 = Mode 0 01 = Mode 1, 1X = Mode 2 1 = I/O Mode 0 = BSR Mode Program: 1. Identify port addresses in following figure. 2. Identify Mode 0 control word to configure port A & C U as input ports & port B & C L as output ports. 3. Write a program to read DIP switches & display the reading from port B at port A & from C L to port C U.

9 8255 A PA7 PA0 Buffer LEDs + 5V A15 CS PC7 PC4 Buffer MEMR A1 A0 MEMW A1 A0 RD WR PC3 PC0 PB7 DIP switches RESET OUT 8085 Reset PB0 +5V

10 Ans:1. Port Addresses. This is a memory mapped I/O; when address line A15 is high, Chip Select is enabled. Assuming all don t care lines are at logic 0, port addresses are as follows: Port A = 8000H (A1 = 0, A0 = 0) Port B = 8001H (A1 = 0, A0 = 1) Port C = 8002H (A1 = 1, A0 = 0) Control register = 8003H (A1 = 1, A0 = 1) 2. Control Word D7 D6 D5 D4 D3 D2 D1 D = 83H V V V V I/O Port A Port B Port CL function V = output = Input = Input Port A In mode0 V -> Port B in mode0 Port CU = Output 4. Program MVI A, 83H ; LOAD ACC with control word. STA 8003 ; Write word in control register to initialize the ports LDA 8001 ; Read switches at port B STA 8000 : display the reading at port A LDA8002 ; Read switches at port C ANI 0FH ; Mask the upper 4 bits of port C, these bits are not input data RLC ; rotate & place data in the upper half of ACC RLC ; RLC ; RLC ; STA 8002H ; display data at port C U. HLT Program Description: The circuit is designed for memory mapped I/O; so the instructions are written as if all 8255 ports are memory locations. Ports are initialized by loading the control word 83H in the control register. STA & LDA are equivalent to 8 bit port I/O instructions IN & OUT respectively.

11 The low 4 bits of port C are configured as input & high 4 bits are configured as output. Read & Write memory operations are differentiated by control signals MEMR bar & MEMW bar. BSR (Bit Set/Rest Mode) It is concernd only with the 8 bits of port C which can be set/ reset by witing appropriate control word in th control register. A control word with bit D7 = 0 is rcognized as a BSR control word & it DOES NOT ALTR any previously transmitted control word with bit D7 = 1. thus, I/O operations of ports A & B are NOT AFFECTED by a BSR control word. In this mode, individual bits of port C can be used as ON/OFF switches. D7 D6 D5 D4 D3 D2 D1 D0 0 X X X Bit Select S/R BSR Mode Not used, generally set to = Bit = Bit = Bit = Bit = Bit = Bit = Bit = bit 7 SET = 1 Reset = 0 Fig: 8255 Control Word format in the BSR Mode Q: Write a BSR Control word subroutine to set PC7 & PC3 & reset them after 10 ms. Use the following figure & assume that delay s/r is available. A: BSR Control Words: D7 D6 D5 D4 D3 D2 D1 D0

12 To set bit PC 7 : = 0FH To reset bit PC 7 : = 0EH To set bit PC 3 : = 07H To reset bit PC 3 : = 06H Port address Control register address = 83H SUBROUTINE BSR: MVI A, 0FH ; Load byte in ACC to set PC 7 OUT 83H ; Set PC 7 = 1 MVI A, 07H ; Load byte in ACC to set PC 3 OUT 83H ; Set PC 3 = 1 CALL DELAY; This is 10ms delay MVI A, 06H ; Load byte in ACC to reset PC 3 OUT 83H ; Reset PC 3 MVI A, 0EH ; Load byte in ACC to reset PC 7 OUT 83H ; Set PC 7 RET MODE1: input or Output with handshake. Handshake signals are exchanged between the MPU and peripherals prior to data transfer. Features of this mode are: 1. 2 ports A & B function as 8 bit I/O ports. May be configured either as input or output ports. 2. Each port uses 3 lines from port C as h/s signals. Remaining 2 lines of port c may be used for simple I/O functions. 3. Input & Output data are latched. 4. Interrupt logic is supported. In 8255, Input & output functions are discussed separately. Mode1: Input control signals.

13 8255A Mode 1 : I/p configuration INTE A PA7 PA0 PC4 Port A Input STB A Control Word Mode 1 input D7 D6 D5 D4 D3 D2 D1 D /0 1 1 X PC5 IBF A I/O mode PC3 INTR A Port A mode 1 Port B input INTE B PC2 STB B Port A input Port B input RD PC1 PC0 IBF B INTR B Port B Input PC6,7 1 = i/p 0 = o/p PC6,7 I/O Status Word Mode 1 input D7 D6 D5 D4 D3 D2 D1 D0 I/O I/O IBFA INTEA INTRA INTEB IBFB INTRB

14 STB: Strobe Input: Active low signal is generated by a peripheral device to indicate that it has transmitted a byte of data generates IBF & INTR in response to STB bar. IBF (Input Buffer Full): It is an acknowledgement by 8255 to indicate that the input latch has received the data byte. It is reset when MPU reads the data byte. INTR (Interrupt request): This is an output signal that may be ued to interrupt the MPU. This signal is generated if STB bar, IBF & INTE (Interrupt Enable internal flip-flop) are all at logic 1. this is reset by falling edge of the RD bar signal. INTE (Interrupt Enable): Internal f/f used to enable/disable the generation of INTR signal. 2 f/f s (INTE A & INTE B ) are set/reset using BSR mode. The former is enabled/ disabled thru PC4 & latter thru PC2. STB IBF INTR RD Input from perip heral Fig: 8255A mode 1: Timing Waveforms for strobed input with handshake.

15 Programming the 8255A in Mode A may be programmed to function in either status check or interrupt I/O. Both flowcharts are shown in figure. In (a), MPU continues to check data status thru IBF line until it goes high. It is a simplified flow chart, it does NOT show how to handle data transfer if 2 ports are being used. Disadvantage of status check I/O with h/s is that MPU is held up in the loop. Fig (b) shows steps for interrupt I/O assuming vectored interrupts are available. Fig: Flow charts: (a) Status Check (b) Interrupt I/O Mode1: Output control signals. Continue

16 8255A Mode 1 : O/p configuration INTE A Port A Output Control Word Mode 1 input D7 D6 D5 D4 D3 D2 D1 D0 PC7 OBF A /0 1 0 X PC6 ACK A I/O mode PC3 INTR A Port A mode 1 Port B output INTE B WR PC2 PC1 PC0 ACK B OBF B INTR B Port B Input Port A output PC4,5 1 = i/p 0 = o/p Port B Mode 1 PC4,5 I/O Status Word Mode 1 output D7 D6 D5 D4 D3 D2 D1 D0 OBFA INTEA I/O I/O INTRA INTEB OBFB INTRB

17 OBF (Output Buffer Full): It is an o/p signal that goes low when the MPU writes data to o/p latch of 8255A. It indicates to peripheral that new data is available for reading. It goes high again after 8255A receives ACK bar from peripheral. ACK: This is an input acknowledge signal from a peripheral that must o/p a low when peripheral receives the data from the 8255A ports. INTR (Interrupt request): This is an output signal that may be used to interrupt the MPU. This signal is generated if OBF, ACK bar & INTE (Interrupt Enable internal flip-flop) are all at logic 1. This is reset by falling edge of the WR bar signal. INTE (Interrupt Enable): Internal f/f used to enable/disable the generation of INTR signal. 2 f/f s (INTE A & INTE B ) are set/reset using BSR mode. The former is enabled/ disabled thru PC6 & latter thru PC2. WR OBF INTR ACK Output from periphe ral Fig: 8255A mode 1: Timing Waveforms for strobed output with handshake. Mode 2: Bidirectional data transfer: Used for transfer of data between 2 computers or floppy disk controller interface. Port A can be configured as bidirectional port & port B in either Mode 0 or 1. Port A uses 5 signals from port c as h/s signals. The remaining 3 signals from port C may be used as simple I/O or h/s for port B.

18 PC2-0 1= i/p 0 = o/p Control word D7 D6 D5 D4 D3 D2 D1 D0 1 1 X X X 0 1 1/0 RD WR PC3 PA7-PA0 PC7 PC6 PC4 PC5 PC2-0 PB7-PB0 INTRA 8 OBF ACKA STBA IBFA I/O 8 Port A Mode 2 and mode 0 (Input)

19 Control word D7 D6 D5 D4 D3 D2 D1 D0 1 1 X X X 1 0 X PC3 PA7-PA0 PC7 PC6 INTRA 8 OBF ACKA RD WR PC4 PC5 PC1 PC2 PC0 PB7-PB0 STBA IBFA OBFB ACKB INTRB 8 Mode 2 and mode 1 (Input) UNIVERSAL SYNCHRONOUS ASYNCHRONOUS RECEIVER TRANSMITTER (USART) The 8251 is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication. As a peripheral device of a microcomputer system, the 8251 receives parallel data from the CPU and transmits serial data after conversion. This device also receives serial data from the outside and transmits parallel data to the CPU after conversion.

20 Block diagram of the 8251 USART (Universal Synchronous Asynchronous Receiver Transmitter) The 8251 functional configuration is programed by software. Operation between the 8251 and a CPU is executed by program control. Table 1 shows the operation between a CPU and the device.

21 3.Programmable Keyboard/Display Interface A programmable keyboard and display interfacing chip. Scans and encodes up to a 64-key keyboard. Controls up to a 16-digit numerical display. Keyboard section has a built-in FIFO 8 character buffer. The display is controlled from an internal 16x8 RAM that stores the coded display information. Pinout Definition 8279 A0: Selects data (0) or control/status (1) for reads and writes between micro and BD: Output that blanks the displays. CLK: Used internally for timing. Max is 3 MHz. CN/ST: Control/strobe, connected to the control key on the keyboard. Pinout Definition 8279 CS: Chip select that enables programming, reading the keyboard, etc. DB7-DB0: Consists of bidirectional pins that connect to data bus on micro. IRQ: Interrupt request, becomes 1 when a key is pressed, data is available. OUT A3-A0/B3-B0: Outputs that sends data to the most significant/least significant nibble of display. RD(WR): Connects to micro's IORC or RD signal, reads data/status registers. RESET: Connects to system RESET. RL7-RL0: Return lines are inputs used to sense key depression in the keyboard matrix. Shift: Shift connects to Shift key on keyboard. SL3-SL0: Scan line outputs scan both the keyboard and displays. Keyboard Interface of 8279 The keyboard matrix can be any size from 2x2 to 8x8. Pins SL2-SL0 sequentially scan each column through a counting operation. The 74LS138 drives 0's on one line at a time.

22 The 8279 scans RL pins synchronously with the scan. RL pins incorporate internal pull-ups, no need for external resistor pull-ups. The 8279 must be programmed first. The first 3 bits of the byte sent to control port selects one of 8 control words. D7 D6 D5 Function Purpose Mode set Selects the number of display positions, type of key scan Clock Programs internal clk, sets scan and debounce times Read FIFO Selects type of FIFO read and address of the read Read Display Selects type of display read and address of the read Write Display Selects type of write and the address of the write Display write inhibit Allows half-bytes to be blanked Clear Clears the display or FIFO End interrupt Clears the IRQ signal to the microprocessor PROGRAMMABLE INTERRUPT CONTROLLER Features: 8 levels of interrupts. Can be cascaded in master-slave configuration to handle 64 levels of interrupts. Internal priority resolver. Fixed priority mode and rotating priority mode. Individually maskable interrupts.

23 Modes and masks can be changed dynamically. Accepts IRQ, determines priority, checks whether incoming priority > current level being serviced, issues interrupt signal. In 8085 mode, provides 3 byte CALL instruction. In 8086 mode, provides 8 bit vector number. Polled and vectored mode. Starting address of ISR or vector number is programmable. No clock required. Pinout Bi-directional, tristated, buffered data lines. D0-D7 Connected to data bus directly or through buffers RD-bar Active low read control WR-bar Active low write control A0 CS-bar Address input line, used to select control register Active low chip select Bi-directional, 3 bit cascade lines. In master mode, PIC places slave ID no. on these lines. In CAS0-2 slave mode, the PIC reads slave ID no. from master on these lines. It may be regarded as slave-select. SP-bar Slave program / enable. In non-buffered

24 mode, it is SP-bar input, used to distinguish master/slave PIC. In buffered mode, it is output line used to enable buffers / ENbar INT INTAbar IR0-7 Interrupt line, connected to INTR of microprocessor Interrupt ack, received active low from microprocessor Asynchronous IRQ input lines, generated by peripherals. Block diagram ICW1 (Initialisation Command Word One) A0 D7 D6 D5 D4 D3 D2 D1 D0

25 0 A7 A6 A5 1 LTIM ADI SNGL IC4 D0: IC4: 0=no ICW4, 1=ICW4 required D1: SNGL: 1=Single PIC, 0=Cascaded PIC D2: ADI: Address interval. Used only in 8085, not =ISR's are 4 bytes apart (0200, 0204, etc) 0=ISR's are 8 byte apart (0200, 0208, etc) D3: LTIM: level triggered interrupt mode: 1=All IR lines level triggered. 0=edge triggered D4-D7: A5-A7: 8085 only. ISR address lower byte segment. The lower byte is A7 A6 A5 A4 A3 A2 A1 A0 of which A7, A6, A5 are provided by D7-D5 of ICW1 (if ADI=1), or A7, A6 are provided if ADI=0. A4-A0 (or A5-A0) are set by 8259 itself: ADI=1 (spacing 4 bytes) IRQ A7 A6 A5 A4 A3 A2 A1 A0 IR0 A7 A6 A IR1 A7 A6 A IR2 A7 A6 A IR3 A7 A6 A IR4 A7 A6 A IR5 A7 A6 A IR6 A7 A6 A IR7 A7 A6 A ADI=0 (spacing 8 bytes) IRQ A7 A6 A5 A4 A3 A2 A1 A0 IR0 A7 A IR1 A7 A IR2 A7 A IR3 A7 A IR4 A7 A IR5 A7 A IR6 A7 A IR7 A7 A ICW2 (Initialisation Command Word Two) Higher byte of ISR address (8085), or 8 bit vector address (8086).

26 A0 1 D7 D6 D5 D4 D3 D2 D1 D0 A15 A14 A13 A12 A11 A10 A9 A8 ICW3 (Initialisation Command Word Three) A0 1 D7 D6 D5 D4 D3 D2 D1 D0 Master S7 S6 S5 S4 S3 S2 S1 S0 Slave ID3 ID2 ID1 Master mode: 1 indicates slave is present on that interrupt, 0 indicates direct interrupt Slave mode: ID3-ID2-ID1 is the slave ID number. Slave 4 on IR4 has ICW3=04h ( ) ICW4 (Initialisation Command Word Four) A0 1 D7 D6 D5 D4 D3 D2 D1 D SFNM BUF M/S AEOI Mode SFNM: 1=Special Fully Nested Mode, 0=FNM M/S: 1=Master, 0=Slave AEOI: 1=Auto End of Interrupt, 0=Normal Mode: 0=8085, 1=8086 OCW1 (Operational Command Word One) A0 1 D7 D6 D5 D4 D3 D2 D1 D0 M7 M6 M5 M4 M3 M2 M1 M0 IRn is masked by setting Mn to 1; mask cleared by setting Mn to 0 (n=0..7)

27 OCW2 (Operational Command Word Two) A0 1 D7 D6 D5 D4 D3 D2 D1 D0 R SL EOI 0 0 L3 L2 L1 R SL EOI Action Non specific EOI (L3L2L1=000) EOI Specific EOI command (Interrupt to clear given by L3L2L1) Rotate priorities on non-specific EOI Auto rotation of priorities (L3L2L1=000) Specific rotation of priorities (Lowest priority ISR=L3L2L1) Rotate priorities in auto EOI mode set Rotate priorities in auto EOI mode clear Rotate priority on specific EOI command (resets current ISR bit) Set priority (does not reset current ISR bit) No operation OCW3 (Operational Command Word Three) A0 1 D7 D6 D5 D4 D3 D2 D1 D0 D7 ESMM SMM 0 1 MODE RIR RIS ESMM SMM Effect 0 X No effect 1 0 Reset special mask

28 1 1 Set special mask Interrupt sequence (single PIC) 1. One or more of the IR lines goes high. 2. Corresponding IRR bit is set evaluates the request and sends INT to CPU. 4. CPU sends INTA-bar. 5. Highest priority ISR is set. IRR is reset releases CALL instruction on data bus. 7. CALL causes CPU to initiate two more INTA-bar's releases the subroutine address, first lowbyte then highbyte. 9. ISR bit is reset depending on mode DMA CONTROLLER Three Transaction Methods for Peripheral IOs DMAC and 8257 DMAC 8257 Block Diagram, Pins and Interfacing 8257 Programming Programmable Interval Timer/Counter Features Status read-back command Counter latch command

29 Read/write least significant bit (LSB) only, most significant bit (MSB) only, or LSB first then MSB Six programmable counter modes o o o o o o Interrupt on terminal count Hardware retriggerable one-shot Rate generator Square wave mode Software-triggered strobe Hardware-triggered strobe (retriggerable) Binary or binary coded decimal strobe Developed in VHDL and synthesizes to approximately 5,000 gates Functionally based on the Intel 82C54 device Block Diagram Figure 1 shows the block diagram for the 8254 programmable interval timer/counter megafunction. Figure 1. Block Diagram

30 Description The 8254 programmable interval time/counter megafunction is a highperformance function that is designed to solve the common timing control problems in microcomputer system design. It provides three independent 16-bit counters, and each counter may operate in a different mode. All modes are software programmable.

31 The 8254 megafunction solves one of the most common problems in any microcomputer system: the generation of accurate time delays under software control. Instead of setting up timing loops in software, the 8254 megafunction can be programmed to match requirements by programming one of the counters for the desired delay. 8253/8254 PIT - Programmable Interval Timer Port 40h, 8253 Counter 0 Time of Day Clock (normally mode 3) Port 41h, 8253 Counter 1 RAM Refresh Counter (normally mode 2) Port 42h, 8253 Counter 2 Cassette and Speaker Functions Port 43h, 8253 Mode Control Register, data format: Mode Control Register `---- 0=16 binary counter, 1=4 decade BCD counter ` counter mode bits ` read/write/latch format bits ` counter select bits (also 8254 read back command) Bits 76 Counter Select Bits 00 select counter 0 01 select counter 1 10 select counter 2 11 read back command (8254 only, illegal on 8253, see below) Bits 54 Read/Write/Latch Format Bits 00 latch present counter value 01 read/write of MSB only 10 read/write of LSB only 11 read/write LSB, followed by write of MSB

32 Bits 321 Counter Mode Bits 000 mode 0, interrupt on terminal count; countdown, interrupt, then wait for a new mode or count; loading a new count in the middle of a count stops the countdown 001 mode 1, programmable one-shot; countdown with optional restart; reloading the counter will not affect the countdown until after the following trigger 010 mode 2, rate generator; generate one pulse after 'count' CLK cycles; output remains high until after the new countdown has begun; reloading the count mid-period does not take affect until after the period 011 mode 3, square wave rate generator; generate one pulse after 'count' CLK cycles; output remains high until 1/2 of the next countdown; it does this by decrementing by 2 until zero, at which time it lowers the output signal, reloads the counter and counts down again until interrupting at 0; reloading the count mid-period does not take affect until after the period 100 mode 4, software triggered strobe; countdown with output high until counter zero; at zero output goes low for one CLK period; countdown is triggered by loading counter; reloading counter takes effect on next CLK pulse 101 mode 5, hardware triggered strobe; countdown after triggering with output high until counter zero; at zero output goes low for one CLK period

33 Read Back Command Format (8254 only) Reg) Read Back Command (written to Mode Control `--- must be zero `---- select counter 0 `----- select counter 1 ` select counter 2 ` = latch status of selected counters ` = latch count of selected counters ` = read back command Read Back Command Status (8254 only, read from counter register) above) Read Back Command Status `--- 0=16 binary counter, 1=4 decade BCD counter ` counter mode bits (see Mode Control Reg ` read/write/latch format (see Mode Control Reg) ` =null count (no count set), 0=count available ` state of OUT pin (1=high, 0=low) AT+ it's but - the 8253 is used on the PC & XT, while the 8254 is used on the - all counters are decrementing and fully independent - the PIT is tied to 3 clock lines all generating MHz. - the value of MHz is derived from (4.77/4 MHz) and has roots based on NTSC frequencies - counters are 16 bit quantities which are decremented and then tested against zero. Valid range is ( ). To get a value of clocks you must specify 0 as the default count since is a 17 bit value. - reading by latching the count doesn't disturb the countdown

34 reading the port directly does; except when using the 8254 Read Back Command - counter 0 is the time of day interrupt and is generated approximately 18.2 times per sec. The value 18.2 is derived from the frequency /65536 (the normal default count). - counter 1 is normally set to 18 (dec.) and signals the 8237 to do a RAM refresh approximately every 15æs - counter 2 is normally used to generate tones from the speaker but can be used as a regular counter when used in conjunction with the newly loaded counters don't take effect until after a an output pulse or input CLK cycle depending on the mode - the 8253 has a max input clock rate of 2.6MHz, the 8254 has max input clock rate of 10MHz Programming considerations: to it EOI INT 8 1. load Mode Control Register 2. let bus settle (jmp $+2) 3. write counter value 4. if counter 0 is modified, an INT 8 handler must be written call the original INT 8 handler every 18.2 seconds. When does call the original INT 8 handler it must NOT send and to the 8259 for the timer interrupt, since the original handler will send the EOI also. Example code: countdown equ 8000h ; approx 36 interrupts per second cli

35 count mov al, b ; bit 7,6 = (00) timer counter 0 ; bit 5,4 = (11) write LSB then MSB ; bit 3-1 = (011) generate square wave ; bit 0 = (0) binary counter out 43h,al ; prep PIT, counter 0, square wave&init jmp $+2 mov cx,countdown ; default is 0x0000 (65536) (18.2 per sec) ; interrupts when counter decrements to 0 mov al,cl ; send LSB of timer count out 40h,al jmp $+2 mov al,ch ; send MSB of timer count out 40h,al jmp $+2 sti 7.Analog-to-digital converter An analog-to-digital converter (abbreviated ADC, A/D or A to D) is a device which converts continuous signals to discrete digital numbers. The reverse operation is performed by a digital-to-analog converter (DAC). Typically, an ADC is an electronic device that converts an input analog voltage (or current) to a digital number proportional to the magnitude of the voltage or current. However, some non-electronic or only partially electronic devices, such as rotary encoders, can also be considered ADCs. The digital output may use different coding schemes, such as binary, Gray code or two's complement binary. Resolution The resolution of the converter indicates the number of discrete values it can produce over the range of analog values.

36 The values are usually stored electronically in binary form, so the resolution is usually expressed in bits. In consequence, the number of discrete values available, or "levels", is usually a power of two. For example, an ADC with a resolution of 8 bits can encode an analog input to one in 256 different levels, since 2 8 = 256. The values can represent the ranges from 0 to 255 (i.e. unsigned integer) or from -128 to 127 (i.e. signed integer), depending on the application. Resolution can also be defined electrically, and expressed in volts. The voltage resolution of an ADC is equal to its overall voltage measurement range divided by the number of discrete intervals as in the formula: Where: Q is resolution in volts per step (volts per output code), E FSR is the full scale voltage range = V RefHi V RefLow, M is the ADC's resolution in bits. N is the number of intervals, given by the number of available levels (output codes), which is: N = 2 M Some examples may help: Example 1 o o Full scale measurement range = 0 to 10 volts ADC resolution is 12 bits: 2 12 = 4096 quantization levels (codes) Example 2 o ADC voltage resolution is: (10V - 0V) / 4096 codes = 10V / 4096 codes volts/code 2.44 mv/code o o Full scale measurement range = -10 to +10 volts ADC resolution is 14 bits: 2 14 = quantization levels (codes) Example 3 o ADC voltage resolution is: (10V - (-10V)) / codes = 20V / codes volts/code 1.22 mv/code

37 o o Full scale measurement range = 0 to 8 volts ADC resolution is 3 bits: 2 3 = 8 quantization levels (codes) o ADC voltage resolution is: (8 V 0 V)/8 codes = 8 V/8 codes = 1 volts/code = 1000 mv/code In practice, the smallest output code ("0" in an unsigned system) represents a voltage range which is 0.5X of the ADC voltage resolution (Q)(meaning half-wide of the ADC voltage Q ) while the largest output code represents a voltage range which is 1.5X of the ADC voltage resolution (meaning 50% wider than the ADC voltage resolution). The other N 2 codes are all equal in width and represent the ADC voltage resolution (Q) calculated above. Doing this centers the code on an input voltage that represents the M th division of the input voltage range. For example, in Example 3, with the 3-bit ADC spanning an 8 V range, each of the N divisions would represent 1 V, except the 1st ("0" code) which is 0.5 V wide, and the last ("7" code) which is 1.5 V wide. Doing this the "1" code spans a voltage range from 0.5 to 1.5 V, the "2" code spans a voltage range from 1.5 to 2.5 V, etc. Thus, if the input signal is at 3/8ths of the full-scale voltage, then the ADC outputs the "3" code, and will do so as long as the voltage stays within the range of 2.5/8ths and 3.5/8ths. This practice is called "Mid-Tread" operation. This type of ADC can be modeled mathematically as: The exception to this convention seems to be the Microchip PIC processor, where all M steps are equal width. This practice is called "Mid-Rise with Offset" operation. In practice, the useful resolution of a converter is limited by the best signal-tonoise ratio that can be achieved for a digitized signal. An ADC can resolve a signal to only a certain number of bits of resolution, called the "effective number of bits" (ENOB). One effective bit of resolution changes the signal-to-noise ratio of the digitized signal by 6 db, if the resolution is limited by the ADC. If a preamplifier has

38 been used prior to A/D conversion, the noise introduced by the amplifier can be an important contributing factor towards the overall SNR. Response type Linear ADCs Most ADCs are of a type known as linear [1] The term linear as used here means that the range of the input values that map to each output value has a linear relationship with the output value, i.e., that the output value k is used for the range of input values from m(k + b) to m(k b), where m and b are constants. Here b is typically 0 or 0.5. When b = 0, the ADC is referred to as mid-rise, and when b = 0.5 it is referred to as mid-tread. Non-linear ADCs If the probability density function of a signal being digitized is uniform, then the signal-to-noise ratio relative to the quantization noise is the best possible. Because this is often not the case, it is usual to pass the signal through its cumulative distribution function (CDF) before the quantization. This is good because the regions that are more important get quantized with a better resolution. In the dequantization process, the inverse CDF is needed. This is the same principle behind the companders used in some tape-recorders and other communication systems, and is related to entropy maximization. For example, a voice signal has a Laplacian distribution. This means that the region around the lowest levels, near 0, carries more information than the regions with higher amplitudes. Because of this, logarithmic ADCs are very common in voice

39 communication systems to increase the dynamic range of the representable values while retaining fine-granular fidelity in the low-amplitude region. An eight-bit A-law or the µ-law logarithmic ADC covers the wide dynamic range and has a high resolution in the critical low-amplitude region, that would otherwise require a 12-bit linear ADC. Accuracy An ADC has several sources of errors. Quantization error and (assuming the ADC is intended to be linear) non-linearity is intrinsic to any analog-to-digital conversion. There is also a so-called aperture error which is due to a clock jitter and is revealed when digitizing a time-variant signal (not a constant value). These errors are measured in a unit called the LSB, which is an abbreviation for least significant bit. In the above example of an eight-bit ADC, an error of one LSB is 1/256 of the full signal range, or about 0.4%. Quantization error Main article: Quantization noise Quantization error is due to the finite resolution of the ADC, and is an unavoidable imperfection in all types of ADC. The magnitude of the quantization error at the sampling instant is between zero and half of one LSB. In the general case, the original signal is much larger than one LSB. When this happens, the quantization error is not correlated with the signal, and has a uniform distribution. Its RMS value is the standard deviation of this distribution, given by. In the eight-bit ADC example, this represents 0.113% of the full signal range. At lower levels the quantizing error becomes dependent of the input signal, resulting in distortion. This distortion is created after the anti-aliasing filter, and if these distortions are above 1/2 the sample rate they will alias back into the audio band. In order to make the quantizing error independent of the input signal, noise

40 with an amplitude of 1 quantization step is added to the signal. This slightly reduces signal to noise ratio, but completely eliminates the distortion. It is known as dither. Non-linearity All ADCs suffer from non-linearity errors caused by their physical imperfections, resulting in their output to deviate from a linear function (or some other function, in the case of a deliberately non-linear ADC) of their input. These errors can sometimes be mitigated by calibration, or prevented by testing. Important parameters for linearity are integral non-linearity (INL) and differential non-linearity (DNL). These non-linearities reduce the dynamic range of the signals that can be digitized by the ADC, also reducing the effective resolution of the ADC Digital-to-analog converter In electronics, a digital-to-analog converter (DAC or D-to-A) is a device for converting a digital (usually binary) code to an analog signal (current, voltage or electric charge). An analog-to-digital converter (ADC) performs the reverse operation. A DAC converts an abstract finite-precision number (usually a fixed-point binary number) into a concrete physical quantity (e.g., a voltage or a pressure). In particular, DACs are often used to convert finite-precision time series data to a continually-varying physical signal. A typical DAC converts the abstract numbers into a concrete sequence of impulses that are then processed by a reconstruction filter using some form of interpolation to fill in data between the impulses. Other DAC methods (e.g., methods based on Delta-sigma modulation) produce a pulse-density modulated signal that can then be filtered in a similar way to produce a smoothly-varying signal.

41 By the Nyquist Shannon sampling theorem, sampled data can be reconstructed perfectly provided that its bandwidth meets certain requirements (e.g., a baseband signal with bandwidth less than the Nyquist frequency). However, even with an ideal reconstruction filter, digital sampling introduces quantization error that makes perfect reconstruction practically impossible. Increasing the digital resolution (i.e., increasing the number of bits used in each sample) or introducing sampling dither can reduce this error. Instead of impulses, usually the sequence of numbers update the analogue voltage at uniform sampling intervals. These numbers are written to the DAC, typically with a clock signal that causes each number to be latched in sequence, at which time the DAC output voltage changes rapidly from the previous value to the value represented by the currently latched number. The effect of this is that the output voltage is held in time at the current value until the next input number is latched resulting in a piecewise constant or 'staircase' shaped output. This is equivalent to a zero-order hold operation and has an effect on the frequency response of the reconstructed signal. Piecewise constant signal typical of a zero-order (non-interpolating) DAC output. The fact that practical DACs output a sequence of piecewise constant values or rectangular pulses would cause multiple harmonics above the nyquist frequency. These are typically removed with a low pass filter acting as a reconstruction filter. However, this filter means that there is an inherent effect of the zero-order hold on the effective frequency response of the DAC resulting in a mild roll-off of gain at the higher frequencies (often a db loss at the Nyquist frequency) and depending on the filter, phase distortion. Not all DACs have a zero order response

42 SUMMARY We have introduced the I/O device interfacing with the microprocessor and discussed the need for interfacing an I/O device with microprocessor. Programmable Peripheral Interface (PPI) is used to interface the several peripheral devices with microprocessor is widely used PPI. For serial data communication Universal synchronous Asynchronous Receiver Transmitter (USART) 8251 has been most widely used. Its block diagram was discussed. Programmable Interrupt controller can be used to connect I/O devices with 8085/ and 8279 blocks were discussed in detail. Finally we have discussed Analog to Digital Converter (ADC) interface with 8085.

43 OBJECTIVE TYPE QUESTIONS 1. Access time is faster for a) ROM b) SRAM c) DRAM 2. In 8279 Strobed input mode, the control line goes low. The data on return lines is strobed in the. a) FIFO byte by byte b) FILO byte by byte c) LIFO byte by byte d) LILO byte by byte. 3. bit in ICW indicates whether the 8259A is cascade mode or not? 1 a) LTIM=0 b) LTIM=1 c) SNGL=0 d) SNGL=1 4. In 8255, under the I/O mode of operation we have modes. Under which mode will have the following features i) A 5 bit control port is available. ii) Three I/O lines are available at Port C. a) 3, Mode2 b) 2, Mode 2 c) 4, Mode 3 d) 3, Mode 2 5. In ADC 0808 if pin high enables output. a) EOC b) I/P0-I/P7 c) SOC d) OE 6. In 8279, a scanned sensor matrix mode, if a sensor changes its state, the line goes to interrupt the CPU. a) CS, high b) A high 0, c) IRQ, high d) STB, high 7. In 8279 Status Word, data is read when pins are low, and write to the display RAM with are low. a) A, CS, RD & A, WR, CS. b) CS, WR, A & A, CS, RD c) A, RD & WR, CS d) CS, RD & A, CS In 8279, the keyboard entries are debounced and stored in an, that is further accessed by the CPU to read the key codes. a) 8-bit FIFO b) 8-byte FIFO c) 16 byte FIFO d) 16 bit FIFO

44 9. The 8279 normally provides a maximum of seven segment display interface with CPU. a) 8 b) 16 c) 32 d) For the most Static RAM the write pulse width should be at least a) 10ns b) 60ns c) 300ns d) 1μs 11. BURST refresh in DRAM is also called as a) Concentrated refresh b) distributed refresh c) Hidden refresh d) none 12. For the most Static RAM the maximum access time is about a) 1ns b) 10ns c) 100ns d) 1μs 13. Which of the following statements on DRAM are correct? i) Page mode read operation is faster than RAS read. ii) RAS input remains active during column address strobe. iii) The row and column addresses are strobed into the internal buffers using RAS and CAS inputs respectively. a) i & iii b) i & ii c) all d) iii microprocessor is interfaced to 8253 a programmable interval timer. The maximum number by which the clock frequency on one of the timers is divided by a) 2 16 b) 2 8 c) 2 10 d) is interfaced to two 8259s (Programmable interrupt controllers). If 8259s are in master slave configuration the number of interrupts available to the 8086 microprocessor is a) 8 b) 16 c) 15 d) 64

45 QUESTIONS 1. Name the two modes of operation of DMA controller? 2. List the operating modes of 8253 timer. 3. Give the control word format of timer? 4. What is the use of USART? 5. Compare serial and parallel communication. 6. What is the use of Keyboard and display controller? 7. What are the functions performed by 8279? 8. What is PPI? 9. Give the control word format for I/O mode of 8255? 10. Give the BSR mode format of What is the need for interrupt controller? 12. What are the registers present in 8259? 13. What are the applications of 8253? 14. Define interrupts. 15. Define DMA process. 16. Give the status word format of Draw the Block diagram and explain the operations of 8251 serial communication interface. 18. Draw the Block diagram of 8279 and explain the functions of each block. 19. Draw the block diagram of programmable interrupt controller and explain its operations.

46 20. Discuss in detail about the operation of timer along with its various modes. 21. Draw the Block diagram of DMA controller and explain its operations. 22.What does the CPU do when it receive an interrupt? How do you enable and disable interrupts in Explain the command words/control words of 8259 in details. 24. With the help of block diagram explain various modes of operation of 8259 in details. 25. Explain type 0,1,2 interrupts found interrupt vector table of 8086/8088 microprocessor. 26. Describe the use of CAS0, CAS and CAS2 lines in a system with a cascaded 8259 s. 27. What are the different modes of operation of the 8253 programmable timer? How does 8254 differ from 8253? 28. Which mode will you use to generate a square wave? Give a flow chart to generate it on Explain with neat waveform the mode 0 of the 8253 timer/counter. 30. Explain with the help of block diagram, functioning of 8253 in various programmable modes. 31. A 32-bit binary counter is to be implemented using timer/counter i)design and explain the control word to meet above requirement ii)draw timing diagram of the mod(s) used.

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

UNIT - II PERIPHERAL INTERFACING WITH 8085

UNIT - II PERIPHERAL INTERFACING WITH 8085 UNIT - II PERIPHERAL INTERFACING WITH 8085 Peripheral Interfacing is considered to be a main part of Microprocessor, as it is the only way to interact with the external world. The interfacing happens with

More information

9. PERIPHERAL CHIPS 9a

9. PERIPHERAL CHIPS 9a 9. PERIPHERAL CHIPS 9a 8255: Programmable Peripheral Interface. Draw the pin diagram of PPI 8255. Ans. The pin diagram of 8255 is shown in Fig. 9a. PA 3 4 PA 4 PA2 2 39 PA 5 PA 3 38 PA 6 PA 4 37 PA7 RD

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT IV I/O INTERFACING PART A (2 Marks) 1. Name the three modes used by the DMA processor to transfer data? [NOV/DEC 2006] Signal transfer mode (cycling

More information

Features: 3 8-bit IO ports PA, PB, PC. PA can be set for Modes 0, 1, 2. PB for 0,1 and PC for mode 0 and for BSR. Modes 1 and 2 are interrupt driven.

Features: 3 8-bit IO ports PA, PB, PC. PA can be set for Modes 0, 1, 2. PB for 0,1 and PC for mode 0 and for BSR. Modes 1 and 2 are interrupt driven. Features: 3 8-bit IO ports PA, PB, PC PA can be set for Modes, 1, 2. PB for,1 and PC for mode and for BSR. Modes 1 and 2 are interrupt driven. PC has 2 4-bit parts: PC upper (PCU) and PC lower (PCL), each

More information

To Interface The 8085 Microprocessor

To Interface The 8085 Microprocessor To Interface The 8085 Microprocessor A microprocessor has to be interfaced with various peripherals to perform various functions. Let's discuss about the Interfacing techniques in detail. Introduction

More information

CHAPTER: 3 PROGRAMMABLE PERIPHERAL INTERFACE & ELECTROMECHANICAL DEVICES INTERFACING

CHAPTER: 3 PROGRAMMABLE PERIPHERAL INTERFACE & ELECTROMECHANICAL DEVICES INTERFACING CHAPTER: 3 1 PROGRAMMABLE PERIPHERAL INTERFACE & ELECTROMECHANICAL DEVICES INTERFACING Introduction to 8255 PPI 2 The Intel 8255A is a high-performance, general purpose programmable I/O device is designed

More information

UNIT-IV. The semiconductor memories are organized as two-dimensional arrays of memory locations.

UNIT-IV. The semiconductor memories are organized as two-dimensional arrays of memory locations. UNIT-IV MEMORY INTERFACING WITH 8086: The semi conductor memories are of two types: Static RAM Dynamic RAM The semiconductor memories are organized as two-dimensional arrays of memory locations. For Ex:

More information

Segment A Programmable Peripheral Interface (PPI)

Segment A Programmable Peripheral Interface (PPI) Segment 6 8255A Programmable Peripheral Interface (PPI) Content Why 8255A? Handshaking and Handshaking Signal Parallel Data Transfer 8255A Internal Block Diagram Description of 8255A Internal Block Diagram

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

Week 7. Input/Output Interface Circuits and LSI Peripheral Devices

Week 7. Input/Output Interface Circuits and LSI Peripheral Devices Week 7 Input/Output Interface Circuits and LSI Peripheral Devices Core and Special Purpose I/O Interfaces Special purpose I/O interfaces display parallel printer interface serial communication 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

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

General Purpose Programmable Peripheral Devices. Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Chapter 15 General Purpose Programmable Peripheral Devices by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Microprocessor & Interfacing (140701) Rahul Patel 1

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

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors Interface DAC to a PC Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012 licheng@engr.mun.ca DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods

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

Lecture-53 Mode 2: (Strobed Bidirectional bus I/O) This functional configuration provides means for communicating with a peripheral device on a

Lecture-53 Mode 2: (Strobed Bidirectional bus I/O) This functional configuration provides means for communicating with a peripheral device on a Lecture-53 Mode 2: (Strobed Bidirectional bus I/O) This functional configuration provides means for communicating with a peripheral device on a single 8-bit I/O data bus in both directions, i.e., for both

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 INTERFACING. Richa Upadhyay Prabhu. NMIMS s MPSTME February 25, 2016

INTERFACING INTERFACING. Richa Upadhyay Prabhu. NMIMS s MPSTME February 25, 2016 INTERFACING Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu February 25, 2016 8255: Programmable Peripheral Interface or Programmable Input output Device Introduction METHODS OF DATA TRANSFER

More information

Unit-IV Peripheral Interfacing S.Sayeekumar, AP/RMDEEE

Unit-IV Peripheral Interfacing S.Sayeekumar, AP/RMDEEE Unit-IV Peripheral Interfacing S.Sayeekumar, AP/RMDEEE 8251 The 8251A is a programmable serial communication interface chip designed for synchronous and asynchronous serial data communication. It supports

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

Week 11 Programmable Interrupt Controller

Week 11 Programmable Interrupt Controller Week 11 Programmable Interrupt Controller 8259 Programmable Interrupt Controller The 8259 programmable interrupt controller (PIC) adds eight vectored priority encoded interrupts to the microprocessor.

More information

8259A - STUDY CARD 1. INTRODUCTION

8259A - STUDY CARD 1. INTRODUCTION 8259A - STUDY CARD 1. INTRODUCTION Electro Systems Associates Private Limited (ESA) manufactures trainers for most of the popular microprocessors viz 8085, Z-80, 8031 8086/88, 68000 and 80196. ESA offers

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

Chapter 12: INTERRUPTS

Chapter 12: INTERRUPTS Chapter 12: INTERRUPTS 12 1 BASIC INTERRUPT PROCESSING This section discusses the function of an interrupt in a microprocessor-based system. Structure and features of interrupts available to Intel microprocessors.

More information

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor Subject Name: Microprocessor and Microcontroller Year: 3 rd Year Subject Code: CS502 Semester: 5 th Module Day Assignment 1 Microprocessor

More information

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization 8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization between two devices. So it is very useful chip. The

More information

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS Q.2 a. Draw pin diagram and signal group diagram of 8085 microprocessor. (8) b. List out the various categories of the 8085 instructions. Give examples of the instructions for each group. (8) Data transfer

More information

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Chapter 12 Interrupts by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar Microprocessor & Interfacing (140701) Rahul Patel 1 Points to be Discussed 8085 Interrupts

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

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

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microprocessor Subject Code: 17443 I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key words and

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

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

EC6504-MP&MC, UNIT3 Page 1

EC6504-MP&MC, UNIT3 Page 1 Year/sem: 02/04 UNIT III I/O INTERFACING Academic Year: 2014-2015 (even) 1. What is interfacing? An interface is a shared boundary between the devices which involves sharing information. Interfacing is

More information

Page 1 of 18 Hardware Training Tools Data Acquisition I/O Cards Development Tools Pic Tutor 8255 CHIPS Software CAD Education Consulting Downloads PRICE LIST Corporate About AMS Chronology Contact Sales

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

4) In response to the the 8259A sets the highest priority ISR, bit and reset the corresponding IRR bit. The 8259A also places

4) In response to the the 8259A sets the highest priority ISR, bit and reset the corresponding IRR bit. The 8259A also places Lecture-52 Interrupt sequence: The powerful features of the 8259A in a system are its programmability and the interrupt routine address capability. It allows direct or indirect jumping to the specific

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

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller. UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip

More information

This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on PIO 8255 (Programmable Input Output Port).

This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on PIO 8255 (Programmable Input Output Port). This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on PIO 8255 (Programmable Input Output Port). 1. Programmable peripheral input-output port is other name for a) serial input-output

More information

Lecture-61 Initialization Control Word 2 (ICW2):

Lecture-61 Initialization Control Word 2 (ICW2): Lecture-61 Initialization Control Word 2 (ICW2): After issuing ICW1 on even address, the PIC is ready to accept initialization Control Word 2. It is issued to an address having A 0 =1, i.e., on odd address.

More information

Programmable Peripheral Interface (PPI) 8255A. CEN433 King Saud University Dr. Mohammed Amer Arafah

Programmable Peripheral Interface (PPI) 8255A. CEN433 King Saud University Dr. Mohammed Amer Arafah Programmable Peripheral Interface (PPI) 8255A CEN433 King Saud University Dr. 1 Functional Diagram 2 Pin Description 3 8255A Basic Operation A 1 A 0 Port 0 0 Port A 0 1 Port B 1 0 Port C 1 1 Control Word

More information

7/19/2013. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to: Chapter Objectives 12 1 BASIC INTERRUPT PROCESSING

7/19/2013. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to: Chapter Objectives 12 1 BASIC INTERRUPT PROCESSING Chapter 12: Interrupts Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is

More information

UNIT III. 2. Non-maskable interrupts. 3. Software interrupt. 4. Internal interrupt

UNIT III. 2. Non-maskable interrupts. 3. Software interrupt. 4. Internal interrupt UNIT III 8086 INTERRUPTS: An interrupt is the method of processing the microprocessor by peripheral device. An interrupt is used to cause a temporary halt in the execution of program. Microprocessor responds

More information

Chapter 12: Interrupts

Chapter 12: Interrupts Chapter 12: Interrupts Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is

More information

sequence is not needed. (ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64.

sequence is not needed. (ROM space). Another application is to use the poll mode to expand the number of priority levels to more than 64. Lecture-55 Poll Command: In this mode the INT output is not used for the microprocessor internal interrupt enable F/F is reset, disabling its interrupt input, service to device is achieved by software

More information

ROEVER ENGINEERING COLLEGE

ROEVER ENGINEERING COLLEGE ROEVER ENGINEERING COLLEGE ELAMBALUR, PERAMBALUR- 621 212 DEPARTMENT OF INFORMATION TECHNOLOGY MICROPROCESSOR & MICROCONTROLLER 2 marks questions andanswers Unit I 1. Define microprocessor? A microprocessor

More information

Lecture-51 INTEL 8259A Programmable Interrupt Controller

Lecture-51 INTEL 8259A Programmable Interrupt Controller Lecture-51 INTEL 8259A Programmable Interrupt Controller The 8259A is a programmable interrupt controller designed to work with Intel microprocessor 8080 A, 8085, 8086, 8088. The 8259 A interrupt controller

More information

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A

8255 Programmable Peripheral Interface Architecture MCT/UNIT III/NARASIMHARAJ/LECTURE NOTES /IV MECH A 8255 Programmable Peripheral Interface Architecture 8255 PPI Architecture The parallel input-output port chip 8255 is also called as programmable peripheral input- output port. The Intel s 8255 is designed

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

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012 licheng@engr.mun.ca I/O Design When designing an I/O port, ensure that the port is only active when selected by the microprocessor Use latches

More information

MP Assignment III. 1. An 8255A installed in a system has system base address E0D0H.

MP Assignment III. 1. An 8255A installed in a system has system base address E0D0H. MP Assignment III 1. An 8255A installed in a system has system base address E0D0H. i) Calculate the system addresses for the three ports and control register for this 8255A. System base address = E0D0H

More information

Pin Description, Status & Control Signals of 8085 Microprocessor

Pin Description, Status & Control Signals of 8085 Microprocessor Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing

More information

Northern India Engineering College, Delhi (GGSIP University) PAPER I

Northern India Engineering College, Delhi (GGSIP University) PAPER I PAPER I Q1.Explain IVT? ANS. interrupt vector table is a memory space for storing starting addresses of all the interrupt service routine. It stores CS:IP PAIR corresponding to each ISR. An interrupt vector

More information

The Purpose of Interrupt

The Purpose of Interrupt Interrupts 3 Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is a hardware-initiated

More information

Microcontroller interfaces

Microcontroller interfaces Microcontroller interfaces 1 Microcontroller interfaces Microcontroller interfaces Digital Analog Serial Parallel Binary (on/off) Voltage Current Asynchronous Synchronous 1-wire RS232/485 Ethernet 2-wire

More information

EASWARI ENGINEERING COLLEGE DEPARTMENT OF ELECTRONICS AND COMMUNICATION QUESTION BANK - V SEMESTER ECE EC2304 MICROPROCESSORS AND MICROCONTROLLERS UNIT I 1. When the 8086 processor is in minimum mode and

More information

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer: Q.2 a. Discuss and differentiate between a Microprocessor and a Microcontroller. Microprocessor is an IC which has only the CPU inside them i.e. only the processing powers such as Intel s Pentium 1,2,3,4,

More information

Micro Processor & Micro Controllers

Micro Processor & Micro Controllers Micro Processor & Micro Controllers 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units of microprocessor?

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

Subject Code: Model Answer Page No: /25

Subject Code: Model Answer Page No: /25 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

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

Lecture-55 System Interface:

Lecture-55 System Interface: Lecture-55 System Interface: To interface 8253 with 8085A processor, CS signal is to be generated. Whenever CS =0, chip is selected and depending upon A 1 and A 0 one of the internal registers is selected

More information

Registers Format. 4.1 I/O Port Address

Registers Format. 4.1 I/O Port Address 4 Registers Format The detailed descriptions of the register format and structure of the ACL- 8112 are specified in this chapter. This information is quite useful for the programmer who wish to handle

More information

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM i SYLLABUS UNIT - 1 CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS Computer Types, Functional Units, Basic Operational Concepts, Bus Structures, Software, Performance, Multiprocessors and Multicomputers, Historical

More information

Interfacing Fundamentals

Interfacing Fundamentals CHAPTER Interfacing Fundamentals 3.1 Introduction There is no doubt that the microcomputer revolution will continue into the future and many will be required to specify and integrate microprocessors into

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

27 December 2016 Pramod Ghimire. Slide 1 of 16

27 December 2016 Pramod Ghimire. Slide 1 of 16 8259-Programmable Interrupt Controller (8259-PIC) Slide 1 of 16 Programmable Interface Device A Programmable interface device is designed to perform various input/output functions. Such a device can be

More information

The K Project. Interrupt and Exception Handling. LSE Team. May 14, 2018 EPITA. The K Project. LSE Team. Introduction. Interrupt Descriptor Table

The K Project. Interrupt and Exception Handling. LSE Team. May 14, 2018 EPITA. The K Project. LSE Team. Introduction. Interrupt Descriptor Table and Exception Handling EPITA May 14, 2018 (EPITA) May 14, 2018 1 / 37 and Exception Handling Exception : Synchronous with program execution (e.g. division by zero, accessing an invalid address) : Asynchronous

More information

82C55. Programmable Peripheral Interface. Interfacing Part III

82C55. Programmable Peripheral Interface. Interfacing Part III 82C55 Programmable Peripheral Interface Interfacing Part III Review More on Address decoding Interface with memory Introduction to Programmable Peripheral Interface 82C55 About 82C55 The 82C55 is a popular

More information

LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD

LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD LABORATORY 1 INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEM BOARD 1. INTRODUCTION TO 8085 MICROPROCESSOR DEVELOPMENT SYSTEMS. The basic components of the 8085 Microprocessor Development System

More information

The 8255A: Programmable Peripheral Interface

The 8255A: Programmable Peripheral Interface CMP:885 Peripherals Summary- EE39: Computer Organization, rchitecture and MicroProcessors http://www.ee.iitb.ac.in/ sumantra/courses/up/up.html The 855: Programmable Peripheral Interface PROGRMMER S VIEW

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

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions.

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. Downloaded from www.books4career.blogspot.com 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units

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

MCQ From PICT College of Engineering

MCQ From PICT College of Engineering 1. Intel s programmable device (8253) facilitates the generation of accurate time delays. a) counter b) timer c) both a & b d) none of these 2. The programmable timer device (8253) contains three independent

More information

BASIC INTERFACING CONCEPTS

BASIC INTERFACING CONCEPTS Contents i SYLLABUS UNIT - I 8085 ARCHITECTURE Introduction to Microprocessors and Microcontrollers, 8085 Processor Architecture, Internal Operations, Instructions and Timings, Programming the 8085-Introduction

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

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

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

Microprocessors and Interfacng. Question bank

Microprocessors and Interfacng. Question bank Microprocessors & Interfacing 8086 ARCHITECTURE: UNIT-I Functional Diagram, Register Organization, Addressing modes, Instructions, Functional schematic, Minimum and Maximum mode operations of 8086, 8086

More information

Basic I/O Interface

Basic I/O Interface Basic I/O Interface - 8255 11 3 THE PROGRAMMABLE PERIPHERAL 82C55 programmable peripheral interface (PPI) is a popular, low-cost interface component found in many applications. The PPI has 24 pins for

More information

INTRO TO I/O INTERFACE

INTRO TO I/O INTERFACE Basic I/O Interface Introduction This chapter outlines some of the basic methods of communications, both serial and parallel, between humans or machines and the microprocessor. We first introduce the basic

More information

Computer Organization (Keyboard & Display Control, and Printers)

Computer Organization (Keyboard & Display Control, and Printers) Computer Organization (Keyboard & Display Control, and Printers) KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com Website:krchowdhary.com Department of Computer Science and Engineering MBM Engineering

More information

PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255

PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255 PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255 8255 is a general purpose programmable device used for data transfer between processor and I/O devices. It has 3 programmable I/O ports (PA,PB &PC) and port

More information

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices. Code No: R05320202 Set No. 1 1. (a) Discuss the minimum mode memory control signals of 8086? (b) Explain the write cycle operation of the microprocessor with a neat timing diagram in maximum mode. [8+8]

More information

C13. INTERFATA PARALELA PROGRAMABILA (PPI) I8255A (PIO)

C13. INTERFATA PARALELA PROGRAMABILA (PPI) I8255A (PIO) C13. INTERFATA PARALELA PROGRAMABILA (PPI) I8255A (PIO) 1.Descriere PIO 2. Arhitectura PIO 3. Programare PIO 4. PIO in PC 5. Aplicatii http://www.advancedmsinc.com/iocards/8255.htm http://www.eisti.fr/~ga/phy/iitr/ii05/tr.pdf

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

Weeks 9-10 Input/Output Interface Circuits and LSI Peripheral Devices Core and Special Purpose I/O Interfaces

Weeks 9-10 Input/Output Interface Circuits and LSI Peripheral Devices Core and Special Purpose I/O Interfaces Weeks 9-10 Input/Output Interface Circuits and LSI Peripheral Devices Core and Special Purpose I/O Interfaces Special purpose I/O interfaces are implemented as add-on cards on the PC display parallel printer

More information

Chapter 4 : Microprocessor System

Chapter 4 : Microprocessor System Chapter-4 Microprocessor System A microcomputer consists of a set of components or modules of three basic types CPU memory and I/O units which communicate with each other. PIN Configuration of 8085 Fig

More information

The advantages of registers over memory locations are as follows:

The advantages of registers over memory locations are as follows: Q.2 a. In a microprocessor, what is the use of a register? What are the advantages & disadvantages of using registers over a memory location? What is the speciality of register A (accumulator) over other

More information

82C54 CHMOS PROGRAMMABLE INTERVAL TIMER

82C54 CHMOS PROGRAMMABLE INTERVAL TIMER CHMOS PROGRAMMABLE INTERVAL TIMER Compatible with all Intel and most other microprocessors High Speed Zero Wait State Operation with 8 MHz 8086 88 and 80186 188 Handles Inputs from DC 10 MHz for -2 Available

More information

MICROPROCESSORS & INTERFACING (A1423) C.Lokanath Reddy Assistant Professor.

MICROPROCESSORS & INTERFACING (A1423) C.Lokanath Reddy Assistant Professor. MICROPROCESSORS & INTERFACING (A1423) C.Lokanath Reddy Assistant Professor clreddy@vardhaman.org Department of Electronics and Communication Engineering VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad,

More information

MULTIPLE CHOICE QUESTIONS

MULTIPLE CHOICE QUESTIONS SNJB College of Engineering Department of Computer Engineering MULTIPLE CHOICE QUESTIONS 1. A microprocessor is a chip integrating all the functions of a CPU of a computer. A. multiple B. single C. double

More information

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A Reg No Name FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER 2017 CS 305: Microprocessor and Microcontrollers Max. Marks: 100 Duration: 3 Hours PART A Answer all questions.

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

PCI bit Digital Input/ Output Card for PCI Bus. User s Manual

PCI bit Digital Input/ Output Card for PCI Bus. User s Manual PCI-1751 48-bit Digital Input/ Output Card for PCI Bus User s Manual Copyright This documentation and the software included with this product are copyrighted 1998 by Advantech Co., Ltd. All rights are

More information