3. Given the following timer status after running: TIMER.PRESET = 10000 TIMER.ACC = 7500 What is the timer's current state?
medium
A. Timer has finished counting and is done
B. Timer is paused at 7500 milliseconds
C. Timer is reset and not started
D. Timer is still counting and not done
Solution
Step 1: Compare accumulated and preset values
The accumulated value (7500) is less than the preset (10000), so the timer has not reached its target.
Step 2: Determine timer state
Since accumulated is less than preset, the timer is still counting and not done.
Final Answer:
Timer is still counting and not done -> Option D
Quick Check:
ACC < PRESET means timer running [OK]
Hint: If ACC < PRESET, timer is running [OK]
Common Mistakes:
Assuming timer is done when ACC < PRESET
Confusing paused with running
Thinking reset means ACC is non-zero
4. A timer's accumulated value never increases even though the timer is enabled. Which is the most likely cause?
medium
A. The preset value is set to zero
B. The timer is not enabled or triggered properly
C. The accumulated value is manually reset continuously
D. The timer's accumulated value is greater than preset
Solution
Step 1: Understand timer behavior when enabled
The accumulated value increases only when the timer is enabled and counting.
Step 2: Analyze causes for no increase
If the timer is not enabled or triggered, the accumulated value stays the same.
Final Answer:
The timer is not enabled or triggered properly -> Option B
Quick Check:
Timer must be enabled to accumulate time [OK]
Hint: Timer must be enabled to increase ACC [OK]
Common Mistakes:
Assuming preset zero stops accumulation
Ignoring timer enable condition
Thinking ACC resets automatically
5. You want a process to run exactly 15 seconds after a start signal. Which timer setup ensures the process starts only after 15 seconds have fully elapsed?
hard
A. Set TIMER.PRESET = 15000 and start process when TIMER.ACC >= TIMER.PRESET
B. Set TIMER.PRESET = 15000 and start process immediately when timer starts
C. Set TIMER.PRESET = 15000 and start process when TIMER.ACC = 0
D. Set TIMER.PRESET = 15000 and start process when TIMER.ACC < TIMER.PRESET
Solution
Step 1: Understand timing requirement
The process must start only after 15 seconds have fully passed.
Step 2: Use timer values to control start
Starting the process when accumulated time is equal or greater than preset ensures 15 seconds elapsed.
Final Answer:
Set TIMER.PRESET = 15000 and start process when TIMER.ACC >= TIMER.PRESET -> Option A
Quick Check:
Start after ACC >= PRESET for exact delay [OK]
Hint: Start process only when ACC reaches preset [OK]
Common Mistakes:
Starting process immediately on timer start
Starting before accumulated time reaches preset
Using ACC = 0 as start condition
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.