2mar Iot
2mar Iot
1. What is a Microcontroller?
A microcontroller is a compact integrated circuit that contains a processor (CPU), memory (RAM,
ROM), and input/output peripherals. It is designed to perform specific control-oriented tasks in
embedded systems.
• P3.4 – T0 (Timer 0)
• P3.5 – T1 (Timer 1)
SFRs are used for controlling and configuring the internal opera�ons of the microcontroller, such as
�mers, serial communica�on, and I/O port control. They provide fast access to crucial system
parameters.
• DPTR (Data Pointer): 16-bit register used for external memory addressing in data transfer
opera�ons.
• SP (Stack Pointer): 8-bit register that points to the top of the stack in RAM, used for storing
return addresses and temporary data during subrou�ne calls.
1. Immediate Addressing
2. Register Addressing
3. Direct Addressing
4. Indirect Addressing
5. Indexed Addressing
• Dedicated Func�onality
• Real-�me Opera�on
• Power-efficient
RTOS is needed for scheduling and managing mul�ple real-�me tasks efficiently, ensuring �mely
execu�on with predictable response �mes, par�cularly in cri�cal embedded applica�ons.
Usage Stores running programs & data Stores firmware and bootloader
• Connec�vity
• Scalability
• Real-�me Monitoring
• Interoperability
Detects physical changes and converts them into Converts electrical signals into
Func�on
electrical signals physical ac�on
Example Temperature Sensor (e.g., LM35) Motor, Relay (e.g., Servo Motor)
Here’s the difference between RAM (Random Access Memory) and ROM (Read-Only Memory):
Stores data temporarily; data is lost Stores data permanently; data remains even
Data Storage
when power is off. a�er power is off.
Used for running applica�ons and the Used for boo�ng up the system and storing
Usage
opera�ng system. essen�al firmware (BIOS).
A device that detects and measures physical A device that receives signals from a
Defini�on changes (e.g., temperature, mo�on, light) and control system and performs an ac�on
converts them into electrical signals. (e.g., movement, turning on/off).
Direc�on of Input device (takes data from Output device (performs an ac�on based
Opera�on surroundings). on input).
Temperature sensor, Light sensor, Pressure sensor, Electric motor, Solenoid valve,
Examples
Mo�on sensor. Relay, Speaker.