Lecture 1
Lecture 1
ME 3121
Course Title: Basic Mechatronics
Microcontroller
Presented by
Prof. Dr. Md. Rokunuzzaman
Course Objective:
To introduce Microcontroller, Its programming and Interfacing as a
basic part of Mechatronic System
Class Tests 15
Assignments 05
Attendance 08
Semester Exam 72
Total Marks 100
Memory
Any Computational System requires two types of Memory: Program Memory and
Data Memory. Program Memory, as the name suggests, contains the program i.e.
the instructions to be executed by the CPU.
Data Memory on the other hand, is required to store temporary data while
executing the instructions.
Usually, Program Memory is a Read Only Memory or ROM and the Data Memory
is a Random Access Memory or RAM. Data Memory is sometimes called as Read
Write Memory (R/W M).
Bus
Another important component of a Microcontroller, but rarely discussed is the System Bus. A
System bus is a group of connecting wire that connect the CPU with other peripherals like
Memory, I/O Ports and other supporting components.
Timers/Counters
One of the important components of a Microcontroller are the Timers and Counters. They
provide the operations of Time Delays and counting external events. Additionally, Timers and
Counters can provide Function Generation, Pulse Width Modulation, Clock Control, etc.
Interrupts
A very important feature of a Microcontroller is Interrupts and its Interrupt Handling
Mechanism. Interrupts can be external, internal, hardware related or software related.