97 uint16_t output_register;
106 if (Serial.available()) {
111 Serial.println(user_command);
112 switch (user_command) {
116 Serial.println(F(
"\n\n\nLTC5566 settings:\n"));
126 byte_1 = output_register & 0xFF;
129 byte_2 = output_register >> 8;
130 Serial.println(F(
"\n\n\nMixer 1 settings:\n"));
134 Serial.println(F(
"\n\n\nMixer 2 settings:\n"));
140 Serial.println(F(
"\n\nIncorrect Option\n"));
142 Serial.println(F(
"\n*****************************************************************\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"));
149 Serial.println(F(
"*****************************************************************"));
150 Serial.println(F(
"* DC2460A Demonstration Program *"));
151 Serial.println(F(
"* *"));
152 Serial.println(F(
"* This program demonstrates how to send data to the LTC5566. *"));
153 Serial.println(F(
"*****************************************************************"));
158 Serial.println(F(
"\n1. Same settings for Channels A and B"));
159 Serial.println(F(
"2. Different settings for Channels A and B\n"));
160 Serial.print(F(
"Enter a command: "));
unsigned char user_command
uint8_t LTC5566_dupl_settings()
Function to duplicate settings for both LTC5566 channels.
Header File for Linduino Libraries and Demo Code.
static void LTC5566_print_prompt()
Prints the main menu.
Copyright 2018(c) Analog Devices, Inc.
void quikeval_SPI_init(void)
Configure the SPI port for 4Mhz SCK.
LT_SPI: Routines to communicate with ATmega328P's hardware SPI port.
static void setup()
Initialize Linduino.
uint16_t LTC5566_diff_settings()
Function to apply unique settings for each LTC5566 channel.
static void LTC5566_print_title()
Print the title block.
void LTC5566_decode_output(uint8_t output_register)
Decode the register value read from the LTC5555.
static void loop()
Repeats Linduino loop.