SLAAEL6 September 2024 MSPM0G3507
The sample code includes the capability to program the EEPROM. This capability is enabled by macros defined in file system_info.h.
// When set to 1, the EEPROM programming routine is executed instead of normal program
#define PROG_EEPROM (FALSE)
// When set to 1, program the EEPROM to the default value
#define PROG_DEFAULT_EEPROM (FALSE)
// Use external device address settings for EEPROM programming
#define USE_REF_PIN_FOR_EEPROM_PROG (FALSE)
When macro PROG_EEPROM is defined as TRUE, the EEPROM programming mode is enabled. The sample code can program the default EEPROM values for the specified LED driver IC or a custom setting. The custom setting is programmed when macro PROG_DEFAULT_EEPROM is defined as FALSE. This setting is specified in files eeprom_data.h and eeprom_data.c. These files can be automatically generated by the EEPROM Configuration Tool as mentioned in Section 3.
The LED driver IC supports two method for individual chip selection through pulling the REF pin high or through device address configuration by address pin. When macro USE_REF_PIN_FOR_EEPROM_PROG is defined as TRUE, the REF pin is pulled high during programming. When USE_REF_PIN_FOR_EEPROM_PROG is defined as FALSE, the current device address is used. TI recommends using the current device address.
When the code enters the EEPROM programming routine, M0 turns on LED2 (PB27) on the LP-MSPM0G3507. When macro USE_REF_PIN_FOR_EEPROM_PROG is defined as TRUE, the REF pin is pulled up after the LED2 turns on. The jumper required to pull up the REF-pin for each EVM is listed in Table 4-2.
After LED2 turns on, button S1 on LP-MSPM0G3507 need to be pressed to start the programming. When the current device address is used, LED2 turns off once the programming is finished.
When the REF pin is used, LED2 starts to blink after the programming is finished. At that time, the pull up on the REF pin is removed and afterward the button S2 on LP-MSPM0G3507 need to be pressed. Then LED2 turns off.
EVM | Jumper |
---|---|
TPS929120EVM | J2 position 2 and 3 (+5V) |
TPS929160EVM | J52 position 2 and 3 (VLDO) |
TPS929240EVM | J10 position 2 and 3 (VLDO) |