Dialog DA9026 Manual del usuario - Página 10

Navegue en línea o descargue pdf Manual del usuario para Placa base Dialog DA9026. Dialog DA9026 15 páginas.

User Guide - Preliminary

I2C Direct Commands

This section of the panel represents the most powerful sec-
tion of the interface to the DA9026 device. It enables the
user to have total control over the registers of the module, in
being able to set values and read values, but it also enables
other I2C devices on the same bus to be accessed by
changing the I2C address.
The panel section is as follows:
The elements of this section are given in table 3 below.
Func-
Description (all data is in hex format)
tion
Status
Gives the status of the last read/write to the
I2C bus (see Appendix E for code values)
Slave
The Slave write address for the required I2C
Ad-
device (8 bits)
dress
Regis-
The register to send/read data to/from
ter
Send
Send the specified data to the current register
of the current device
Read
Read the contents of the specified register of
the current device and display it
File IN
Read and load a file of I2C data to the speci-
fied device
File
Read the contents of all the registers of the
OUT
specified I2C device and write to a file
Table 3. I2C direct commands
The format of the register data stored in a file is given in
Appendix A.
Two files are produced: a text file with the suffice .txt, in a
format described in Appendix A; and a source file with the
suffice .src. This is in a format that can be pasted in a C/
C++
development
system,
>SEQ_LED[1].SEQ_DUR=0x28; where
provided by Dialog on the CD.

File Handling

In order to minimize the amount of data
re-entering, some file handling and basic
functions are supported.
Note: the 'Load ASIC' control is colored red
when I2C data is sent directly to the device
and the displayed panel data does not
therefore reflect the current status of the
DA9026 device. It returns to its normal color
Figure 15.
after being activated.
File handling
© Dialog Semiconductor 2005. All rights reserved.
DA9026 Evaluation Board
Func-
tion
Save
Panel
Load
Panel
Reset
Panel
Load
ASIC
Table 4. File handling routines
The format of the saved panel data is given in Appendix B.

Register Value Options

The 'Display Register Values' button, gives a tabular listing
of the register values based on the contents displayed on
Figure 14.
I2C
the panel. It does NOT retrieve register data from the
direct commands
DA9026 device. There is also a control: 'register value'
debugging' which display all the register values for the
various parameters as an aid when working directly with the
I2C interface.

Sound Options

An additional feature is the ability to play .wav files
alongside a light show demonstration. These greatly
enhance the demonstration if the light and audio are
reasonably well in sync. To be able to generate such a
combination, a section of the panel enables .wav files to be
played whilst modifying the light sequences, and also to
enable the light and audio to start together. Both these
options have been found to be required to facilitate the
Figure 16.
Sound options
duration of a sequences are transmitted instantly to the
DA9026 module and so the results of modifications are
visible immediately.
The second option 'Start Light & Sound' starts the current
light sequence and the currently selected .wav at the same
time to enable the fine tuning of the timing to be completed.
On completion of a satisfactory combination of light and
audio, it is possible to add them into the standard
e.g.DA9026_Memory-
demonstration by naming the appropriate files (e.g.):
the typedefs are
And they can then be used from the demonstration panel
(although the DA9026 program will need to be restarted for
the new files name to appear in the drop-down menus). It is
possible to capture any sound file that can be played on a
PC for use with this option. Appendix C gives further details.

Exit

The 'Exit Program' button closes the DA9026 program.
CONFIDENTIAL
Description
Save the current values of the configuration
panel to a file
Load the contents of a previously saved
configuration panel
Reset the panel to the default (DA9026)
settings
Download all the current panel values to the
DA9026 device
correct combination.
The first option, 'Play .WAV' enables
the user to select a .wav file and play
it. Whilst this is being played it is
possible
to
modify
sequences to get a first timing
approximation.
Changes
DEMO1T.txt
and
DEMO1T.wav
DA9026-UG04-0705
DA9026
the
light
to
the
Page 10 of 15