Chapter 2
Chapter 2
2.1. MICROPROCESSOR/CONTROLLERS
2.1.1. Components of microprocessor/controller
• CPU: Central Processing Unit
• I/O: Input /Output
• Bus: Address bus & Data bus
• Memory: RAM & ROM
• Timer
• Interrupt
• Serial Port
• Parallel Port
2.1.2. General Purpose microprocessor
• CPU for Computers
• Commonly no RAM, ROM, I/O on CPU chip itself
2.1.3. Microcontrollers
Data control;
Data Acquisition Systems;
Power control and monitoring;
Motor control applications;
Smartphones;
Automotive industry;
Nuclear instrumentation;
Space applications.
In general are used in applications where high processing resources are not required, hence a
general purpose microcontroller is considered suitable due the low power consumption and
without any peripheral and external memories;
2.1.4. Comparison between Microprocessor &Microcontroller
MICROPROCESSOR MICROCONTROLLER
• PU is stand-alone, RAM, ROM, I/O, • CPU, RAM, ROM, I/O and timer are
timer are separate all on a single chip
• designer can decide on the amount of • fixed amount of on-chip ROM, RAM,
ROM, RAM and I/O ports. I/O ports
• expensive • for applications in which cost, power
• versatility and space are critical
• general-purpose • single-purpose (control-oriented)
• High processing power • Low processing power
• High power consumption • Low power consumption
• Instruction sets focus on processing- • Bit-level operations
intensive operations • Instruction sets focus on control and
• Typically 32/64 – bit bit-level operations
• Typically deep pipeline (5-20 stages) • Typically 8/16 bit
• Typically single-cycle/two-stage
pipeline
Open Source electronic prototyping platform based on flexible easy to use hardware and
software.
Electrical inputs/Outputs of ARDUINO(ATmega328P)
Sensor: an analog/digitaldevicewhichconvertsthephysicalquantityintoanelectricalsignal;
All related physical quantities are related to ANALOG interface, where the quantity can take
any value between the hardware minimum and maximum values;
DIGITAL interface is used to describe the quantity which has only2levels,1or0 logic