![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Linear Technology DC2430 Demonstration Board. More...
Linear Technology DC2430 Demonstration Board.
DC590B USB to Serial Controller This file contains the routines to emulate the DC590B USB to Serial Converter. All commands are supported except Uxxy the Write Port D bus. Added the 'D' delay ms command. With this program, the Linduino can be used by the QuikEval program running on a PC to communicate with QuikEval compatible demo boards. The Kxy bit bang command uses the following pin mappings : 0-Linduino 2 1-Linduino 3 2-Linduino 4 3-Linduino 5 4-Linduino 6 5-Linduino 7
http://www.linear.com/demo/DC2430A
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file DC2430A.ino.
Go to the source code of this file.
Functions | |
char | get_char () |
static void | byte_to_hex (byte value) |
byte | read_hex () |
static void | setup () |
Initialize Linduino. More... | |
static void | loop () |
Repeats Linduino loop. More... | |
static void | DC2430_parallelsync_example () |
DC2430 PARALLELSYNC EXAMPLE: SOFTWARE SITE SELECTION MODE. More... | |
static void | Prog_LTC6954_parallelsync_example () |
This function programs LTC6954-2 SPI registers. More... | |
static void | Prog_LTC6951_parallelsync_example () |
Prog_LTC6951_parallelsync_example() This function programs the LTC6951 registers for ParallelSYNC mode. More... | |
static void | DC2430_testprog () |
DC2430 TEST SECTION. More... | |
static void | DC2430_test_supply () |
Function to check DC2430 voltages generated from the EEVCC and VCCIO Linduion supply voltages. More... | |
static void | DC2430_test_SYNC () |
Function to verify that the DC2430 ref to sync circtuiry is functional. More... | |
static void | DC2430_test_swmode () |
DC2430_test_swmode() - verified. More... | |
static void | DC2430_test_manualmode () |
DC2430_test_manualmode() - verified. More... | |
static int8_t | discover_demo_board_local (char *demo_name) |
Read the ID string from the EEPROM and determine if the correct board is connected. More... | |
static void | changeDC2430site (int site_select) |
Function to set DC2430 to a site based on the DC2430_testmode_ctr number. More... | |
Macros | |
#define | READ_TIMEOUT 20 |
#define | MISO_TIMEOUT 1000 |
#define | RECORDING_SIZE 50 |
Variables | |
static int | DC2430_testmode_ctr = 0 |
static int | DC2430_Bin = 1 |
static int8_t | demo_board_connected = 0 |
Demo Board Name stored in QuikEval EEPROM. More... | |
static int8_t | demo_board_connected_man = 0 |
Demo Board Name stored in QuikEval EEPROM. More... | |
const byte | off = 0 |
const byte | playback = 1 |
const byte | spi_mode = 0 |
const byte | i2c_mode = 1 |
const byte | i2c_auxiliary_mode = 2 |
char | hex_digits [16] |
const char | spi_divider = SPI_CLOCK_DIV32 |
byte | serial_mode = spi_mode |
byte | recording_mode = off |
char | id_string [51] ="USBSPI,PIC,01,01,DC,DC590,----------------------\n\0" |
char | hex_to_byte_buffer [5] |
char | byte_to_hex_buffer [3] |
char | recording_buffer [RECORDING_SIZE] |
byte | recording_index = 0 |
static int | i = 0 |
unsigned char | pseudo_reset = 0 |
|
static |
Definition at line 132 of file DC2430A.ino.
|
static |
Function to set DC2430 to a site based on the DC2430_testmode_ctr number.
Definition at line 1020 of file DC2430A.ino.
|
static |
DC2430 PARALLELSYNC EXAMPLE: SOFTWARE SITE SELECTION MODE.
Definition at line 573 of file DC2430A.ino.
|
static |
DC2430_test_manualmode() - verified.
Definition at line 945 of file DC2430A.ino.
|
static |
Function to check DC2430 voltages generated from the EEVCC and VCCIO Linduion supply voltages.
Definition at line 748 of file DC2430A.ino.
|
static |
DC2430_test_swmode() - verified.
Definition at line 842 of file DC2430A.ino.
|
static |
Function to verify that the DC2430 ref to sync circtuiry is functional.
Definition at line 803 of file DC2430A.ino.
|
static |
DC2430 TEST SECTION.
Definition at line 720 of file DC2430A.ino.
|
static |
Read the ID string from the EEPROM and determine if the correct board is connected.
Definition at line 1007 of file DC2430A.ino.
char get_char | ( | void | ) |
Definition at line 151 of file DC2430A.ino.
|
static |
|
static |
Prog_LTC6951_parallelsync_example() This function programs the LTC6951 registers for ParallelSYNC mode.
In ParallelSYNC mode: step 1) program all LTC6951 registers step 2) calibrate LTC6951 VCO The LTC6951 frequency plan in this example matches that of the LTC6951 ParallelSYNC datasheet application. Register settings in this function are identical to the LTC6951Wizard's set file, "Datasheet Typical Applications/6951_ParallelSyncw6954.6951set”
Definition at line 671 of file DC2430A.ino.
|
static |
This function programs LTC6954-2 SPI registers.
such that all 3 channels of the LTC6954-2 are set to /1. The LTC6954-2 frequency plan in this example matches that of the LTC6951 ParallelSYNC datasheet application.
Definition at line 635 of file DC2430A.ino.
byte read_hex | ( | void | ) |
Definition at line 140 of file DC2430A.ino.
|
static |
#define MISO_TIMEOUT 1000 |
Definition at line 85 of file DC2430A.ino.
#define READ_TIMEOUT 20 |
Definition at line 84 of file DC2430A.ino.
#define RECORDING_SIZE 50 |
Definition at line 94 of file DC2430A.ino.
char byte_to_hex_buffer[3] |
Definition at line 120 of file DC2430A.ino.
|
static |
Definition at line 89 of file DC2430A.ino.
|
static |
Definition at line 88 of file DC2430A.ino.
|
static |
Demo Board Name stored in QuikEval EEPROM.
Definition at line 90 of file DC2430A.ino.
|
static |
Demo Board Name stored in QuikEval EEPROM.
Definition at line 91 of file DC2430A.ino.
char hex_digits[16] |
Definition at line 104 of file DC2430A.ino.
char hex_to_byte_buffer[5] |
Definition at line 116 of file DC2430A.ino.
|
static |
Definition at line 184 of file DC2430A.ino.
const byte i2c_auxiliary_mode = 2 |
Definition at line 101 of file DC2430A.ino.
const byte i2c_mode = 1 |
Definition at line 100 of file DC2430A.ino.
char id_string[51] ="USBSPI,PIC,01,01,DC,DC590,----------------------\n\0" |
Definition at line 115 of file DC2430A.ino.
const byte off = 0 |
Definition at line 95 of file DC2430A.ino.
const byte playback = 1 |
Definition at line 96 of file DC2430A.ino.
unsigned char pseudo_reset = 0 |
Definition at line 185 of file DC2430A.ino.
char recording_buffer[RECORDING_SIZE] |
Definition at line 124 of file DC2430A.ino.
byte recording_index = 0 |
Definition at line 128 of file DC2430A.ino.
byte recording_mode = off |
Definition at line 114 of file DC2430A.ino.
byte serial_mode = spi_mode |
Definition at line 113 of file DC2430A.ino.
const char spi_divider = SPI_CLOCK_DIV32 |
Definition at line 110 of file DC2430A.ino.
const byte spi_mode = 0 |
Definition at line 99 of file DC2430A.ino.