beautypg.com

Software applications – Sundance SMT8090-365 User Manual

Page 11

background image

Version 1.2

Page 11 of 12

SMT8090 User Manual

Software applications.

3L application.

In a sub-folder labelled 3L (directory SMT6600\Systems\SMT8090_365), you will find
a C (Test365.c), a configuration (Test365.cfg) and a make (makefile) files. Make sure
the SMT365 has been configured with the 32-bit version of the firmware.

In a DOS prompt window, simply type nmake to generate the 3L application file,
which can be loaded into the SMT365 by using the 3L Server (3L Diamond needs to
be installed first).

This application executes the following steps:

• Configure FPGA
• Configure Internal registers
• Read back ADC registers
• Set clock frequency
• Updates temperature
• Capture data

Description of the functions in the test software (Run8090.c).

The Run8090.c file provides functions to interact with the SMT390VP. Those
functions can be reused in other software.

“Configuring FPGA - Full configuration - Loading keys and bitstream”

This command loads the bitstream contained in the directory where the application is
running from as well as the Start and End.

“Configuring FPGA - FPGA Already configured - Loading END key only”

In the case where the FPGA has already been configured, by simply sending an End
Key, the FPGA retrieves it configuration. It saves time.

“Pulse on Config Line - for FPGA reconfiguring”:

void CPLDReset(void)

By toggling the Config line, it is possible to reload the FPGA with a different
bitstream.

“Configuring internal Registers”:

void SetADCConfig(void)

Sets up the internal registers with values defined at the beginning of the application.