Department of ECE: 24EC1101 Fundamentals of Iot & Sensors
Department of ECE: 24EC1101 Fundamentals of Iot & Sensors
24EC1101
FUNDAMENTALS OF IoT & SENSORS
Session - 6
ATMEGA328P
MICROCONTROLLER
AIM OF THE SESSION
INSTRUCTIONAL OBJECTIVES
LEARNING OUTCOMES
A microcontroller is a compact integrated circuit that combines a microprocessor core with memory, input/output
(I/O) peripherals, and other components required for a specific task or application.
Microcontrollers find applications in various fields like consumer electronics, automotive systems, industrial
Peripherals: it is a device, used to transfer information into and out of computer. The term peripheral device refers
to all the hardware components that are attached to a computer and are controlled by the computer system but
Designer can decide on the amount of ROM, RAM, and Fixed amount of on-chip ROM, RAM, I/O ports
I/O ports
High power consumption Low power consumption (it uses Bit level construction)
Instruction sets focus on processing intensive operation Instruction sets focus on control and bit level operation
6
TYPES OF MICROCONTROLLERS
BLOCK DIAGRAM OF ATMEGA328P
Timers
• Timers are essential components in microcontrollers and other embedded systems for a variety of reasons.
They provide precise timing control, generate accurate time delays, and enable synchronization of various
operations.
• Timers are often used to generate PWM signals. PWM is crucial for controlling the speed of motors,
• Generating Delays:
• Periodic Tasks
Flash Memory
• It is secondary memory.
• It is not volatile.
• Flash memory can be erased multiple times and update the data or program integrated into it.
• So it gives flexibility to the updation of the program but ROM has no such type of features.
ROM (Read Only Memory)
(a) 12 MHz
(b) 16 MHz
(c) 20 MHz
(d) 24 MHz
2. How many digital I/O pins are there in Arduino UNO board?
(a) 14
(b) 16
(c) 20
(d) 23
SELF-ASSESSMENT QUESTIONS
3. The number of bits of data that the Atmega328P can handle at a time is____.
(a) 32
(b) 16
(c) 8
(d) 4
(a) 14
(b) 16
(c) 20
(d) 23
SELF-ASSESSMENT QUESTIONS
(a) 1
(b) 2
(c) 3
(d) 4
(a) CISC
(b) RISC
(c) Both RISC and CISC
(d) None of these
TERMINAL QUESTIONS
1. Draw the pin diagram of ATMega328P Microcontroller and list out its features.
2. With the help of the block diagram explain in detail about ATMega328P Microcontroller.
3. What is Microcontroller and how it is different from Microprocessor. List out the differences
6. Explain the need of Interrupt Control described in the block diagram of ATMEGA 328P.
REFERENCES FOR FURTHER LEARNING OF THE SESSION