B222L Microcontrollers and Programmable Logic Web Site
This page is created to support the teaching for the first part of B222L unit taught by Hassan Parchizadeh and Branislav Vuksanovic.
Course Topics
Branislav Vuksanovic:
- Introduction to PIC microcontroller
- PIC18F252 architecture
- Programming PIC using C language
- Developing and testing PIC programs using MPLAB IDE
- Basics of PIC assembler language
- Timers on PIC18F252
- Timer Interrupts on PIC18F252
- PIC18F252 in real-time audio applications
Hassan Parchizadeh:
- Other Interrupts on PIC18F525
- ADCs
- DACs
- PWM
- UART
As we progress through the course, we will add some handouts related to above topics and lectures.
You will be able to obtain lecture sumaries, important diagrams as well as some simple programs for the PIC microcontroller (mainly C).
Teaching Materials
Branislav Vuksanovic:
Have a look at
this version of the first PIC program for a few more modifications and comments.
- Lecture 2 - Timer 2 operation on PIC18F252
- Lecture 3 - Timer 2 loading - exercises + second PIC program (just slightly modified first program)
- Lecture 4 - One more look at second PIC program + Interrupts on PIC18F252 - part 1
- Lecture 5 - Interrupts on PIC18F252 - part 2 - Template program for writing the ISRs
- Lecture 6 - Interrupts on PIC18F252 - part 3 - Example program using one prioritised ISR
- Lecture 7 - Timers on PIC18F252 - Timer 0 - Exercises and Example Programs
- Lecture 8 - Digital Filters - Implementation on PIC18F252
- Lecture 9 - Timers on PIC18F252 - Timer 1
- Lecture 10 - Alternative method of loading Timer 1
- Lecture 11 - CCP1 module
- Lecture 12 - Revision
Hassan Parchizadeh:
Laboratory Handouts
- Introduction to PIC - part 1 - this handout can be used to start with MPLAB (version 7.5 or higher recommended) and PIC18F252 on any standalone PC or laptop.
- You will need to do some more setting when working in the A0.07 lab. for the first time. Here is the Quick Start sheet to help you with that. Use it with the main (Introduction to PIC, parts 1 and 2) handouts.
- Introduction to PIC - part 2 - more exercise and useful info on using MPLAB SIM debugging tool.
Assessments - Semester 1 -
Tasks Description
Filter coefficients for task 2 can be downloaded
here.
Recommended Reading
PIC18F252 Datasheet available from
Microchip website
here
G.H. Parchizadeh and B. Vuksanovic: "Doing PIC Projects", Willey 2009 ... Coming soooooooon !
Instructor
Dr Branislav Vuksanovic
Senior Lecturer
Electronic & Computer Engineering
Anglesea Building, A3.02
branislav.vuksanovic@port.ac.uk