EmCon HAL Modules

EmCon HAL Functions and Modules

The bridging of the physical world and a microcontroller’s program is completed through what are known as Registers. In a simplistic sense, registers memory locations within the microcontroller which are accessed like variables and are tied to operational aspects of the various subsystems of the microcontroller. This includes but is not limited to: clock system configuration, entry/exit of low power modes, timers, and general purpose input and output (GPIO) configuration and interfacing.

Working with registers can be difficult and tedious depending on the complexity of the subsystem of interest. For example: configuring and using GPIO pins using registers is fairly straight forward for simple tasks, whereas interfacing with the I2C module is much more involved. To this end, function libraries, or drivers, that provide more intuitive avenues for configuration are usually available from either the manufacturer of the microcontroller or other vendors. For general use of the MSPM0G3507, TI provides the TI DriverLib. The DriverLib[1] is more complicated than desired for this course; therefore, a simplified subset of the DriverLib functionality is written and used in this class, referred to as the EmCon HAL to avoid confusion between the two. The functions provided by the EmCon HAL are documented in the links above for the modules used throughout the course.

Footnotes