Wiki

This version is outdated by a newer approved version.DiffThis version (06 Jul 2021 05:08) is a draft.
Approvals: 0/1

This is an old revision of the document!


CN0535 and the SDP-K1

General Setup

The following sections on setup describe the steps for setting up the CN0535 board using the SDP-K1 and the mbed Example program for CN0535-FMCZ.

Equipment

Hardware Setup

The following sections describe the process of setting up the hardware for both the SDP-K1 micro-controller board and the EVAL-CN0535-FMCZ customer evaluation board.

EVAL-CN0535-FMCZ Prep for use with SDP-K1

The EVAL-CN0535-FMCZ was designed to be evaluated using SDP-H1. On the other hand, if the user want to evaluate the CN0535 using SDP-K1, the following components needs to be installed. The table below shows the components that the user must install to enable the use of the EVAL-CN0535-FMCZ with the SDP-K1.

Component Manufacturing Part Number
1. P2, P4TSM-108-04-T-SV
2. P3TSM-110-04-T-SV
3. R38, R5, R6, R7, R27ERJ-3GEY0R00V or equivalent 0 ohm jumper
4. C250603YC104KAT2A or equivalent
5. Y1SIT8008BI-21-33E-16.38400G

Shown on below Figures the board setup for SDP-K1.

SDP-K1

Shown below is the CN0535 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.

Software Setup

Programming the SDP-K1

Following are the steps then required to be completed to set up the EVAL-CN0535-FMCZ Evaluation Board using the SDP-K1:

  1. Download the SDP USB Drivers and run the .exe file. Follow the instructions on the window that appears to install the drives.
  2. Plug the USB cables from the PC into the SDP-K1. If installation was successful a new device named SDP-K1 should appear under 'This PC' in Windows File Explorer.
  3. Download the AD7768_mbedos.SDP_K1.bin firmware.
  4. Copy and paste or drag and drop the AD7768_mbedos.SDP_K1.bin file into the SDP-K1 device/folder. This will load the firmware onto the board.
  5. If the download fails, a FAIL.TXT file will appear on the SDP-K1 device.
  6. If the download is successful the .bin file will disappear from the SDP-K1 device and there will be no FAIL.TXT file.
  7. Unplug the SDP-K1 board from the PC and plug it back in to hard reset the board and finalize installation.

Importing the EVAL-CN0535-FMCZ MBED Example program

  1. If the user doesn’t have an mbed online id account, the user must create one at https://ide.mbed.com/.
  2. After having a acount, open the Example program for EVAL-CN0535-FMCZ https://os.mbed.com/teams/AnalogDevices/code/EVAL-CN0535-FMCZ/

Connecting to a serial terminal application

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.

  1. Open Device Manager through the Windows control panel and plug the micro-controller board into the PC, when the board is detected it will appear in device manager, displaying as USB Serial Device. This also displays which port the board is connected to. (COM4 in this case)
  2. Open the serial terminal application and enter the correct values to configure it to connect to the board. The serial line should be the COM port noted earlier and the speed should be set to 115200 to ensure data transfer works correctly. Also note the changes in the Terminal tab, this is required for the menu to display properly.
  3. Upon connection, the interface menu should appear. If not, press the reset button on the micro-controller board, this will call up the command menu for the user to interact with. (Note: This does not work with the version A & B of the SDP-K1)
  4. From here, the user should type the number corresponding to their desired choice and press 'Enter'. Note that many choices will create sub-menus, prompting the user to make another choice.

Command Summary

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 LTC6373 PGIA Gain/Mode Change the LTC6373 Gain or Mode. The available power modes are Low, Median and Fast, and are described in the datasheet. Low power mode is recommended.
2. Set clock divide Change the clock divide to: /16, /8, /4 or /2. /16 is recommended.
3. Set 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 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 Default config of the ADC Resets the ADC configuration to the default.
6. Set VCM output Choose the VCM output voltage, recommended is (AVDD1 – AVSS)/2.
7. Read desired register Read the ADC registers.
8. Read 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. Power-down Put the ADC into sleep mode or wake it up.
11. ADC GPIO Control the ADC GPIOs by reading, writing or changing GPIO settings.
12. Read master status Shows faults in master status register, allowing the user to pinpoint the source of problems.
13. Set Vref and MCLK Change the values for Vref and MCLK.
14. Print 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 data output mode Choose how data is output from the ADC.
16. Set 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.

End of Document

resources/eval/user-guides/circuits-from-the-lab/cn0535/sdp-k1.1625540893.txt.gz · Last modified: 06 Jul 2021 05:08 by John Neeko Garlitos