Microprocessor and Controller
Microprocessor and Controller
• Temporary register is also an 8-bit register which the programmer can't access at all. It is
temporarily stored inside 8085 microprocessor which is 8 bit operand to the instruction
set. ... The result is stored in the accumulator, and the flags (flip-flops) are set or reset
according to the result of the operation.
• The Flag register is a Special Purpose Register. Depending upon the value of result after
any arithmetic and logical operation the flag bits become set (1) or reset (0). In 8085
microprocessor, flag register consists of 8 bits and only 5 of them are useful.
• IR (Instruction Register) is a special purpose register, which is used to receive the 8-bit
opcode portion of an instruction. It is not accessible to the programmer. What it means
is that there are no instructions by which the programmer can load it with values of his
choice. For example, instructions like ‘MOV IR, D’ or ‘MVI IR, 45H’ are not present in
the instruction set of 8085. Thus, IR register is not shown in the programmer's view of
8085.
• The 8085 has six general-purpose registers to store 8-bit data; these are identified as-
B, C, D, E, H, and L. These can be combined as register pairs – BC, DE, and HL, to
perform some 16-bit operation. These registers are used to store or copy temporary
data, by using instructions, during the execution of the program.
• Address and data buffers are used for bidirectional data transfer. They perform the
unidirectional data transfer when they send out the Least Significant Byte of the
address. These buffers are only used for increasing the driving capacity of the current.
• INTR, RST 7.5, RST 6.5, RST 5.5 are maskable interrupts in 8085 microprocessor.
Non-Maskable Interrupts are those which cannot be disabled or ignored by
microprocessor. TRAP is a non-maskable interrupt.
Microprocessor 8085 pin configuration :
• X1, X2 − A crystal (RC, LC N/W) is connected at these two pins and is used
to set frequency of the internal clock generator. This frequency is internally divided by 2.
CLK OUT − This signal is used as the system clock for devices connected with the
microprocessor.
• There are 2 serial signals, i.e. SID and SOD and these signals are used for serial
communication. SOD (Serial output data line) − The output SOD is set/reset as specified
by the SIM instruction. SID (Serial input data line) − The data on this line is loaded into
accumulator whenever a RIM instruction is executed.
• HLDA (HOLD Acknowledge) − It indicates that the CPU has received the HOLD
request and it will relinquish the bus in the next clock cycle. HLDA is set to low after the
HOLD signal is removed.
• HOLD – It indicates that another device is requesting the use of the address and data
bus. Having received HOLD request the microprocessor relinquishes the use of the buses
as soon as the current machine cycle is completed.
• These are output status signals used to give information of operation performed by
microprocessor. The S0 and S1 lines specify 4 different conditions of 8085 machine
cycles. Read: This is an active low output control signal used to read data from memory
or an I/O device.
• This signal indicates that the selected IO or memory device is to be read and is ready
for accepting data available on the data bus. WR − This signal indicates that the data
on the data bus is to be written into a selected memory or IO location. ... When the pulse
goes down it indicates data.
• This signal indicates that the data on the data bus is to be written into a selected
memory or IO location. ALE − It is a positive going pulse generated when a new
operation is started by the microprocessor. When the pulse goes high, it indicates
address.
Microcontroller 8051 architecture:
Microcontroller 8051 pin configuration:
programmable logic controller (PLC)
A programmable logic controller (PLC) or programmable controller is
an industrial digital computer which has been ruggedized and adapted
for the control of manufacturing processes, such as assembly lines,
or robotic devices, or any activity that requires high reliability control
and ease of programming and process fault diagnosis.