Microprocessors Notes - Ebook download as PDF File .pdf), Text File .txt) or read notes by arun kumar notes by arun kumarnotes by arun kumarnotes by arun system, CPU Architecture, Machine language instructions, Instruction. Power Electronics Notes by Arunkumar G for 7th sem ECE. Microcontroller Notes by Arunkumar G for 4th sem ECE. Digital Communication Notes by Arunkumar G for 6th sem ECE. 7th sem sjbit notes and assignments. COMPUTER COMMUNICATION NETWORKS [10EC71] Assignment Notes DSP ALGORITHMS.
|Language:||English, Arabic, Hindi|
|Genre:||Health & Fitness|
|ePub File Size:||29.70 MB|
|PDF File Size:||14.40 MB|
|Distribution:||Free* [*Registration needed]|
PDF. Arun kumar notes for microprocessor(N/a). Download microcontroller notes by arunkumar G full chapter notes for Assembly language of , Lecture. LECTURE NOTES In the family of 16 bit microprocessors, Intel's was The architecture of supports a 16 bit ALU, a set of M Krishna kumar. Handwriten notes by arun kumar pdf, ask latest information, abstract, report, presentation. Notes for electronics and communication engineering students direct.
Microprocessor notes. Notes by arun kumar for vtu ec pdf download free. Same as shown in the microprocessor arun kumar notes for by searching. Are microprocessor notes by arun kumar pdf download you looking for microprocessor.
Notes by arun kumar pdf free download. Get details of microprocessor. Notes by arun kumar pdf free. Posts about arunkumar notes written by everything. Students who belongs to vtu university can download the notes for b. E electronics communication engineering in pdf. Microprocessors and microcontrollers notes. Mpmc pdf notes unit i.
The instructions set contained only 45 instructions. At first, the applications abounded for this device, like video game systems and small microprocessor based control systems.
The main problem with this early microprocessors were its speed, word width and memory size. Later Intel introduced , an updated version of , which operated at higher speed, although it lacked improvements in word width and memory size. Intel Corporation released the an extended 8-bit version of The addressed an expanded memory size 16 Kbytes and contained additional instruction, totally 48 instructions, that provided an opportunity for its application in more advanced systems.
Microprocessors were then used very extensively for many application developments. Many companies like Intel, Motorola, Zilog and many more recognized the demanding requirement of powerful microprocessors to the design world. In fulfilling this requirement many powerful microprocessors were arrived to the market of which we study the Intels contribution.
The was compatible with TTL, whereas the was not directly compatible. The also addressed four times more memory 64 Kbytes than the 16 Kbytes. Loops Dept of ECE. The segment registers and their default offsets are given below.
Microprocessor 10EC62 a: Microprocessor 10EC62 d: Addressing modes for accessing immediate and register data register and immediate modes.
Data Addressing Modes of The has 12 addressing modes. Subsequent addresses are sent out and the queue is filled upto 6 bytes. The execution of instruction in is as follows: The microprocessor unit MPU sends out a bit physical address to the memory and fetches the first instruction of a program from the memory. The instructions are decoded and further data if necessary are fetched from memory.
Addressing modes for accessing data in memory memory modes C. Machine language: Addressing modes of When executes an instruction. After the execution of the instruction. These data are called its operands and may be part of the instruction. B bus and C bus. The various addressing modes can be classified into five groups. Microprocessor 10EC62 D. MOV BH. MOV DX. The operand to be accessed is specified as residing in an internal register of Example 1: MOV CL.
Relative addressing mode E. Immediate addressing mode: In this mode. CH is an illegal instruction. Example 2: It must use the BIU. MOV CH.
Direct addressing mode: The instruction Opcode is followed by an affective address. Microprocessor 10EC62 B. The Execution Unit EU has direct access to all registers and data for register and immediate operands. In the direct addressing mode. The default segment is always DS. However the EU cannot directly access the memory operands. Then BIU generates the 20 bit physical address H.
MOV CX. Example 3: MOV [DI]. The 20 bit physical address is computed using DS and EA. The content of BX is moved to memory locations H and H. MOV AL. Based addressing mode: Microprocessor 10EC62 8 bit content of memory location is moved to CH. Register indirect addressing mode: Physical address: String addressing mode: Based Indexed addressing mode: ALPHA — Indexed addressing mode: Port number is an 8 bit immediate operand.
IN AX. Microprocessor 10EC62 The string instructions automatically assume SI to point to the first byte or word of the source operand and DI to point to the first byte or word of the destination operand. OUT 05 H. The port number is taken from DX. Relative addressing mode: Implied addressing mode: Instruction using this mode have no operands.
CLC which clears carry flag to zero. Special functions of general-purpose registers: In 8 bit multiplication, one of the operands must be in AL. The other operand can be a byte in memory location or in another 8 bit register. In 16 bit multiplication, one of the operands must be in AX. The other operand can be a word in memory location or in another 16 bit register. BX register: In instructions where we need to specify in a general purpose register the 16 bit effective address of a memory location, the register BX is used register indirect.
CX register: In Loop Instructions, CX register will be always used as the implied counter. In these instructions the port address, if greater than FFH has to be given as the contents of DX register. Instruction execution timing Instruction Format: The instruction sizes vary from one to six bytes. The OP code occupies six bytes and it defines the operation to be carried out by the instruction.
Register Direct bit D occupies one bit. It defines whether the register operand in byte 2 is the source or destination operand. The second byte of the instruction usually identifies whether one of the operands is in memory or whether both are registers. This byte contains 3 fields. MOD 2 bits. Register field occupies 3 bits. It defines the register for the first operand which is specified as source or destination by the D bit. MOD selects memory mode.
The 6 bit Opcode for SUB is SUB Bx. The W bit must be 1 to indicate it is a word operation. The 4 byte code for this instruction would be 89 96 34 12H. The D bit must be o. The w bit must be 1 to indicate it is a word operation. Thus the 5 byte code for this instruction would be 3E 89 96 45 23 H. In this example.
HD disp. Assembler instruction format. This generates only a 4 byte code. Illustration of these instructions with example programs. The other operand can come from another register. In particular. Either the source or destination has to be a register. For example: The first operand has to be a register and the result is stored in that register. Microprocessor 10EC62 For example: MOV BX. Problems in the decoding of the instruction and the operation of the pipeline are responsible for this strange turn of events.
As of the If you do not want to execute the loop when cx contains zero. Since this instruction decrements cx then checks for zero. If you want to extend the range of this instruction. The reason is quite simple. You can use this instruction anywhere you want to decrement cx and then check for a Dept of ECE. This instruction does the following: This instruction is quite useful The 80x86 Instruction Set after cmp or cmps instruction.
Move on to next array element. The loop instruction does not affect any flags. This instruction is useful if you need to repeat a loop while some value is equal to another.
Max 16 array elements. Index into the array note next inc. Either the zero flag is clear or the instruction decremented cx to zero. Microprocessor 10EC62 zero result. By testing the zero flag after the loop instruction with a je or jne instruction.
Repeat if it is. Otherwise it fell through because the zero flag was set. Jump if all elements were zero. The algorithm is cx: Microprocessor 10EC62 cmp Array[bx]. If the zero flag is clear at that point.
See if this element is zero. If you want to output data to the port. If the target address is out of range. In a real system. Suppose bit 7 of input port h contains a one if the device is busy and contains a zero if the device is not busy.
Maximum of array elements. Robust programs usually apply a timeout to a loop like this. Get port test al. You can use the loopne instruction to repeat some maximum number of times while waiting for some other condition to be true. Does this element contain zero? If the device fails to become busy within some specified Dept of ECE. Quit if it does. Index into array. See if bit 7 is one jne WaitNotBusy. Both eight. Input port address mov cx. Get data at port. Repeat if busy and no time out.
Microprocessor 10EC62 amount of time. The following code will accomplish this: The Logical Instructions: See if busy loopne WaitNotBusy. These are bt. Rotate and Bit Instructions The 80x86 family provides five logical instructions. Loop The and.
These instructions can manipulate bits. The logical instructions are and. The and later processors provide an even richer set of operations. The following sections describe each of these instructions in detail. The not instruction does not affect any flags. The and instruction sets the zero flag if the two operands do not have any ones in corresponding bit positions since this would produce a zero result.
The xor instruction will set the zero flag only if both operands are equal. Testing the zero flag after these instructions is particularly useful. The or instruction will only set the zero flag if both operands contain zero. Microprocessor 10EC62 The specific variations are and reg. Noticethat the xor operation will produce a zero result if and only if Dept of ECE. The Shift Instructions: The and later processors provide two additional shifts: Microprocessor 10EC62 the two operands are equal.
You can use these instructions. The shift instructions move bits around in a register or memory location. Many programmers commonly use this fact to clear a sixteen bit register to zero since an instruction of the form Xor reg On and later processors. Like the addition and subtraction instructions. Although one does not normally think of operating on signed data with these instructions.
The general format for a shift instruction is shl dest. On pre processors theycan be eight or sixteen bits. You can use the and instruction to set selected bits to zero in the destination operand. These instructions compute the obvious bitwise logical operation on their operands.
This is known as masking out data. This form is available on and later processors only. The shld and shrd instructions use the format: Microprocessor 10EC62 specified by the count operand.
They represent the same instruction and use identical binary encodings. On and later processors you can use an eight bit immediate constant. It would be a waste of time to shift left al by nine bits eight would produce the same result. The overflow flag is undefined if the shift count is not one. Of course. The shld and shrd instructions work on 16 and 32 bit destination operands only.
Zeros fill vacated positions at the L. These instructions move each bit in the destination operand one bit position to the left the number of times specified by the count operand. The shl. Note that shl ax. If the H. Move L. Clear H. F for this code to work properly the shift left operation automatically clears the L. Merge the bits. This form requires an or later or al. Merge in H. The shift left instruction is especially useful for packing data. You could use the following code to do this: Since shifting an integer value to the left one position is equivalent to multiplying that value by two.
Signed division by There is a very important difference between the sar and idiv instructions. Signed division by 8 sar ax. For positive Dept of ECE. Signed division by 16 sar ax. Multiple right shifts divide the previous shifted result by two. Signed division by sar ax. The idiv instruction always truncates towards zero while sar truncates results toward the smaller result. Each shift to the right divides the value by two.
Signed division by 32 sar ax. This occurs when you shift a zero into the H. SAR The sar instruction shifts all the bits in the destination operand to the right one bit. Overflow can never occur with this instruction. The sar instruction sets the flag bits as follows: This instruction sets the carry flag if the result does not fit in the destination operand i.
Signed division by 4 sar ax. Signed division by 2 sar ax. Signed division by 64 sar ax. This is because sar ax. Sign extend bx into cx: The sar ax. The following examples demonstrate the difference: Microprocessor 10EC62 results. Equivalent to CDQ: The following code sequences provide examples of this usage: Equivalent to CWD: The sar instruction lets you sign extend one register into another register of the same size.
Produces -8 Keep this in mind if you use sar for integer division operations. Equivalent to CBW: Produces -7 mov ax. The shift right instruction is especially useful for unpacking data. Move H. Get a copy of the H. The shr instruction sets the flag bits as follows: Microprocessor 10EC62 SHR The shr instruction shifts all the bits in the destination operand to the right one bit shifting a zero into the H. Remove H. Note that this instruction does not modify the value of operand2.
Their generic forms are shld operand1. The shld instruction sets the flag bits as follows: The immediate operand can be a value in the range zero through n These instructions are available only on and later processors.
If the count is not one. Both operands must be the same size. The H. Microprocessor 10EC62 etc. The shld instruction shifts bits in operand1 to the left.
It also shifts the H. If ax contains -1 and you execute shr ax. If the count is n. Operand1 can be a register or a memory location. Note that shr ax. Use the sar instruction if you need to divide a signed integer by some power of two.
The immediate operand specifies the number of bits to shift. Merge into bx. Get L.. The shrd instruction is similar to shld except. Get H. BX now contains all four nibbles. Intel designed these instructions to allow fast multiprecision 64 bits. For more information on such usage.
The shrd instruction is marginally more useful than shld for packing data. Microprocessor 10EC62 The shld instruction is useful for packing data from many different sources. Quite frankly. Get nibble 1.
You can easily use the shrd instruction to pack this data into dx as follows: Copy H. Get nibble 2. You could do this with the following code: These instructions all take the forms: Figure 6.
This form is avialable on and later processors only. They include rcl rotate through carry left. Important warning: Other than the source of the value shifted into bit zero. It shifts its bits right through the carry flag and back into the H. ROL The rol instruction is similar to the rcl instruction in that it rotates its operand to the left the specified number of bits.
RCR The rcr rotate through carry right instruction is the complement to the rcl instruction. The rcl instruction sets the flag bits as follows: This instruction sets the flags in a manner analogous to rcl: Keep in mind.
Microprocessor 10EC62 The rcl rotate through carry left. Rol also copies the output of the H.
Atria | e-Learning
This lack of orthogonality can cause you lots of grief if you forget it and attempt to test these flags after an rcl operation. The rol instruction sets the flags identically to rcl. If you need to test one of these flags after an rcl operation.
That is. Segment Over Ride Prefix SOP is used when a particular offset register is not used with its default base segment register. Microprocessor 10EC62 extract bits To use DS as the new register 3EH should be prefix. Rather than shifting the previous carry flag into the H.
The following code sequences will both accomplish this: The microprocessor has 20 bit address pins. To generate this 20 bit physical address from 2 sixteen bit registers, the following procedure is adopted.
The 20 bit address is generated from two bit registers. The first bit register is called the segment base register. These are code segment registers to hold programs, data segment register to keep data, stack segment register for stack operations and extra segment register to keep strings of data.
This is similar to multiplying four hex numbers by the base This multiplication process takes place in the adder and thus a 20 bit number is generated. This is called the base address. To this a bit offset is added to generate the bit physical address. Segmentation helps in the following way.
The program is stored in code segment area. The data is stored in data segment area. In many cases the program is optimized and kept unaltered for the specific application. Normally the data is variable.
Microprocessor 8086 Lab programs
So in order to test the program with a different set of data, one need not change the program but only have to alter the data. Same is the case with stack and extra segments also, which are only different type of data storage facilities. Generally, the program does not know the exact physical address of an instruction. Loader linker further converts the object module prepared by the assembler into executable form, by linking it with other object modules and library modules.
The final executable map of the assembly language program is prepared by the loader at the time of loading into the primary memory for actual execution. The assembler prepares the relocation and linkages information subroutine, ISR for loader. The operating system that actually has the control of the memory, which is to be allotted to the program for execution, passes the memory address at which the program is to be loaded for execution and the map of the available memory to the loader.
Based on this information and the information generated by the assembler, the loader generates an executable map of the program and further physically loads it into the memory and transfers control to for execution.
Thus the basic task of an assembler is to generate the object module and prepare the loading and linking information. The first phase of assembling is to analyze the program to be converted. This phase is called Pass1 defines and records the symbols, pseudo operands and directives. It also analyses the segments used by the program types and labels and their memory requirements. The second phase looks for the addresses and data assigned to the labels. It also finds out codes of the instructions from the instruction machine, code database and the program data.
It is the task of the assembler designer to select the suitable strings for using them as directives,. Data2 DW ……. The assembler sets aside a location and does not initialize it to any specific value usually stores a zero. The DUP duplicate directive creates an array and stores a zero. They require a label to indicate the name of the procedure. Data Extra and Stack segments. Equates a numeric. PUBLIC informs the assembler that the names of procedures and labels declared after this directive have been already defined in some other assembly language modules.
Code HERE: Programming using keyboard and video display. REP Prefix. String instructions. Number format conversions. Table translation. Other examples are to compare the elements and two strings together in order to determine whether they are the same or different.
The microprocessor is equipped with special instructions to handle string operations.Arithmetic instructions 3. FLDCW [BX] instruction loads the control register of with the contents of the memory location whose 16 bit effective address is provided in BX register.
The 6 bit Opcode for SUB is Merge in H. Machine language instructions. If a hard disk memory is attached to the computer. The was available in a few modified versions such as SX. The control variable is successively assigned values from the specified list and for each such value. Thus the 32 bit floating point representation for Converts number from ST to integer form.
- HADEES IN ENGLISH PDF
- QUIT SMOKING BOOK
- SAP TSCM60 PDF
- FORBIDDEN LOVE EBOOK
- FIFA WORLD CUP SCHEDULE PDF
- MIRAR GRAMER BARI PDF
- LORD KRISHNA PDF
- JUNIE B JONES PDF
- NEW VENTURE CREATION EBOOK
- ANDROID DEVELOPMENT BOOK PDF
- THE GOSPEL ACCORDING TO COCO CHANEL PDF
- A GUIDE TO FLEXIBLE DIETING LYLE MCDONALD PDF
- SQL INJECTION PDF
- DATA STRUCTURE BOOK BY BALAGURUSWAMY PDF