Iot A&r Unit-3 PNP
Iot A&r Unit-3 PNP
1) What is a Microprocessor?
In simple words, The microprocessor is useful in very intensive processes. It only
contains a CPU (central processing unit) but there are many other parts needed to
work with the CPU to complete a process. These all other parts are connected
externally.
Microprocessors are not made for a specific task as well as they are useful where
tasks are complex and tricky like the development of software, games, and other
applications that require high memory and where input and output are not defined.
Key Functions:
Characteristics:
- **Clock Speed**: Measured in GHz, it determines how fast the microprocessor can
execute instructions.
Examples:
- **AMD Ryzen**
- **ARM Cortex-A**
Microprocessors are used in a variety of devices, including personal computers,
smartphones, cars, and industrial machines.
For eg.
Automobiles, trains, planes, Computer servers, high tech medical devices, etc.
2) What is Microcontroller?
The microcontroller is designed for a specific task or to perform the assigned task
repeatedly. Once the program is embedded on a microcontroller chip, it can’t be
altered easily and you may need some special tools to reburn it. As per application,
the process is fixed in microcontroller. Hence, the output depends on the input given
by the user or sensors or predefined inputs.
The applications easily connect with concepts, so let's find out day to day life
examples
e.g. Calculator, Washing Machine, ATM machine, Robotic Arm, Camera, Microwave
oven, Oscilloscope, Digital multimeter, ECG Machine, Printer so on and so forth.
Key Features:
2. **Memory**:
**ROM (or Flash memory)**: Stores the program code and data.
3. **I/O Ports**: Allows the microcontroller to interact with external devices like
sensors, motors, and displays.
Common Uses:
We can see microprocessor is part of a microcontroller with extra memory, I/O ports,
and peripherals such as timer and counters.
Microcontroller Vs Microprocessor:
Sr.
Microprocessor Microcontroller
No
2. It increases the overall cost of the system high. The overall cost of the system is less.
We can connect external memory in ranges of The inbuilt finite memory helps to improve
3.
Mbytes and even Gbytes. But speed is less. the speed of operations.
4. You can't use it in a compact system. You can use it in compact systems.
Due to external components, the total power As external components are low, total power
consumption is high. Therefore, it is not ideal consumption is less. So it can be used with
5.
for the devices running on stored power like devices running on stored power like
batteries. batteries.
Most of the microprocessors do not have Most of the microcontrollers offer power-
6.
power-saving features. saving mode.
These are based on the von Neumann model These are based on Harvard architecture
8. where program and data are stored in the same where program memory and data memory
memory module. are separate.
It's complex and expensive, with a large It's simple and inexpensive with less number
13
number of instructions to process. of instructions to process.
The clock in a microprocessor is an internal timing device that regulates the speed at
which the processor executes instructions. The clock's speed, also known as the clock
rate or clock speed, is a key specification for a CPU. It's measured in hertz (Hz), which
is the SI unit of frequency, or in gigahertz (GHz) or megahertz (MHz). A higher clock
speed generally means a faster CPU.
Every microprocessor has an internal clock that regulates the speed at which it
executes instructions and also synchronizes it with other components. The speed at
which the microprocessor executes instructions is called clock speed.
The amount of ROM in a typical computer is much smaller than RAM or hard drive
space. Most computers have a few megabytes of ROM, which is sufficient for storing
the BIOS or UEFI firmware.
It’s non-volatile, meaning it retains data even when the power is off
ROM typically stores firmware or software that rarely changes
It’s generally slower than RAM but faster than a hard drive
Data in ROM is “read-only” and not easily modified.
ROM plays a crucial role in your computer’s startup process. It stores the BIOS (Basic
Input/Output System) or UEFI (Unified Extensible Firmware Interface), which is the
first software run when you turn on your computer and initializes hardware
components. This software initiates the boot process and helps load the operating
system.
Types of Programmable Read Only Memory
There are several types of ROM, each with its own characteristics:
1.PROM (Programmable Read-Only Memory):
Can be programmed once after manufacture
Programming requires a special device
2. EPROM (Erasable Programmable Read-Only Memory):
Can be erased and reprogrammed using ultraviolet light
Recognizable by the transparent “window” on the chip
EPROM chips are programmed using high voltages to modify memory cells and store
data
3. EEPROM (Electrically Erasable Programmable Read-Only Memory):
Can be electrically erased and reprogrammed
Allows for selective erasing and reprogramming
Also known as electrically erasable programmable rom, it is versatile in static data
storage and updatable firmware
4. Flash ROM:
A type of EEPROM that can be erased and rewritten in blocks
Commonly used in USB drives and solid-state drives (SSDs)
Additionally, mask ROM is a specific type of ROM that cannot be modified after
manufacturing, underscoring its importance in hard-wired memory.
Accessibilit
Directly accessible by CPU Not directly accessible by CPU
y
Data
Short-term Long-term
Retention
Peripherals:
A peripheral is a separate piece of circuitry that's connected to a microprocessor to
offload work from it. Peripherals are also known as input/output (I/O) devices, and they
can be used to communicate with the outside world.
Examples of such devices are printers, display monitor, hard and floppy disk
memories, keyboard. The activity of the controller is supervised by the
microprocessor, which intervenes on each transfer of data by execution of respective
instructions of data read or write from (to) the controller.
Pins:
It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16
analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB
connection, a power jack, an ICSP header, and a reset button.
5V: This pin outputs a regulated 5V from the regulator on the board. The board can
be supplied with power either from the DC power jack (7 - 12V), the USB connector
(5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins
bypasses the regulator, and can damage your board.
There are a total of 28 pins. There are 14 digital pins including TX(Transmission) and
RX(Receiver) pins, There are 6 analog pins, 3 ground pins, 1 Analog Reference
(AREF) pin, 1 Reset pin, 1 Vin pin, 1 3.3V pin and 1 5V pin.
The Arduino Uno pinout consists of 14 digital input/output pins, 6 analog inputs, a
power jack, USB connection and a ICSP header. The versatility of the pinout
provides applications of many different options such as driving motors, LEDs,
reading sensors and more.
The Mega 2560 can be powered via the USB connection or with an external power
supply. The power source is selected automatically. External (non-USB) power can
come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be
connected by plugging a 2.1mm center-positive plug into the board's power jack.
The Official Arduino Mega 2560 is a Rev3 development board based on
the ATmega2560 microcontroller.
5 ground pins
Pin 3.3V & 5V: This pins are used to provide regulated power supply to the Mega
2560 board. GND Pin: Total 5 ground pins are provided on the Mega 2560 board.