|
…produce a sound from an electrical signal
|
|
…produce an electrical signal from a
vibration or sound
|
X
|
…do both
|
- A
piezo device can be used in medical devices for the following…
(Put an X in the box next to your selection)
X
|
…produce a tone for an alarm
|
X
|
…create rapid, precise motion for optics in
scanning instruments
|
X
|
…driving elements for micro-dosing and
nanopumps
|
|
…energy-harvesting power source for
implantable devices
|
|
…all of the above
|
- Explain
the difference between the "analogWrite" and "tone"
Arduino functions
(contrast the adjustable and fixed part of the output waveform)
(Type your answer in the box below
Analogwrite()
is a method of setting the values of single PWM output pin. The scale on
analogwrite () is between 0-255 and the duty cycle is always switched on. The
analongwrite at 50% duty cycle is half of the time. Tone() generates the square waves that can be
specified under the frequency on a pin. The duration is specified in the tone
and waves remains continued until the next wave of notone arrives. At the
time only one tone can be generated with the different pin. If the tone is
adjusted on the same pin, then all the set frequency will be different.
Multiple and different pins at same pitch can be generated before calling
Tone(). The syntax example is tone (pin, frequency) and tone (pin, frequency,
duration)
|
<
Continue to next page >
- Which
of these AVR memory types are “non-volatile”?
(non-volatile means they retain information even when power is
disconnected)
(Put an X in the box next to every selection that applies)
X
|
FLASH
|
X
|
SRAM
|
X
|
Fuses
|
X
|
EEPROM
|
|
Stack Pointer
|
X
|
AVR General-purpose Registers
|
- The
AVR Clock Generator creates the clock for which of the following blocks
(Hint: AVR Data Sheet Section 11.1)
(Put an X in the box next to your selection)
|
CPU
|
|
SRAM
|
|
FLASH
|
|
ADC
|
|
Watchdog Timer
|
|
All of the above
|
X
|
CPU, SRAM, FLASH and ADC
|
- If
the Clock Failure Detector detects a clock failure, which clock is
selected by force
(Hint: AVR Data Sheet Section 12.3)
(Put an X in the box next to your selection)
|
Crystal Oscillator
|
|
External Clock
|
|
Low-Frequency Oscillator
|
X
|
Internal Calibrated 8MHz RC divided-by-8
|
- In
the ATmega328P, the clock source is selected by…
(Hint: AVR Data Sheet Section 11.2)
(Put an X in the box next to your selection)
X
|
Fuse
|
|
Software-writable Register
|
|
Both a Fuse and a Software-writable
Register
|
- In
the ATmega328P, the main clock divider is selected by…
(Hint: AVR Data Sheet Section 11.10, Section 11.11.2 and Table 32-7)
(Put an X in the box next to your selection)
X
|
Fuse
|
|
Software-writable Register
|
|
Both a Fuse and a Software-writable
Register
|
- The
sources of a system reset are…
(Hint: AVR Data Sheet Section 14.2)
(Put an X in the box next to every selection that applies)
X
|
Power-on
|
X
|
Brown-out
|
|
Clock Failure Detector
|
X
|
Watchdog Timer
|
|
Status Register Overflow Flag
|
X
|
External Pin
|
- The
128K internal RC is used for the Watchdog Timer and Clock Failure Detector.
Briefly explain why this clock is used instead of the Crystal Oscillator
or External Clock.
(Hint: AVR Data Sheet Section 12.3 might provide help)
(Type your answer in the box below
The
mechanism of clock failure detection is interlinked with the enabled CFD fuse
in the extended fuse byte. The operation of CFD in case of 128kHz internal
oscillator will enable the automatic process of CFD. The clock failure
detector will enable the user to monitor the low power crystal oscillator and
the external clock signal. If the CFD monitor or the XOSC clock fails, then
the process will switch to the safe clock. This switching process favors the
use of 128k internal RC in the watchdog time and clock failure detector
instead of crystal oscillator as well as external clock.
|
<end of Homework 4>