MT2301
EMBEDDED SYSTEMS AND PROGRAMMING
Dr. K. Kannan, M.E., M.E., Ph.D.,
Professor & Head,
Department of Mechatronics Engineering
Preamble
• To familiarize the architecture and
fundamental units of microcontroller.
• To understand the microcontroller
programming methodology
• To acquire the interfacing skills
• To exchange data using various
communication protocols.
Unit I – Introduction to Microcontroller (9)
• Fundamentals, Functions of ALU
• Microprocessor, Microcontrollers, CISC and
RISC, Types Microcontroller
• 8051 Family, Architecture, Features and
Specifications
• Memory Organization
• Instruction Sets and Addressing Modes.
Unit II – Programming and Communication (9)
Fundamentals of Assembly Language Programming
Instruction to Assembler, Compiler and IDE
C Programming for 8051 Microcontroller
Basic Arithmetic and Logical Programming
Timer and Counter, Interrupts
Interfacing and Programming of Serial Communication, I2C, SPI
and CAN of 8051 Microcontroller
Bluetooth and WI-FI interfacing of 8051 Microcontroller .
Unit III – ARM Processor (9)
• Introduction ARM 7 Processor
• Internal Architecture
• Modes of Operations
• Register Set, Instruction Sets
• ARM Thumb, Thumb State Registers
• Pipelining
• Basic programming of ARM 7 - Applications.
Unit IV – PIC Microcontroller (9)
• Architecture
• Instruction set, Addressing modes
• Timers, Interrupt logic
• CCP modules
• ADC
Unit V – Real Time Operating System (9)
• Real time operating systems Architecture
• Tasks and Task states - Tasks and Data
• Semaphore and shared data
• Message queues, mail boxes and pipes,
• Encapsulating semaphores and queues
• Interrupt routines in an RTOS Environment.
Learning Resources
Text Books
1. David E. Simon, An embedded software primer, Addison – Wesley,
Indian Edition Reprint,2009.
2. Kenneth J. Aylala, The 8051 Microcontroller, the Architecture and
Programming Applications, 2003.
Reference Books
1. Muhammad Ali Mazidi and Janice Gillispic Mazdi, The 8051
Microcontroller and Embedded Systems, Pearson Education, 2006.
2. James W. Stewart, The 8051 Microcontroller Hardware, Software and
Outcome
K-
CO. No. Course Outcome
Level
Explain the various functional units of microcontroller, processors and
CO1 system-on-chip based on the features and specifications. K2
Recognize the role of each functional units in microcontroller,
CO2 processors and system-on-chip based on the features and specifications. K2
CO3 Explain the architecture and Instruction set in ARM Processor K2
Explain the architecture and fundamental operating concepts behind
CO4 K2
PIC Microcontroller
Summarize the basics of Real time operating system and its
CO5 K2
Unit IV – PIC Microcontroller (9)
• Introduction, Architecture
• Instruction set, Addressing modes
• Timers, Interrupt logic
• CCP modules
• ADC
PIC MICROCONTROLLER
The PIC micro was originally designed around 1980
by General Instrument as a small, fast, inexpensive
embedded microcontroller with strong I/O capabilities.
PIC stands for "Peripheral Interface Controller".
General Instrument recognized the potential for the
PIC eventually spun off Microchip, headquartered in
Chandler, AZ to fabricate and market the PICmicro.
PIC MICROCONTROLLER
Harvard architecture
Like many micros the PIC is a Harvard not a von-
Neumann machine
This is simpler and faster
Separate program bus and data bus: can be of different
widths
For example, PICs use:
Data memory (RAM): a small number of 8 bit
registers
Program memory (ROM): 12bit, 14bit or 16 bit
wide (in EPROM, FLASH, or ROM)
Comparison Between Architectures
Advantages of Harvard model
CISC Vs RISC
PIC Microcontroller Family
Supporting Factors for PIC Microcontrollers
Supporting Factors for PIC Microcontrollers
Supporting Factors for PIC Microcontrollers
Harvard Architecture
Pipelining
Pipelining
PIC 16C7X Microcontroller Core Features
PIC 16C7X Microcontroller
Peripheral Features
Architecture of PIC 16C74
PIC 16C7X Microcontroller Features
Comparison
Program Memory
Program Memory
Register File Structures & Addressing Modes
Register File Structures & Addressing Modes
Direct Addressing Modes
Indirect Addressing Modes
CPU Registers
Parallel I/O Ports
INSTRUCTION SET
INSTRUCTION SET
INSTRUCTION SET
Timers
Timer 0 Module Features
Timer 0 Configuration Register
Timer 0 Module Operations
Timer 1 Module Features
Timer 1 Configuration Register
Timer 1 Module Operations
Timer 2 Module Features
Timer 2 Configuration Register
CCP Module
CCP1CON Register
CAPTURE Mode
COMPARE Mode
PWM Mode
Interrupts
Interrupts Control Register
Peripheral Interrupts Register 1
Peripheral Interrupts Register 2
Power Control Register
Interrupt Logic
ADC
ADC Transfer Function
Configuration
Configuration
Thank You