1.1Compute an ADC Step
What is the ideal voltage step of a 10-bit ADC with a $5\ \mathrm V$ reference?
Solution
0 of 8 completed
Select at least one problem.
No problems selected.
Difficulty
What is the ideal voltage step of a 10-bit ADC with a $5\ \mathrm V$ reference?
Solution
A sensor contains useful content up to $100\ \mathrm{Hz}$. What is the minimum ideal sampling-rate condition to avoid aliasing?
Solution
Practical designs usually sample faster to allow an anti-alias filter transition band and timing margin.
An ideal $0$-to-$12\ \mathrm V$ PWM signal has duty cycle $25\%$ and drives a sufficiently slow resistive load. What is its average voltage?
Solution
A timer clock is $1\ \mathrm{MHz}$, the prescaler is $10$, and $ARR=999$. Find the timer period.
Solution
A task executes for $0.5\ \mathrm{ms}$ every $5\ \mathrm{ms}$. What is its utilization?
Solution
The task uses an estimated $10\%$ of the processor before accounting for interrupts, scheduling overhead, blocking, and other tasks.
Why is declaring a shared variable volatile not enough to make an increment safe between an ISR and foreground code?
Solution
volatile prevents the compiler from assuming that the value is unchanged between accesses. It does not make a read-modify-write increment atomic. The ISR can occur between the read and write, so use an atomic operation, a protected critical section, or a suitable synchronization design.
Does UART by itself define message boundaries and guarantee that a received message is valid?
Solution
No. UART defines electrical signaling and an asynchronous character frame, but an application must add message framing, length or terminators, timeout rules, and an integrity check such as a checksum or CRC.
Give one fault-injection test for a temperature controller and state the expected safe response.
Solution
Disconnect or substitute an out-of-range temperature sensor. The firmware should detect the invalid signal, record a diagnostic, and move the heater or actuator to its specified safe state rather than continuing with an untrusted measurement.