Microcontroller
Microcontroller
What is PIC?
refers to family of microcontroller (small computer) → designed to control specific
devices or systems.
available in a range of sizes and capabilities, with different memory sizes, clock
speed
PIC’s application
why need? ⇒
Control system → used to control motors, switches, sensors, LED, or the
example close to us is traffic light
Collection of data → collect data & process data from a variety of sensors
such as temperature, pressure, humidity
Components in PIC
1. Central Processing Unit (CPU): This is the main component of the PIC
microcontroller, which performs arithmetic and logic operations, executes
instructions, and manages data storage and retrieval.
2. Memory: This includes both Random Access Memory (RAM) and Read-Only
Memory (ROM). RAM is used for temporary storage of data during program
execution, while ROM contains program code and non-volatile data.
Microcontroller 1
3. Input/Output (I/O) Ports: These are used to interface with external devices, such as
sensors, actuators, and other microcontrollers. The number and type of I/O ports
vary depending on the specific PIC microcontroller model.
4. Timers/Counters: These are used to measure time intervals and perform counting
operations, and can be used for a variety of timing and control functions.
7. Oscillator: This component provides the clock signal used by the microcontroller to
synchronize its operations.
3. Power Consumption: Microcontrollers are designed to operate with very low power
consumption, making them ideal for battery-powered applications, whereas
Microcontroller 2
microprocessors may consume more power and require additional power
management components.
Instruction cycle
Problem
draw schematic
program
Microcontroller 3