1. DEVRY ECET 365 Week 1 Homework Problems 8.9,
8.10, D8.13, D8.14, D8.15 NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-1-homework-problems-
recent
For more classes visit
http://www.uopassignments.com/
Page 454-455
Problems 8.9, 8.10, D8.13, D8.14, D8.15
8.9) A stepper motor has 24 north teeth and 24
south teeth. What angle change occurs on each
step?
If a full step is output every 1 ms (and assuming it
doesn’t slip), at what speed does the motor spin?
8.10) Draw a figure similar to figure 8.80 showing
how half stepping works.
D8.13) Design an interface for a +24 V, 500 mA
geared DC motor. The time constant of the motor is
2. D8.14) Design an interface for a +12 V, 500 mA
bipolar stepper motor. There are 200
steps/revolution.Write the software to spin the
motor at 1 rps.
D8.15 An alarm is powered by 120 VAC, and the
on/off state of the alarm is controlled by an EM
relay. Design the interface between a computer
output port and the EM relay. The dropout voltage
is 3.5 V, and the coil current needs at least 100 mA.
Limit the coil voltage to 6 V. Write three software
functions: Alarm_Init, Alarm_On, and Alarm_Off.
3. DEVRY ECET 365 Week 1 iLab Motor Control NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-1-ilab-motor-control-
recent
For more classes visit
http://www.uopassignments.com/
Objectives
A. Develop software routines that control Stepper
Motors, small permanent magnet DC motors, and
Servos.
B. Understand how an H-bridge can be used to
control DC motors and Stepper Motors.
Questions for the DC Motor Procedures:
Questions for the Stepper Motor Procedures:
Questions for Servo Procedures:
4. DEVRY ECET 365 Week 1 Quiz NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-1-quiz-recent
For more classes visit
http://www.uopassignments.com/
Question 1. Question : (TCO 3) To allow a relay coil
current of 150 mA through an NPN transistor with
a gain (beta) of 75, the current through the base
must be _____.
Question 2. Question : (TCO 3) A stepper motor
requires 250 steps per revolution. How many
degrees does the motor rotate per step?
Question 3. Question : (TCO 3) A pulse train
consists of a logic 1 pulse that is 30 microseconds
wide followed by a logic 0 pulse that is 70
microseconds wide. The duty cycle is _____.
Question 4. Question : (TCO 3) Compare the
advantages and disadvantages of using an optical
6. DEVRY ECET 365 Week 2 Homework Problems 7.1,
7.4, 7.9, 7.13, D7.17 and 12.1 – 12.5. NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-2-homework-problems-
recent
For more classes visit
http://www.uopassignments.com/
Pages 384 – 387, Problems 7.1, 7.4, 7.9, 7.13,
D7.17.
Page 639, Problems 12.1 – 12.5.
Question: 7.1 For each term, give a definition in 32
words or less.
Question: 7.4 Look up in the 9S12 data sheet how
the SCI checks for noise. In particular, when is the
noise flag set? How does software clear the noise
flag?
Question: 7.9 Consider a serial port operating with
a baud rate of 1000 bits per second. Draw the
waveform occurring at the PS3 output (voltage
levels are +5 and 0) when the ASCII ‘B’ ($42) is
7. transmitted on SCI1. The protocol is one start,
eight data, and one stop bit. SCI1 is initially idle,
and the software writes the $42 to SCI1DRL at time
= 0. Show the PS3 line before and after the frame,
assuming the channel is idle before and after the
frame.
Question: 7.13 A slave device will be interfaced to
the Master 9S12 using SPI. The timing is shown in
Figure 7.62. There are three signals that will be
outputs of the 9S12 and inputs to the device
(Enable, Clock, and Data). The timing of the
external device is shown below. What CPHA, CPOL
mode should you use?
Question: 12.1 For each term, give a definition in
32 words or less.
Question: 12.2 For each transducer parameter,
give a definition in 32 words or less.
Question: 12.3 For each instrument parameter,
give a definition in 32 words or less.
Question: 12.4 For each transducer, give its
measurand.
Question: 12.5 For each concept, give a definition
in 32 words or less.
8. DEVRY ECET 365 Week 2 iLab Interfacing to the
Smart Car Video Sensor NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-2-ilab-interfacing-to-
the-smart-car-video-sensor-recent
For more classes visit
http://www.uopassignments.com/
Objectives:
Develop a hardware interface to the TSL1401
Video Sensor in the Smart Car Kit.
Test the sensor with software and use data to
control the steering servo.
(Mini Project) Use mini lab TTL pulser to simulate
the sensor inputs and control PWM output on/off
so as to test your motors steering system.
9. DEVRY ECET 365 Week 2 Quiz NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-2-quiz-recent
For more classes visit
http://www.uopassignments.com/
Question 1. Question : (TCO 4) A transducer produces a
5 V output with an internal resistance of 50 ohms. The
input resistance of the amplifier is 1,000 ohms. What is
the voltage at the input of the amplifier?
Question 2. Question : (TCO 4) A signal contains a
highest frequency of 500 Hz. What is the minimum
sampling frequency required?
Question 3. Question : (TCO 4) A signal with a range of 0–
5V is sampled with a 16-bit ADC. What is the change in
voltage (delta) between digitized levels?
Question 4. Question : (TCO 4) The SPI protocol uses two
lines, MOSI and MISO. What do MOSI and MISO mean and
how do the data flow on these lines?
10. DEVRY ECET 365 Week 3 Homework Problems
2.18, 2.19, 2.20, D2.23, D2.24 NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-3-homework-problems-
recent
For more classes visit
http://www.uopassignments.com/
Pages 146 - 147, Problems 2.18, 2.19, 2.20, D2.23,
D2.24
2.18 In 32 words or less, describe the meaning of
each of the following terms.
19. Give a quantitative measure of modularity (e.g.,
System A is more modular than system B) if …
2.20 In 32 words or less, describe the meaning of
each of the following debugging terms.
11. D2.23 Write assembly or C software to implement
the following Moore FSM (Figure 2.41). Include the
FSM state machine, port initialization, timer
initialization, and the FSM controller. The
command sequence will be output, wait the
specified time in ms, input, then branch to next
state. The 2-bit input is on Port T (PT1 and PT0),
and the 3-bit output is on Port T (PT7, PT6, PT5).
Assume the E clock is 8 MHz.
D2.24 Write assembly or C software to implement
the following Mealy FSM (Figure 2.42). Include the
FSM state machine, port initialization, timer
initialization, and the FSM controller. The
command sequence will be input, output, wait 10
ms, input, then branch to next state. The 1-bit
input is on Port P (PP0), and the 3-bit output is on
Port P (PP3, PP2, PP1). Assume the E clock is 8
MHz.
12. DEVRY ECET 365 Week 3 iLab Converting Requirements
to a Work Schedule NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-3-ilab-converting-
requirements-to-a-work-schedule-recent
For more classes visit
http://www.uopassignments.com/
Objectives:
A. Develop a map showing which hardware subsystems
from the kit will be used to meet each requirement.
Determine if additional parts are required.
B. Determine which hardware subsystems will require
software support to control the subsystems or provide
communications between subsystems.
C. Produce a set of tasks needed to meet the
requirements. Assign tasks to team members.
D. Develop a work schedule for a presentation to the
class. Include serial and parallel scheduling of tasks to
meet the time requirements.
Step 1: Procedure
A. Determine the project requirements.
13. B. Determine alternative subsystems to meet the
requirements.
C. Determine the set of alternatives that you will use for
the project.
D. Develop a Work Schedule for the project.
14. DEVRY ECET 365 Week 3 Quiz NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-3-quiz-recent
For more classes visit
http://www.uopassignments.com/
Question 1. Question : (TCO 1) The type of
cohesion in which the components of a software
Module are in a mandatory order is called _____.
Question 2. Question : (TCO 1) A _____ records
values of output ports controlled by the program.
Question 3. Question : (TCO 2) In a program with
multiple threads, the execution of an Interrupt
Service Routine is called a _____.
Question 4. Question : (TCO 1) What are the
differences between a Moore finite-state machine
(FSM) and a Mealy FSM?
15. DEVRY ECET 365 Week 4 Homework Problems
NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-4-homework-problems-
recent
For more classes visit
http://www.uopassignments.com/
Answer Pages 242, Problem 4.10; page 586,
problems 11.5c, g; and page 589, problems D11.20,
D11.21.
Page 242, Problem 4.10 – What purpose might
there be to use the PLL and slow down the 9S12?
Page 586, Problem 11.5 c) & g) – For each pair of
terms, explain the similarities and differences in
32 words or less.
Page 589, Problem D11.20 – The input, V in, is
differential not single-ended. Design an analog
circuit with a transfer function of Vout = 50 ⋅ V in +
2.5 powered by a single +5 V supply. You may use
any of the analog chips in this chapter. For
example, you may use the REF03 2.50 V reference
16. chip. The input range is −0.05 V to +0.05 V, and the
output range is 0 to +5 V. Label all chips, resistors,
and capacitors as needed. – Note: “Analog” is
synonymous with “continuous” (page 531).
Page 589, Problem D11.21 – The input, V in, is
single-ended not differential. Design an analog
circuit with a transfer function of Vout = 50 ⋅ V in −
5 using one rail-to-rail op amp powered by a single
+5 V supply. You may use one REF03 2.50 V
reference chip. The input range is 0.1 to 0.2 V, and
the output range is 0 to +5
17. DEVRY ECET 365 Week 4 iLab System and
Subsystem Power Supplies NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-4-ilab-system-and-
subsystem-power-supplies-recent
For more classes visit
http://www.uopassignments.com/
Objectives:
A. Test the main power supply of the Robotic Car
or robotic system.
B. Test the subsystem power supplies and
determine if a separate battery system is required
for the subsystems.
C. Explore the low voltage inhibit circuit to disable
CPU when the voltage drops below its operating
minimum.
D. Use Codewarrior simulate a three sensor input
control scenario.
18. DEVRY ECET 365 Week 4 Quiz NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-4-quiz-recent
For more classes visit
http://www.uopassignments.com/
Question 1. Question : (TCO 5) An op amp requires
the design equation Vout = 50Vin + 3Vref + AgVg.
What is the value of Ag?
Question 2. Question : (TCO 5) The voltage dropout
of a voltage regulator is 1.6 V. If a 12 V output is
required, what is the minimum regulator input
voltage?
Question 3. Question : (TCO 5) An H-bridge allows
a 4 A current pulse to the drive motor. What is the
average current if the duty cycle is 25% and the
pulse frequency is 2 kHz?
19. Question 4. Question : (TCO 5) What technique can
you use to measure the current draw of a
subsystem if a sensitive ammeter is not available?
20. DEVRY ECET 365 Week 5 Homework NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-devry/ecet-
365-week-5-homework-recent
For more classes visit
http://www.uopassignments.com/
Page 241, Problems 4.1–4.9
4.1 Syntactically, I/O ports are public globals. In order to
separate mechanisms from policies (i.e., improve the quality of
the software system), how should I/O be actually used?
4.2 Why do we add the volatile qualifier in all I/O port
definitions? For example,
#define TCNT *(unsigned short volatile*)(0 0044)
4.3 What happens if an interrupt service routine does not
acknowledge or disarm?
4.4 The main program synthesizes data and a periodic output-
compare interrupt will output the data separated by a fixed
time. A FIFO queue is used to buffer data between a main
program (e.g., main program calls Fifo_Put). An output-
compare interrupt service routine calls Fifo_Get and actually
outputs. Experimental observations show this FIFO is usually
empty and has at most three elements. What does it mean?
Choose from the following.
21. 4.6 A key wake-up input is armed so that interrupts occur when
new data arrives into the 9S12. Consider the situation in which
a FIFO queue is used to buffer data between the key wake-up
ISR and the main program. The ISR inputs and saves the data by
calling Fifo_Put. When the main program wants input, it calls
Fifo_Get. Experimental observations show this FIFO is usually
empty, and has at most three elements. What does it mean?
Choose from the following.
4.7 Answer Exercise 4.6 under the condition that the FIFO often
becomes full.
4.8 Consider the following interrupting system. The active-edge
inputs on PJ7 and PP7 can occur at any time, including at the
same time. The object is to count the number of each type of
interrupt.
How would you best describe the usage of Count in this system?
4.9 Consider the following interrupt service routine. The goal is
to measure the elapsed time from one interrupt call to the
other. What qualifier do you place in the XX position to make
this measurement operational?
22. DEVRY ECET 365 Week 5 iLab Timing and
Interrupts NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-5-ilab-timing-and-
interrupts-recent
For more classes visit
http://www.uopassignments.com/
Objectives:
A. Determine the timing requirements for data to
and from subsystems.
B. Change a procedural subroutine to an
interrupt-driven subroutine.
C. Compare the interrupt-driven system operation
to the procedural system.
Step 1: Procedure
Questions for this week’s iLab:
Observations/Measurements:
1. Compare the operation of the first program with
the operation of the second program.
23. 2. Explain why the timing has changed.
3. What changes could be made to the second
program interrupt routine to enhance the Robotic
Smart Car?
24. DEVRY ECET 365 Week 5 Quiz NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-5-quiz-recent
For more classes visit
http://www.uopassignments.com/
Question 1. Question : (TCO 6) The execution of an
interrupt request routine is called a(n) _____.
Question 2. Question : (TCO 6) The C syntax for
specifying an IRQ subroutine is _____.
Question 3. Question : (TCO 6) A RTIF is _____.
Question 4. Question : (TCO 6) The S12G128 CPU
board has one IRQ pin. You have four devices that
will request interrupt service. How do you
determine which device(s) need service?
25. DEVRY ECET 365 Week6 Homework Problems 14.1-
14.4, 14.8-14.13 NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-6-homework-problems-
recent
For more classes visit
http://www.uopassignments.com/
Page 710: Problems 14.1–14.4, 14.8–14.13
14.1 For each term, give a definition in 32 words or
less.
a) Master-slave
b) Multi-drop
14.2 For each pair of terms, compare and contrast in
32 words or less.
14.4 Consider a telephone line with a channel
bandwidth of 2 kHz and SNR of 40 dB. What is the
maximum data rate possible?
26. 14.8 Consider how the ACK bit is used in a CAN
network.
14.9 If the CAN channel is noisy, it is possible that
some bits will be transmitted in error. Assume there
are four nodes: one is transmitting, and three are
receiving. What happens if a data bit is flipped in the
channel due to noise being added into the channel?
14.10 Considera situationwhere two microcontrollers
are connected with a CAN network. Computer 1
generates 8-bit data packets that must be sent to
Computer 2, and Computer 2 generates 8-bit data
packets that must be sent to Computer 1. The packets
are generated at random times, and the goal is to
minimize the latency between when a data packet is
generated on one computer to when it is received on
the other. Describe the CAN protocol you would use:
11-bit versus 29-bit ID, number of bytes of data, and
bandwidth. Clearly describewhat is in the ID and how
the data is formatted.
14.13 Consider a situation where four
microcontrollers are connected together using a CAN
network. Assume for this question that each frame
contains 100 bits. Also assume the baud rate is 100,000
bits/sec; therefore, it takes 1 ms to send a frame.
Initially, the CAN controllers are initialized (i.e., all
computers have previously executed CAN_Open).
27. DEVRY ECET 365 Week 6 iLab Interfacing to
Networks NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-6-ilab-interfacing-to-
networks-recent
For more classes visit
http://www.uopassignments.com/
Objectives:
A. Compare characteristics of different wireless
communications modules.
B. Compare characteristics of different wireless
Internet communications modules.
C. Determine which modules are the most suitable
for the Smart Car or Robotics project.
D. Develop a preliminary design for connecting a
wireless module to the Smart Car or Robotics
project.
28. Results:
1.The characteristics of Zigbee, Bluetooth LE 4, and
WiFi were compared.
2.The characteristics of WiFi, WiMax, and LTE
were compared.
3.Preliminary designs were developed for
implementing Bluetooth LE4 and WiFi
technologies into the Smart Car project.
Conclusions:
1.In the area of wireless communications there are
trade-offs between range, data rates, power
consumption, complexity of implementation, and
security.
2.The technologies that do not require an FCC
license or clearance have limited range.
3.There are drop in modules for most wireless
technologies.
4.A UART interface is available for modules for
most wireless technologies.
29. DEVRY ECET 365 Week 6 Quiz NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-6-quiz-recent
For more classes visit
http://www.uopassignments.com/
1. Question : (TCO 4) A communications channel
has a bandwidth of 4,000 Hz and a signaltonoise-
ratio SNR) of 30 dB. What is the maximum possible
data rate?
2. Question : (TCO 4) In a CAN bus, there are three
computers: Computer A, Computer B, and
Computer C. The messages being sent are 2
milliseconds long. Computer A starts to send a
message on the bus; 500 microseconds after
Computer A starts sending its message, Computer
B starts sending a message, and 500 microseconds
after that, Computer C sends a message. When
does Computer A retransmit its message?
3. Question : (TCO 4) On a CAN bus, one node
transmits a bit with CANH of 2.5 V and a CANL of
2.5 V. Which one of the following statements is
true?
30. 4. Question : (TCO 4) What is the difference
between the bit rate and the baud rate?
31. DEVRY ECET 365 Week 7 Homework Problems
NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-7-homework-problems-
recent
For more classes visit
http://www.uopassignments.com/
Pages 384–387, Problems 7.1, 7.4, 7.9, 7.13, D7.17
Page 639, Problems 12.1–12.5
Chapter 7
7.1.) For each term, give a definition in 32 words
or less.
7.4.) Look up in the 9S12 data sheet how the SCI
checks for noise. In particular, when is the noise
flag set? How does software clear the noise flag?
7.9.) Consider a serial port operating with a baud
rate of 1000 bits per second. Draw the waveform
occurring at the PS3 output (voltage levels are +5
and 0) when the ASCII ‘B’ ($42) is transmitted on
SCI1. The protocol is one start, eight data, and one
stop bit. SCI1 is initially idle, and the software
32. writes the $42 to SCI1DRL at time = 0. Show the
PS3 line before and after the frame, assuming the
channel is idle before and after the frame
7.13.) A slave device will be interfaced to the
Master 9S12 using SPI. The timing is shown in
Figure 7.62. There are three signals that will be
outputs of the 9S12 and inputs to the device
(Enable, Clock, and Data). The timing of the
external device is shown below. What CPHA, CPOL
mode should you use?
D7.17.) Interface an 8-bit serial device using SPI.
The control pin is interfaced to PT2, and the clock
and data signals are connected to the SPI. The
control and clock signals are normally high. The
SPI needs to clock data out on the falling edge of
the clock. The clock and data are created by the
real SPI, and the control signal is bit-banged. The
maximum clock frequency is 1 MHz.
Chapter 12
12.1.) For each term, give a definition in 32 words
or less.
12.2 For each transducer parameter, give a
definition in 32 words or less.
33. 12.3 For each instrument parameter, give a
definition in 32 words or less.
12.4 For each transducer, give its measurand.
12.5 For each concept, give a definition in 32
words or less.
34. DEVRY ECET 365 Week 7 iLab Integration of
Subsystems NEW
Check this A+ tutorial guideline at
http://www.uopassignments.com/ecet-365-
devry/ecet-365-week-7-ilab-integration-of-
subsystems-recent
For more classes visit
http://www.uopassignments.com/
Objectives:
Complete the assembly of project subsystems.
Test the operation of the completed project.
Observations/Measurements:
A. Visual Subsystem
1. Test Method: (Briefly describe the test
method used to verify the correct operation of the
visual subsystem.)
2. Test Results: (Record the
measurements that indicate the visual subsystem
is operating correctly).
B. Steering Subsystem
1. Test Method: (Briefly describe the test
method used to verify the correct operation of the
steering subsystem.)
2. Test Results: (Record the
35. measurements that indicate the steering
subsystem is operating correctly.)
C. Visual sensor and steering operation
interaction
1. Test Method: (Briefly describe the test
method used to verify that the visual sensor
subsystem and the steering subsystem are
working correctly together.)
2. Test Results: (Record the
measurements that indicate the visual sensor and
steering subsystems are working correctly
together.)
D. Drive Motor Subsystem
1. Test Method: (Briefly describe the test
method used to verify that the drive motor
subsystem is working correctly.)
2. Test Results: (Record the
measurements that indicate the drive motor
subsystem is operating correctly).
E. System Operation
1. Test Method: (Briefly describe the test
method used to verify that the system operates
correctly when all the subsystems are operating.)
2. Test Results: (Record the
measurements that indicate the system is
operating correctly.)
36. Questions
1. Have your problems been mostly hardware or
software? Explain your answer.
2. How does your estimate of energy required to
do two laps compare with your measurements?
3. What is the pulse frequency of the drive motor
control signal?
4. (Optional) How many laps can the car
perform?