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:
- Interfacing PIC18F525 to the outside world
- 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:
- Introduction to PIC18F252 microcontroller (Ports) [pdf]
- Timer 2 operation on PIC18F252 [pdf]
- First PIC program [pdf]
- Timer 2 loading exercise [pdf] - Solutions [pdf]
- Interrupts - part 1 [pdf]
- Interrupts - part 2 [pdf]
- First interrupt program [pdf]
- More interrupt programs [pdf], [pdf], [pdf]
- Timer 0 [pdf] and some examples [pdf]
- Timer 1 [pdf] and some more timer loading examples [pdf]
- Timers 0 and 1 working together - frequency counter example [pdf]
- Revision/Tutorials - part 1 [pdf], part 2 [pdf]
- Revision List for (BV part of) the Unit [pdf]
Hassan Parchizadeh - go to Hassan's
page.
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
Recommended Reading
Instructors
Mr Hassan Parchizadeh
Principal Lecturer
Electronic & Computer Engineering
Anglesea Building, A0.11
hassan.parchizadeh@port.ac.uk
Dr Branislav Vuksanovic
Senior Lecturer
Electronic & Computer Engineering
Anglesea Building, A3.02
branislav.vuksanovic@port.ac.uk