Unit_5_Advance Microcontroller
Unit_5_Advance Microcontroller
Advance Microcontrollers
By:
Bhishan D. Wadhai
Lecturer
Department of Electrical Engineering
Government Polytechnic, Nagpur
Agenda
1. RISC and CISC Processors Comparison
2. ARM microcontroller : features and applications
3. PIC microcontroller : features and applications
4. AVR microcontroller: features, Type (Classic, Mega, Tiny),
Simplified View of AVR.
5. Comparison between PIC, AVR, ARM processors
RISC and CISC Processor Comparison
RISC and CISC are two different types of computer architectures that are used to design
the microprocessors that are found in computers. The fundamental difference between
RISC and CISC is that RISC (Reduced Instruction Set Computer) includes simple
instructions and takes one cycle, while the CISC (Complex Instruction Set
Computer) includes complex instructions and takes multiple cycles.
What is RISC?
In the RISC architecture, the instruction set of the computer system is simplified to
reduce the execution time. RISC architecture has a small set of instructions that generally
includes register-to-register operations.
The RISC architecture uses comparatively a simple instruction format that is easy to
decode. The instruction length can be fixed and aligned to word boundaries. RISC
processors can execute only one instruction per clock cycle.
The following are some important characteristics of a RISC Processor −
1. A RISC processor has a few instructions.
2. RISC processor has a few addressing modes.
3. In the RISC processor, all operations are performed within the registers of the CPU.
4. RISC processor can be of fixed-length.
5. RISC can be hardwired rather than micro-programmed control.
6. RISC is used for single-cycle instruction execution.
7. RISC processor has easily decodable instruction format.
RISC architectures are characterized by a small, simple instruction set and a highly
efficient execution pipeline. This allows RISC processors to execute instructions quickly,
but it also means that they can only perform a limited number of tasks.
What is CISC?
The CISC architecture comprises a complex instruction set. A CISC processor has a
variable-length instruction format. In this processor architecture, the instructions that
require register operands can take only two bytes.
In a CISC processor architecture, the instructions which require two memory addresses
can take five bytes to comprise the complete instruction code. Therefore, in a CISC
processor, the execution of instructions may take a varying number of clock cycles. The
CISC processor also provides direct manipulation of operands that are stored in the
memory.
The primary objective of the CISC processor architecture is to support a single machine
instruction for each statement that is written in a high-level programming language.
The following are the important characteristics of a CISC processor architecture −
1. CISC can have variable-length instruction formats.
2. It supports a set of a large number of instructions, typically from 100 to 250
instructions.
3. It has a large variety of addressing modes, typically from 5 to 20 different modes.
4. CISC has some instructions which perform specialized tasks and are used
infrequently.
CISC architectures have a large, complex instruction set and a less efficient execution
pipeline. This allows CISC processors to perform a wider range of tasks, but they are not
as fast as RISC processors when executing instructions.
This board has a RISC load-store architecture for the ARM controller. This board uses
a variety of register types, which facilitates the handling of memory.
The board uses a series of instructions, but its primary purpose is to cut down on the
amount of time needed for each instruction.
The cortex M3 processor, which is high-speed and thirty-two bits, is employed in the
ARM controller and offers consumers a variety of capabilities.
This board's Harward design uses
separate data and instruction buses to
send data to read-only and random
access memories, respectively.
Three-stage pipeline is utilised for
command execution, obtaining, and
decoding.
The CPU on this board uses thumb
commands based on thumb two
approaches, which reduces the amount
of programme memory required and
ensures a higher coding density.
Given that this model has a thirty-two-
bit architecture, commands can be
executed more quickly.
FEAUTURES OF ARM MICROCONTROLLER
Low Power Consumption: Because ARM microcontrollers are made to use
little power, they are perfect for battery-operated products. To reduce power
usage, they employ power-saving strategies including clock gating and power
gating.
High processing power: ARM microcontrollers are renowned for having a lot
of processing power, which makes them perfect for high performance
applications. They are capable of processing large amounts of data rapidly and
effectively.
Flexibility: ARM microcontrollers are highly flexible and can be programmed
to carry out a variety of functions. I2C, SPI, UART, USB, Ethernet, and CAN
are just a few of the interfaces and communication protocols they support.
Ease development: Development is simple for ARM microcontrollers because
to the availability of a wide range of development tools and software. They are
often created using the industry-standard programming languages C or C++.
Cost-effectiveness: ARM microcontrollers are inexpensive, which makes them
a great option for embedded systems that are produced in large quantities.
They provide a great level of performance at a reasonable price.
APPLICATIONS OF ARM MICROCONTROLLER
1. Automotive Systems: ARM microcontrollers are frequently used in
automotive systems, including advanced driver assistance systems (ADAS),
powertrain control modules, and engine control units (ECUs).
3. Medical gadgets, such as glucose metres, blood pressure monitors, and heart
rate monitors, utilise ARM microcontrollers.
1. GPIOs
General-purpose input/output (GPIO) pins are the most basic hardware interfacing
feature of PIC microcontrollers. GPIO pins can be configured as either inputs or
outputs and can be used to interface with a wide range of devices, including
sensors, switches, and LEDs.
PIC microcontrollers typically have multiple GPIO pins, which can
be controlled using software. These pins can be used to send or receive digital
signals, making them ideal for interfacing with digital devices.
2. Communication Protocols
PIC microcontrollers support a variety of communication protocols, including
UART, SPI, and I2C. These protocols allow PIC microcontrollers to communicate
with other devices, such as sensors, displays, and other microcontrollers.
UART is a serial communication protocol that is commonly used for
communication between a PIC microcontroller and a computer.
SPI and I2C are also serial communication protocols that are commonly used for
communication between microcontrollers and other devices.
3. Peripheral Integration
PIC microcontrollers also have built-in peripherals that can be used for hardware
interfacing.
These peripherals include analog-to-digital converters (ADCs), digital-to-analog
converters (DACs), and pulse-width modulation (PWM) modules.
ADCs can be used to convert analog signals from sensors and other devices into digital
signals that can be processed by the microcontroller. DACs can be used to convert
digital signals into analog signals that can be used to control analog devices.
PWM modules can be used to generate signals with varying duty cycles, which can be
used to control motors and other devices.
These features make PIC microcontrollers ideal for a wide range of applications, from
simple sensor interfaces to complex control systems.
3. Industrial Automation
PIC microcontrollers are widely used in industrial automation systems, including
robotics, process control, and factory automation.
They are used to control various functions of the machines, such as the movement, speed,
and position of the robotic arm.
PIC microcontrollers are also used in sensors to detect various parameters such as
temperature, pressure, and humidity.
In conclusion, PIC microcontrollers have a wide range of applications in various
industries.
3. Strong I/O port function, with A/D conversion and other circuits
The I/O port of AVR microcontroller is a real I/O port, which can correctly reflect the
real situation of I/O port input/output. Industrial-grade products, with high current
(filling current) 10 ~ 40mA, can directly drive silicon SSR or relay, saving peripheral
driver parts.
AVR microcontroller with analog comparator, I/O port can be used as A/D converter,
can be composed of inexpensive A/D converter. ATmega48/8/16 and other devices
have 8-way 10-bit A/D.
Some AVR microcontrollers can form zero peripheral components microcontroller
system, so that this type of microcontroller can work without additional components,
simple and convenient, and low cost.
AVR microcontroller can reset the start reset, in order to improve the reliability of the
microcontroller work. There is a watchdog timer to implement security protection, to
prevent the program from going haywire (fly), improve the product's anti-interference
ability.
Timer / counter T / C has 8-bit and 16-bit, can be used as a comparator. Counter
external interrupt and PWM (also can be used as D / A) for control output, some
models of AVR microcontroller has 3 to 4 PWM, is the ideal device for motor stepless
speed control.
AVR microcontroller has serial asynchronous communication UART interface, does
not occupy the timer and SPI synchronous transmission function, because it has high-
speed characteristics, so it can work in general standard integer frequency, and baud
rate up to 576K.
Comparison between PIC, AVR, ARM processors
PIC AVR ARM
32-bit mostly also
Bus width 8/16/32-bit 8/32-bit
available in 64-bit
UART, USART, LIN,
UART, USART, SPI,
PIC, UART, USART, I2C, SPI, CAN, USB,
Communication I2C, (special purpose
LIN, CAN, Ethernet, Ethernet, I2S, DSP,
Protocols AVR support CAN,
SPI, I2S SAI (serial audio
USB, Ethernet)
interface), IrDA
4 Clock/instruction 1 clock/ instruction 1 clock/ instruction
Speed cycle cycle cycle
Flash, SRAM, Flash, SDRAM,
Memory SRAM, FLASH
EEPROM EEPROM
Apple, Nvidia,
Manufacturer Microchip Average Atmel Qualcomm, Samsung
Electronics, and TI etc.