2.1 EEPROM Programming Process
The following figure illustrates the steps to follow to perform any EEPROM programming
operation with respect to the protocols.
The following are the steps in the EEPROM programming process:
- In Test Mode (Flash Variant) – Set the BM78 module into the Test (Write EEPROM) mode. Set the pin P2_0 to ON and the pin P2_4/EAN to the OFF state to enter the Memory Programming mode, and, then, initiate a hardware reset using the RESET pin. The following table provides details about the BM78 Evaluation Board (EVB) mode switch positions. For more details, refer to the BM78 Evaluation Board (EVB) User’s Guide (DS70005246A).
- Connect to EEPROM – Send the
HCI_Reset
command to the BM78 module to activate the EEPROM read/write operation, and, then, send theHCI_EEPROM_PAGE_WRITE_NUM
command to set the EEPROM parameter. - EEPROM Read/Write Operations – Use
the
HCI_EEPROM_WRITE
command for the EEPROM setting update, and use theHCI_E2PROM_READ
to read back the EEPROM setting for verification. - Disconnect from EEPROM – The host MCU
sets the BM78 module into the Application mode using the pins P2_0 and P2_4/EAN. Set
the pins P2_0 to ON and P2_4/EAN to the OFF state, and, then, initiate a hardware
reset using the RESET pin. The following table provides details about the BM78
Evaluation Board (EVB) mode switch positions. For more details, refer to the BM78
Evaluation Board (EVB) User’s Guide (DS70005246A).
Table 2-1. BM78 Evaluation Board (EVB) Mode Switch Positions Mode Switch Positions Pin Definition 1/P2_0 2/P2_4 3/EAN Flash Write Flash ON ON ON ROM Test (Write EEPROM) ON OFF ON Application (default) OFF OFF ON Flash Test (Write EEPROM) ON OFF OFF Application (default) OFF OFF OFF