ABOUT THE COURSE
This course provides students with the knowledge of hardware architecture and how to use microcontroller, such as: Understand the principles of programming micro-controllers, modules: UART, ADC, Timer, Interrupt; use many types of sensors and components; Connect PIC Microcontroller to LCD Screen, Seven Segment, LED, Keypad and control it; use tools to build electronic devices.
SYLLABUS
Course Meeting Times: Lectures: 2 sessions / week, 1.5 hours / session
Assignments: There are one exam during class hours, and two exams (midterm- and final- exam). There will be problem sets due most weeks except for exam weeks.
CALENDAR
Session Content
01 Chapter 1: Number Systems in Microcontroller Architecture
(The base digital system 2, 10,16; The Addition, subtraction, multiplication, division, hex, in the binary format;
Logic gates: OR, NOT, AND, XOR gate)
02 Chapter 2: Summary of Hardware and Memory Organization 18Fx
(Overview of the 18Fx microcontroller family; The Functional of pins; The The In/Out port structure;
Memory organization; The stacks Memory; Flash/EEPROM memory)
03 Chapter 2: Summary of Hardware and Memory Organization 18Fx
(The special function registers; The direction register for Port; The registers for Timer / counter; The registers for ADC
The registers for serial port; Introduction to PIC 18Fx: 18F4550; The Block diagram; The functions of each block)
04 Chapter 3: The Instruction Set and Programming for PIC
(Command structure; The Instruction set; The commands operation in bytes: Output_x (value), Set_tris_x (value),
Get_tris_x (); The instructions set in bit format: Output_high (pin), Output_bit (pin, value).)
05 Chapter 3: The Instruction Set and Programming for PIC
(Control commands: If / else; While {}; do/while; for (); the compilers and instructions.)
06 Chapter 4: Input / Output Programming
(I/O port structure; Configuring Input / Output with PIC18Fx; The direction registers; Input/Output Ports
Programming in/out; Application examples)
07 Chapter 5: Timing activities of PIC18Fx
(Timer 0 Programming; Counter 0 Programming; Timer 1 Programming; Counter 1 programming
08 Chapter 5: Timing activities of PIC18Fx
(Timer 2 Programming; Counter 2 Programming; Timer 3 Programming; Counter 3 programming)
09 Chapter 6: Serial port of PIC18Fx
(The serial port architecture; Principle diagram; Control registers; The basic about serial communication;
Format in serial transmission/reception; Set the baud rate.)
10 Chapter 6: Serial port of PIC18Fx
(The serial port programming; Commands for transmitting/receiving of data; Programming algorithms;
The RS232 interface; Concept of serial communication standards; RS232 interface)
11 Chapter 7: Interface with the ADC
(The ADC structure of PIC 18Fx; Block diagram; Configuration registers; The programming for ADC; ADC commands
How to program for ADC; Microcontroller interface with temperature sensor.)
12 Chapter 8: Interrupt Operations
(The Polling and interrupt programming; Concept; Advantages, disadvantages and the application; The Interrupt;
Control registers; Holding interrupt of PIC 18Fx)
13 Chapter 8: Interrupt Operations
(Design the program according to the interrupt mechanism; Types of interrupts in the PIC; How to declare the interrupt;
How to write an interrupt procedure)
14 Chapter 9: Design and Interface
(Interface with 7 segment LED: Code table for 7 segment LEDs; 7-segment LED control methods;
Use IC decoding; Direct control method.)
15 Chapter 9: Design and Interface
(ADC interface: Characteristics, structure; Application example; Speaker interface.)
READINGS
Required Texts
[1]. M.A.Mazidi, R.D. McKinlay, and D.Causey, [2008], PIC microcontroller and embedded systems using assembly and C for PIC18, Pearson Prentice Hall, Upper Saddle River, N.J.
[2]. Tim Wilmshurst, [2010], Designing embedded systems with PIC Microcontrollers principles and applications, Elsevier/Newnes, Massachusetts.
[3]. Dogan lbrahim, [2008], Advanced PIC microcontroller projects in C, Elsevier/Newnes, Amsterdam.
LECTURE NOTES
Download at the TDTU's INSPiRE Library website.
ASSIGNMENTS, EXAMS, PROJECTS, COURSE MATERIALS
Using the TDTU's eLearning system, you will be able to access these materials.
For more materials for references can be found at links:
+ Microcontroller Engineering I, UM, UK;
+ Advanced Microprocessors-Ohio-US;
+ Online C programming course, MIT, US; Link2;
+ PIC microcontrollers University of Moratuwa;
+ Microcontroller and Applications, NPTEL;
+ Intro to Microcontrollers, UM.