http://www.keil.com/mcbstm32/
Each student will get one board to keep. If you destroy
it or loose it, you will be responsible for buying a replacement.
http://users.ece.utexas.edu/~valvano/Datasheets Data sheets
for devices used in EE319K, EE345L EE345M and EE380L.6 http://www.keil.com/uvision/
Information about the development system
http://users.ece.utexas.edu/~valvano/embed/toc1.htm C
programming manual
We
will use 32-k limited version of the Keil RealView MDK see
http://www.keil.com/arm/mdk.asp
Download it. A large
number of software examples for the MCBSTM32 will be available by installing
the RealView MDK development suite. For instructions on how to install and
setup RealView, see
KeilStart.pdf
Minimally
intrusive debugging
Performance
measures
Busy-wait,
interrupt, DMA, periodic polling, priority interrupts
Serial
network protocols, layered software, CAN, and USB
Foreground
and background thread scheduling
Synchronization
using spinlock and blocking semaphores
Interthread
communication
SD
drive interface using SPI, file systems
Diodes,
transistors, DC motors, servos, stepper motors, relays, solenoids,
Optical
sensors, IR distance sensors and contact switch sensors
Input
capture/output compare, frequency, period and pulse width measurements,
Pulse-width
modulation
Op
amp amplifiers, analog low pass filters, ADC,
FIFO queues, digital filters
Open
loop and closed loop, Linear and Nonlinear,
Bang-bang
control,
incremental control, PID Control
15%
Quiz1, closed book, Friday February 26, 10-10:50am, in ACA1.104
15%
Quiz2, open book, open book, Friday April 2, 10-10:50am, in ACA1.104
30%
Final, part closed book part open book, Monday May 17, 9am-12noon, ETC
2.136, regularly scheduled time and place
25%
English style, grammar, spelling, clarity of discussion, objectives
25%
Neatness, hardware diagrams, data flow graphs, call graphs
25%
Engineering quality, how well it works, creativity, correctness
25%
Evaluation and test procedures, how do you verify its correctness.
80%
Regular EE345M grade
20%
Project Lab Schedule (rough draft)
Week |
First session |
Second session |
Friday 10am |
Comments |
1/18 |
none |
none |
no lab activities |
|
1/25 |
Meet the TA, partners |
1 PrePrep |
Keil uVision4 demonstration |
|
2/1 |
Get Arm, 1 Prep |
|
Spectrum analyzer demo |
|
2/8 |
1 Demo |
2 Prep |
1 Report |
|
2/15 |
|
|
|
|
2/22 |
2 Demo |
2 Report 10a 3 Prep |
|
Quiz 1 is 2/26 |
3/1 |
|
3 Demo
|
3 Report |
|
3/8 |
4 Prep |
4 Demo |
4 Report |
|
3/22 |
|
5 Prep |
|
|
3/29 |
5 Demo |
6 Prep |
|
Quiz 2 is 4/2 |
4/5 |
5 Report |
6 Demo |
6 Report |
|
4/12 |
|
7A Prep |
|
|
4/19 | 7A Demo |
|
||
4/26 |
|
|
7B Demo |
|
5/3 |
|
7C Demo |
7C Report |
Turn in equipment by 5/7 |
No lab 1/20-22
Prep = you turn in your lab preparation
Demo = you demonstrate your lab to the TA
Report = you turn in your complete lab report to the TA
Lecture Schedule (rough draft)
Week |
Topic |
1/20 |
Modular programming, call graphs, synchronization, data
flow graphs, show differences between busy-wait and interrupt
synchronization, uVision4 compiler, device drivers, quality software, friendly |
1/25 |
Arm architecture, instruction set, stack, interrupt servicing, lab environment, debugging techniques, intrusiveness, monitor, output to scope, simulator, periodic interrupts |
2/1 |
|
2/8 |
Blocking semaphores, add cooperative
multitasking priority scheduling |
2/15 |
Critical sections, debugging of the RTOS |
2/22 |
Analog filters, Digital filers, FFT, graphics |
F 2/26 |
Quiz 1 in ACA 1.104, covering material in Labs 1, 2 |
3 |
|
3/8 |
|
3/22 |
|
3/29 |
|
F 4/2 | Quiz 2 in ACA 1.104, covering material in Labs 1, 2, 3, 4, 5 |
4/5 |
|
4/12 |
|
4/19 |
MicroC/OS-II, vxworks, effect of sampling jitter |
4/26 |
|
M 5/3 |
course review and evaluation |
W 5/5 |
Robot preliminary competitions 3rd floor ENS |
F 5/7 |
Robot final competitions 3rd floor ENS |
F 5/7 |
all Lab notebooks are due to the TA
|
F 5/7 |
Turn in Lab Equipment so that we won't bar your
registration |
5/17 |
Final exam, Monday, 9am-12 noon, Time/place
regularly scheduled |
No
lab activities occur during the week of January 19. During the week of January
25-28, please go to your scheduled lab sessions in ENS252C to get a
demonstration of the lab equipment. We will be using the Keil STM32
development board this semester. It will be extremely convenient for
both partners to have a working board. Each student will get exactly one
board on about Feb 1. If you loose it or
destroy it, you can purchase another from Keil. For more information on purchasing a replacement kit, go
to the
http://www.keil.com/mcbstm32/
web site. Lab partners will be selected
in your lab the week of January 25-28. The Lab 1 preparation is due at the
beginning of your second lab session the week of February 1. The lab
preparations (hardware diagrams and syntax-free software source code
printouts) are due at the beginning of your lab period. In other words,
please type your software into the PC before lab. Attendance in lab is
required. All software for lab, and tests must include comments. All
hardware must include R&C values specifying tolerance and type (e.g., 5%
carbon), and chip numbers (be very specific e.g.,
OPA2350PA). Pin
numbers are required only for lab, not for the exams.
Students are encouraged to go to the last 1 hour of the other lab
periods, but the first priority will be to the regular students. During
the first 15 minutes of lab, the TA will collect preparations. For the
next 15 minutes, the TA will lead a lab discussion session. The
remaining lab time is available for debugging and lab checkout. At the
end of the semester please verify with the checkout counter that your
record is clear. All reports must be given to the TA by Friday May 7, 5pm.
Sections from the EE345L book that might help with the labs
1.6.
Digital Logic And Open Collector
2.11. Debugging Strategies
4.5.4. 6812 Interrupt Vectors And Priority (Review)
7.6. SCI
Interrupt Interfaces
7.7. SPI Interfaces
Lab Example SCI12.H SCI12A.C (Review)
8.4. Transistors
Used For Computer Controlled Current Switches
8.5.5. Pulse Width Modulated
DC Motors
8.5.6. Interfacing EM Relays, Solenoids, And DC Motors
Figure
8.70 (IRF540, 6N139)
6.2.1. General Concepts
6.2.2. Output Compare Details
6.2.3. Periodic Interrupt Using Output Compare (Review)
6.2.5. Pulse
Width Modulation
6.1.1 Basic Principles Of Input Capture
6.1.2. Input
Capture Details
6.1.3. Real Time Interrupt Using An Input Capture
6.1.4.
Period Measurement (Not 32-Bit)
6.4.1. Using Period Measurement To Calculate
Frequency
5. Threads
14.1., 14.3 CAN Network
15. Digital filter fundamentals,
design, implementation and analysis
Covered on the
exams, but not necessary for the labs
6.1.5. Pulse Width Measurement
6.3. Frequency Measurement
6.3.1. Frequency Measurement Concepts
6.3.2. Frequency Measurement with frequency resolution of 100Hz
6.5.
Measurements Using Both Input Capture And Output Compare
6.5.1. Period
Measurement with period resolution of 1ms
6.5.2. Frequency Measurement with
frequency resolution of 0.1Hz
11.2.7.5 Subtraction Circuits
11.2.7.6 Instrumentation Amp (AD620)
Legal Stuff: The 12th class day is January
29.
After this date, I will sign a drop only if the Dean approves it. If you
drop the class, please return the board to your TA. Your
current grade status must be a "C" or better for you to receive a "Q".
Course evaluation is conducted on the last class day in accordance with
the Measurement and Evaluation Center form. The final exam is at the
time and place stated in the course schedule. The University of Texas at
Austin provides upon request appropriate academic adjustments for
qualified students with disabilities. For more information, contact the
Office of the Dean of Students with Disabilities at 471-6259, 471-4241 TDD.
Cheating: Cheating is very uncivilized behavior and is
to be avoided at all cost. We will be using an automated system to check for software plagiarism. You are allowed to talk to your classmates about the
lab assignments, but you are NOT allowed to look at each other's
written work. Oral discussion about an assignment is
encouraged and is not considered to be cheating. Copying of any part
of a program is cheating without explicit reference to its source. If we find
two programs that are copied, there will be a substantial penalty to both
students, e.g., failure in the course. Students who cheat on tests or in lab
will fail. Prosecution of cases is very traumatic to both the student and
instructor. PLEASE DO YOUR OWN WORK. Policies concerning the use of other
people's software in this class:
…
I strongly encourage you to study existing software.
…
All applications and libraries must be legally obtained. E.g.,
You
may use libraries that came when you bought a compiler.
You
may use software obtained from a BBS or on the WWW.
You
may copy and paste from the existing source code.
…
You may use any existing source code that is clearly referenced and
categorized:
original:
completely written by you,
derived:
fundamental approach is copied but it is your implementation,
modified:
source code significantly edited to serve your purpose,
copied:
source code includes minor modifications.
Request samples (DIP or PDIP package)
You will need register with an official University email address (e.g.,
YourName@mail.utexas.edu) rather than
a junk email address (e.g., aol.com or gmail.com)
for
Analog Devices
http://www.analog.com/en/index.html
AD8032ANZ
rail-to-rail dual op amp
Maxim
http://www.maxim-ic.com/
Texas Instruments
http://www.ti.com
OPA2350PA rail-to-rail dual op amp
LM4041CILPR adjustable shunt reference
SamTec
http://www.samtec.com/ Click
Samples, register
SD-108-G-2 (need 4 for Arm Board)
Cool chips, but not needed Spring 2010
MAX1247ACPE+
12-bit ADC, such as the
(A or B, with or
without
+)
MAX492CPA rail-to-rail dual op amp (any plastic DIP, with or without +)
MAX494CPD rail-to-rail quad op amp (any plastic DIP, with or without +)
MAX539ACPA single 12-bit SPI interface DAC (ACPA or BCPA)
MAX6225ACPA+ 2.500V
analog reference (with or
without
+)
(ACPA or BCPA)
MAX5154ACPE
dual 12-bit SPI interface DAC
(ACPE or BCPE)
TLC2272ACP rail-to-rail dual op amp
TLC2274ACN rail-to-rail quad op amp
INA122P rail-to-rail instrumentation amp
Places to buy prototyping boards
and other parts
In Austin
AlTex Electronics | 832-9131 |
Frys Electronics | 733-7000 |
Mail Order
BG Micro, Dallas | http://www.bgmicro.com/ | Freescale | http://www.freescale.com/ | |
All Electronics, Los Angeles | http://www.allelectronics.com/ | Technological Arts | http://www.technologicalarts.com | |
Digikey | http://www.digikey.com/ | Maxim | http://www.maxim-ic.com/ | |
Mouser Electronics | Fairchild | http://www.fairchildsemi.com/ | ||
Jameco, Belmont CA | http://www.jameco.com/ | Texas Instruments | http://www.ti.com/ |
Curious about my research?
See
http://users.ece.utexas.edu/~valvano/research