Skip to main content
Contents Index
Search Book
Search Results:
No results.
Readability settings Prev Up Next
\(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Subsection 11.5.1 Part 1: Questions About TTmotor_ramp.c
On Wednesday we worked through TTmotor_ramp.c one register at a time.
In the reading you worked out how to turn a count of pulses from the speed sensor into revolutions per minute.
Today we’ll wire that sensor, look at its output on the oscilloscope, and then build the rest of the Lab 6 system with the measurement in it.
Questions about TTmotor_ramp.c
Wire the sensor and look at its output
From a pulse train to a number
A loop that does three things at three rates
What Lab 6 asks for
Build it
Everything we do today is built on top of
TTmotor_ramp.c: the program you write for Lab 6 keeps much of that driver and adds a measurement to it. So we’ll start with whatever is still unclear in that file.
Activity 11.5.1 . What is still unclear about TTmotor_ramp.c.
Work on your own first, then compare with your table group.
(a)
Find one line of
TTmotor_ramp.c that you can now explain, and one line that you cannot.
(b)
With your table group, work through how the program runs: what happens in
main(), and which register each line of the setup configures. Collect any lines that nobody at the table could explain.
Any lines of the program that nobody at your table could explain: