part 2: unboxing and checking the demo applications, first debug cycle
I've checked the different energy modes.
Road Test 2: measure power consumption during various modes
The starter kit comes with several energy mode examples. I've tested two of them.
The energy example: this project switches between clock frequencies (7, 11, 14 and 21 MHz) every few seconds. It displays the voltage and currency stats of the USB supply on the LCD. The power monitor works exclusively when the PWR selection switch is in DEBUG position.
The emode example: this one prompt for the desired energy mode and keeps running in that mode once selected. This exercise is handy when you want to do measurements in a stable state. These options are available:
- EM0 24MHz (primes calc): the processor goes into a loop to calculate prime numbers in energy mode 0 - a good mode to learn how the profiler displays energy use per function
- EM1 24MHz: runs in energy mode 1 at full speed
- EM2 32kHz: energy mode at low speed
- EM3 and EM4: go to sleep modes 3 and 4 respectively
- EM2+RTC: run in energy mode 2, activate on pulse counter interrupt
- EM2 and EM3+RTC+LCD: wake up on pulse counter interrupt, update display and go back to sleep
- User: full speed standard mode running in an endless for(;;) loop.
