The firmware that comes with the EVM is designed to use a layered approach isolating the details of metrology and the associated computations involved so that the programming work is simplified.
The firmware is partitioned into three main blocks.
- The application contains:
- System setup and initialization
- Main loop
- Communication protocol and command handling
- Non-volatile parameters preset and manipulation
- The metrology computation engine packaged into a
library named “emeter-metrology-i2041.r43” contains:
Note:
The source code of this library is not
included in the package, contact the Texas Instrument sales team in your area if the
source code is needed.
- ADC setup
- Parameter initializations
- Sample based background
processing
- Reporting cycle based foreground
processing
- Reading application interface
- The toolkit packaged into a library named “emeter-toolkit-i2041.r43”, contains low-level computation routines.