MPMC Unit-5 Material
MPMC Unit-5 Material
• Interfacing Microcontroller
• Programming 8051 Timers
• Serial Port Programming
• Interrupts Programming
• LCD & Keyboard Interfacing
• ADC, DAC & Sensor Interfacing
• External Memory Interface
• Stepper Motor and Waveform generation
• Comparison of Microprocessor, Microcontroller,
• PIC
• ARM processors
Interfacing Microcontroller
Interfacing Microcontroller
• Every electrical and electronics project designed to develop electronic
gadgets that are frequently used in our day-to-day life utilizes
microcontrollers with appropriate interfacing devices.
• There are different types of applications that are designed using
microcontroller-based projects.
• In maximum number of applications, the microcontroller is connected
with some external devices called as interfacing devices for
performing some specific tasks.
• For example, consider security system with a user changeable
password project, in which an interfacing device, keypad is interfaced
with microcontroller to enter the password.
Programming 8051 Timers
• Both Timer 0 and Timer 1 use the same register to set the various
timer operation modes.
• It is an 8-bit register in which the lower 4 bits are set aside for Timer
0 and the upper four bits for Timers.
• In each case, the lower 2 bits are used to set the timer mode in
advance and the upper 2 bits are used to specify the location.
.
• This is an 8-bit register which is used by both timers 0 and 1 to set
the various timer modes. In this TMOD register, lower 4 bits are set
aside for timer0 and the upper 4 bits are set aside for timer1. In each
case, the lower 2 bits are used to set the timer mode and upper 2 bits
to specify the operation.
• In upper or lower 4 bits, first bit is a GATE bit. Every timer has a
means of starting and stopping. Some timers do this by software,
some by hardware, and some have both software and hardware
controls. The hardware way of starting and stopping the timer by an
external source is achieved by making GATE=1 in the TMOD register.
And if we change to GATE=0 then we do no need external hardware
to start and stop the timers.
TCON register
• Bits and symbol and functions of every bits of TCON are as follows:
MODES OF OPERATION:
The Mode 0 operation is the 8-bit timer or counter with a 5-bit pre-scaler.
So it is a 13-bit timer/counter. It uses 5 bits of TL0 or TL1 and all of the 8-
bits of TH0 or TH1.
Mode 0 of Timer/Counter
MOV TMOD, #00H
MOV TH1, #0F0H
MOV IE, #88H
SETB TR1
Mode 1 of Timer/Counter
A/D CONVERTER
Serial Communication
Memory Organization
BUS
ARM processors
• The ARM architecture processor is an advanced reduced instruction set
computing [RISC] machine and it’s a 32bit reduced instruction set computer
(RISC) microcontroller.
• It was introduced by the Acron computer organization in 1987.
• This ARM is a family of microcontroller developed by makers like ST
Microelectronics, Motorola, and so on.
• The ARM architecture comes with totally different versions like ARMv1,
ARMv2, etc., and, each one has its own advantage and disadvantages.
• The ARM microcontroller most commonly used controller in different types
of embedded projects and in different types of industrial projects it uses due
to different types of advantages over other controllers and modern structures.
Features of ARM Microcontroller
These are some important features of this controller which are described
here with the details.
This board comprises of thirty two bit central processing unit which is
high speed.
It comprises of the three-stage pipeline.
This board uses the thumb 2 technique.
This module is compatible with the different types of tools and RTOS.
It is compatible with the sleep mode of operation.
It has the ability to control different types of software
.
The ARM Architecture