User Guide DA7212_Rev1v2 CONFIDENTIAL
Page 30 of 34
User Guide
DA7212 User Guide – Rev1.2
Appendix A
– Register Text File
The software includes the ability to save and load a text file containing
command codes representing the register addresses and data. This file is
principally used to save and load setup data, but may also be used to perform
a small degree of automation.
Note that at the end of the startup process, initiated
by pressing “Start
D
evice”, a file “Host_configuration.txt” is loaded and run to emulate the host
processor writing immediately to the device.
If the option
“Settings>Reg names in file” is set from the menu, register
names, rather than numbers, are used in the file, and the slave address is
replaced by the word
“CODEC”. This is generally preferable and more
readable. Names are defined in the files
“Registers_DA7212.h”, and
“Hardware_DA7212.h” that reside in the \Data\Drivers directory.
Hex codes for slave address and register address are still accepted on
reading in the file.
The use of the Save\logtest.txt facility permits register contents to be
transferred to the user‟s own software. Clinking on Save\logtest.txt brings up
the following panel, showing the location and name of the saved file. This is a
Register dump of the entire device.
Example message box.
I2C Register Text File Format
The following formats are used for both read and write in the text file.
Numbers apart from time delays are always expressed in Hex,
separated by tabs.
The use of “0x” in front of the hex value is optional.
The first parameter is the device slave address in 8bit format.
OR
The first parameter is a token:
o
“WRITE2” or “CODEC” will write to the CODEC device at the
currently selected slave address (I2C mode only).
o
“READ2” will read from the CODEC device at the values of a
number of registers.