The following sections on setup describe the steps for setting up the CN0540 board using both the SDP-K1.
The following sections describe the process of setting up the hardware for both the SDP-K1 and 32F746GDISCOVERY micro-controller boards. It's important to note that the Arduino headers on the CN0540 are surface mounted and as such the user should take care not to bend or break the headers.
Shown below is the CN0540 board mounted on the SDP-K1 board via the Arduino headers. The SDP-K1 only requires a single Standard-A to Mini-B USB cable to connect to the PC. Both the orange Connected LED and green SYS PWR should light on the SDP-K1 if connected correctly.
Note: you can refer to this video on how to import an mbed example program: https://youtu.be/3xbzuPLcmCk?t=189
In order to communicate with the board using the SDP-K1 the user needs to install a serial terminal software on their PC. It is recommended to use PuTTY which is available for free download on the internet. The following steps were written with PuTTY in mind however any other serial terminal application should follow a similar procedure. Following are the steps required to interface with the board.
The following table shows every command along with a brief description. Some commands have recommended settings to apply for optimal results for narrow bandwidth measurements of 32 kHz.
Command | Description | |
---|---|---|
1. | Set ADC power mode | Change the power mode of the AD7768-1. The available power modes are Low, Median and Fast, and are described in the datasheet. Low power mode is recommended. |
2. | Set ADC MCLK divider | Change the clock divide to: /16, /8, /4 or /2. /16 is recommended. |
3. | Set ADC filter type | Change the type of filter used. Also allows for the oversampling ratio to be changed. Recommended is the Low ripple FIR Filter, oversampled by 32. |
4. | Set ADC AIN and REF buffers | Adjust the buffers for both AIN and REF. It is recommended to turn on both AIN precharge buffers and precharge both REF buffers. |
5. | Set ADC to default config | Resets the ADC configuration to the default. |
6. | Set ADC VCM output | Choose the VCM output voltage, recommended is (AVDD1 – AVSS)/2. |
7. | Read desired ADC register | Read the ADC registers. |
8. | Read continuous ADC data | Reads voltages, codes and raw data from the ADC over a user-defined number of samples. |
9. | Reset ADC | Resets the ADC, either a soft reset over SPI or hard reset using the reset pin. |
10. | ADC Power-down | Put the ADC into sleep mode or wake it up. |
11. | Set ADC GPIOs | Control the ADC GPIOs by reading, writing or changing GPIO settings. |
12. | Read ADC master status | Shows faults in master status register, allowing the user to pinpoint the source of problems. |
13. | Set ADC Vref and MCLK | Change the values for Vref and MCLK. |
14. | Print ADC measured data | Prints previously read voltages, codes and raw data to the terminal. Logging the terminal will allow the user to use extract this data. Requires the 'Read data' command to have been run. |
15. | Set ADC data output mode | Choose how data is output from the ADC. |
16. | Set ADC diagnostic mode | Change which diagnostic mode is used for the ADC. |
17. | Do the FFT | Does the FFT and prints useful information such as the Total Harmonic Distortion, Signal to Noise Ratio and Dynamic Range. |
18. | FFT settings | Change FFT settings such as sample count. Can also print FFT data to the terminal, which can be logged and plotted, requires command 'Do the FFT' to have been run. |
19. | Gains, Offsets | Set the gain and offset values. |
20. | Scratchpad check | Input an 8-bit number, if it is returned the ADC is interfacing with the software. This is a useful quick check for debugging and is good to run after setup. |
21. | Compensate Piezo sensor offset | Automatically compensates for voltage offsets in the sensor, giving more accurate data. The user should run this after connecting a new sensor. |
22. | Set DAC output | Choose what voltage and codes the LTC2606 DAC should output. This sets the Shift voltage and can be used to manually compensate for any voltage offset. |
End of Document