94 uint16_t output_register;
102 if (Serial.available()) {
107 Serial.println(user_command);
108 switch (user_command){
112 Serial.println(F(
"\n\n\nLTC5556 settings:\n"));
122 byte_1 = output_register & 0xFF;
125 byte_2 = output_register >> 8;
127 Serial.println(F(
"\n\n\nLTC5556 Mixer 1 settings:\n"));
131 Serial.println(F(
"\n\n\nLTC5556 Mixer 2 settings:\n"));
137 Serial.println(F(
"\n\nIncorrect Option\n"));
139 Serial.println(F(
"\n*****************************************************************\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"));
147 Serial.println(F(
"*****************************************************************"));
148 Serial.println(F(
"* DC2693A Demonstration Program *"));
149 Serial.println(F(
"* *"));
150 Serial.println(F(
"* This program demonstrates how to send data to the LTC5556. *"));
151 Serial.println(F(
"*****************************************************************"));
157 Serial.println(F(
"\n1. Same settings for Channels 1 and 2"));
158 Serial.println(F(
"2. Different settings for Channels 1 and 2\n"));
159 Serial.print(F(
"Enter a command: "));
unsigned char user_command
uint16_t LTC5556_diff_settings()
Function to apply unique settings for each LTC5556 channel.
static void loop()
Repeats Linduino loop.
Copyright 2018(c) Analog Devices, Inc.
uint8_t LTC5556_dupl_settings()
Function to duplicate settings for both LTC5556 channels.
Header File for Linduino Libraries and Demo Code.
static void LTC5556_print_title()
Prints the title block.
void LTC5556_decode_output(uint8_t output_register)
Decode the register value read from the LTC5556.
static void setup()
Initialize Linduino.
static void LTC5556_print_prompt()
Prints the initial prompt.
void quikeval_SPI_init(void)
Configure the SPI port for 4Mhz SCK.
LT_SPI: Routines to communicate with ATmega328P's hardware SPI port.