SLAU664B February 2016 – August 2017
This section describes the functionality and structure of the out-of-box software that is preloaded on the EVM.
This demo shows how to use the op-amp module, combined with the timer, ADC, and LED, to implement a simple light sensor circuit for ultra-low-power applications.
Upon powering up the out-of-box demo, LED1 will toggle at startup and then LED2 will dim based on the amount of ambient light in the area. If the user covers the photo diode, D1, with a piece of paper or their hand the brightness of LED2 should dim based on the amount of light. If the user illuminates the photo diode with a light source LED2 should increase in brightness until the ADC saturates and the LED reaches full brightness. The current ADC reading is saved to FRAM memory before the device re-enters LPM3.