Pont University of Leicester [v1.2] Created with a trial version of Syncfusion Essential PDF... Pont, 2002-2003 This document may be freely distributed and copied, provided that copyrig
Trang 1Programming
Embedded
Systems I
A 10-week course, using C
‘8051’
.0 VCC
EN AL
Michael J Pont
University of Leicester
[v1.2]
Created with a trial version of Syncfusion Essential PDF
Trang 2Copyright © Michael J Pont, 2002-2003
This document may be freely distributed and copied, provided that copyright notice at the foot of each OHP page is clearly visible in all copies.
Trang 3Using the performance analyzer to test software delays 18
Trang 4Seminar 2: Basic hardware foundations (resets, oscillators and port I/O) 21
Trang 5Review: Basic techniques for reading from port pins 47
Example: Reading and writing bits (generic version) 51
Trang 6Seminar 4: Adding Structure to Your Code 77
Trang 7Seminar 5: Meeting Real-Time Constraints 115
Trang 8Seminar 6: Creating an Embedded Operating System 139
Timer-based interrupts (the core of an embedded OS) 144
Trang 9Seminar 7: Multi-State Systems and Function Sequences 177
Trang 10Seminar 8: Using the Serial Interface 211
Using the on-chip U(S)ART for RS-232 communications 219