Class 4
Class 4
Machine Language
• A number of words for a machine is fixed as the number of bits for a machine are fixed.
• Instructions are formed by the microprocessor design engineer, who selects a particular combination of
words to give them a specific meaning by applying the logic.
• An INSTRUCTION is a binary pattern entered through an input device in memory to command the
microprocessor for performing that specific function.
• 8085 has 246 bit patterns, amounting to 74 different instructions for performing various operations.
• for example: 0011 1100 is equivalent to 3 C . hence, instead of writing 0011 1100 we directly write 3 C for
our convenience.
Assembly language
• An assembly language is a low-level programming language for microprocessors and other
programmable devices
• Both the machine & assembly language are considered as low level languages for
programming.
• Assembler is the mnemonic program that translates the entered ASCII keyboard inputs into the
corresponding binary machine code for microprocessor.
WORKING OF MICROPROCESSOR
• When the microprocessor is given a command to execute the program, it reads and executes one
instruction at a time and finally sends the result to the output.
• So, a microprocessor first fetches the first instruction executes it, decodes it and then executes the next
instruction.
• This process of fetching, decoding and executing goes on until microprocessor has reached the halt
instruction.
Bus is a group of conducting wires which carries information, all the peripherals are
connected to microprocessor through Bus.
There are three types of buses (i) Address bus (ii) Data bus and (iii) Control bus .
1. Address bus
✓ Data bus is bidirectional because data flow in both directions, from microprocessor to memory or
✓ Length of Data Bus of 8085 microprocessor is 8 Bit , i.e. two Hexadecimal Digits, ranging from 00 H
to FF H.
✓ When it is write operation, the processor will put the data (to be written) on the data bus
✓ When it is read operation, the memory controller will get the data from specific memory block and p
✓ The width of the data bus is directly related to the largest number that the bus can carry
3. Control bus
This bus is used to generate timing and control signals to control all the associated peripherals,
microprocessor uses control bus to process data, that is what to do with selected memory location.
➢Memory read
➢Memory write
➢I/O read
➢I/O Write
➢Opcode fetch
If only one line of control bus is there for the read/write then - if this line is low (no electricity
flowing) then the memory is read, else if high (electricity is flowing) then the memory is written.
Working Blocks