LTC6947: Ultralow Noise and Spurious 0.35GHz to 6GHz FracN Synthesizer.
SPI DATA FORMAT (MSB First):
Write Sequence:
Byte #1 Byte #2
MOSI: A6 A5 A4 A3 A2 A1 A0 W D7 D6 D5 D4 D3 D2 D1 D0
MISO: X X X X X X X X X X X X X X X X
Read Sequence:
Byte #1 Byte #2
MOSI: A6 A5 A4 A3 A2 A1 A0 R X X X X X X X X
MISO: X X X X X X X X D7 D6 D5 D4 D3 D2 D1 D0
W : SPI Write (0)
R : SPI Read (1)
Ax : Address
Dx : Data Bits
X : Don't care
http://www.linear.com/product/LTC6947
http://www.linear.com/product/LTC6947#demoboards
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:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
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.
Header for LTC6947: Ultralow Noise and Spurious 0.35GHz to 6.39GHz FracN Synthesizer
Definition in file LTC6947.h.
|
uint8_t | LTC6947_read (uint8_t cs, int8_t address) |
| LTC6947 Read Single Address reads 8 bit Data field to LTC6947. More...
|
|
long | LTC6947_read_field (uint8_t cs, uint8_t address, uint8_t MSB_loc, uint8_t numbits) |
| LTC6947 Read Single Field For SPI FIELDS located in 1 or multiple address location reads specific address locations identifies and returns specific field in question can handle SPI fields in multiple addresses, if MSB bit is in the lower number address. More...
|
|
long | get_LTC6947_SPI_FIELD (uint8_t cs, uint8_t f) |
| Gets the LTC6947 SPI field value calls function LTC6947_read_field, which reads specific address locations identifies and returns specific field in question can handle SPI fields in multiple addresses, if MSB bit is in the lower number address. More...
|
|
void | LTC6947_write (uint8_t cs, uint8_t address, uint8_t Data) |
| LTC6947 Write Single Address writes 8 bit Data field to LTC6947. More...
|
|
uint8_t | LTC6947_write_field (uint8_t cs, long field_data, uint8_t address, uint8_t MSB_loc, uint8_t numbits) |
| LTC6947 Write Single Field For SPI FIELDS in 1 or multiple address locations reads specific address/field location then writes to specific field can handle SPI fields in multiple addresses, if MSB bit is in the lower number address. More...
|
|
void | set_LTC6947_SPI_FIELD (uint8_t cs, uint8_t f, long field_data) |
| Sets the LTC6947 SPI field value calls function LTC6947_read_field, which reads specific address/field location then writes to specific field can handle SPI fields in multiple addresses, if MSB bit is in the lower number address. More...
|
|
void | set_LTC6947_ALLREGS (uint8_t cs, uint8_t reg01, uint8_t reg02, uint8_t reg03, uint8_t reg04, uint8_t reg05, uint8_t reg06, uint8_t reg07, uint8_t reg08, uint8_t reg09, uint8_t reg0A, uint8_t reg0B, uint8_t reg0C, uint8_t reg0D) |
| Writes values to ALL LTC6947 RW addresses. More...
|
|
void | LTC6947_init () |
| Initializes the SPI MAP arrays The values set in initialization are used for all the LTC6947 SPI/WRITE and read functions (set_LTC6947_SPI_FIELD, get_LTC6947_SPI_FIELD, LTC6947_read, LTC6947_write, etc, etc) More...
|
|
uint8_t | get_LTC6947_REGSIZE () |
| returns # of addresses in parts register map (array size) More...
|
|
uint8_t | get_LTC6947_SPI_FIELD_NUMBITS (uint8_t f) |
| returns the number of bits for a given field name in the SPI map More...
|
|
uint8_t | get_LTC6947_SPI_FIELD_RW (uint8_t f) |
| returns if the given field name is (0)read/write or (1)read_only field More...
|
|
unsigned long | LTC6947_calc_odiv (unsigned long frf[2]) |
| calculates the output divider setting based on the frf and on board VCO frequencies of LTC6947 More...
|
|
void | LTC6947_set_frf () |
| FUNCTION: LTC6947_set_frf Calculates the integer (N), fractional (NUM) and output divider (OD) SPI values using self created 64bit math functions. More...
|
|
void | set_LTC6947_global_fref (unsigned long fref_MHz, unsigned long fref_Hz) |
| sets globals LTC6947_Fref_MHz and LTC6947_Fref_Hz More...
|
|
void | set_LTC6947_global_frf (unsigned long frf_MHz, unsigned long frf_Hz) |
| sets globals LTC6947_Frf_MHz and LTC6947_Frf_Hz More...
|
|
void | set_LTC6947_global_vcolim (unsigned long fvco_max_MHz, unsigned long fvco_max_Hz, unsigned long fvco_min_MHz, unsigned long fvco_min_Hz) |
| sets globals LTC6947_VCO_Max_Freq_MHz, LTC6947_VCO_Max_Freq_Hz, LTC6947_VCO_Min_Freq_MHz and LTC6947_VCO_Min_Freq_Hz More...
|
|
unsigned long | get_LTC6947_global_fref_MHz () |
| returns global LTC6947_Fref_MHz More...
|
|
unsigned long | get_LTC6947_global_fref_Hz () |
| returns global LTC6947_Fref_Hz More...
|
|
unsigned long | get_LTC6947_global_frf_MHz () |
| returns global LTC6947_Frf_MHz More...
|
|
unsigned long | get_LTC6947_global_frf_Hz () |
| returns global LTC6947_Frf_Hz More...
|
|
unsigned long | get_LTC6947_global_VCO_MAX_MHz () |
| returns global LTC6947_VCO_Max_Freq_MHz More...
|
|
unsigned long | get_LTC6947_global_VCO_MIN_MHz () |
| returns global LTC6947_VCO_Min_Freq_MHz More...
|
|
unsigned long | get_LTC6947_global_VCO_MAX_Hz () |
| returns global LTC6947_VCO_Max_Freq_Hz More...
|
|
unsigned long | get_LTC6947_global_VCO_MIN_Hz () |
| returns global LTC6947_VCO_Min_Freq_Hz More...
|
|
void | HZto64 (unsigned long an[], unsigned long MHzPart, unsigned long HzPart) |
| create a 64 bit Hz number from 32 bit xxxx MHz number and 32 bit yyy yyy Hz number. More...
|
|
void | init64 (unsigned long an[], unsigned long bigPart, unsigned long littlePart) |
| Creates a equivalent 64 bit number from 2 32 bit numbers. More...
|
|
void | shl64 (unsigned long an[]) |
| Single Bit shift left of equivalent 64 bit number (an[] = an[]<<1) More...
|
|
void | shl64by (unsigned long an[], uint8_t shiftnum) |
| Multi Bit shift left of equivalent 64 bit number (an[] = an[]<<shiftnum) More...
|
|
void | shr64 (unsigned long an[]) |
| Single Bit shift right of equivalent 64 bit number (an[] = an[]<<1) More...
|
|
void | shr64by (unsigned long an[], uint8_t shiftnum) |
| Multi Bit shift right of equivalent 64 bit number (an[] = an[]>>shiftnum) More...
|
|
void | add64 (unsigned long an[], unsigned long ann[]) |
| 64 bit Add ann to an (an[] = an[] + ann[]) More...
|
|
void | sub64 (unsigned long an[], unsigned long ann[]) |
| 64 bit Subtract ann from an (an[] = an[] - ann[]) More...
|
|
boolean | eq64 (unsigned long an[], unsigned long ann[]) |
| 64 bit, if an == ann, then true More...
|
|
boolean | lt64 (unsigned long an[], unsigned long ann[]) |
| 64 bit, if an < ann, then true More...
|
|
void | div64 (unsigned long num[], unsigned long den[]) |
| 64 bit Divide, num=num/div More...
|
|
void | mul64 (unsigned long an[], unsigned long ann[]) |
| 64 bit multiply, an=an*ann More...
|
|
void | prt (unsigned long an[]) |
| Prints HEX representation of 64 bit an. More...
|
|
|
#define | LTC6947_CS QUIKEVAL_CS |
| Define the SPI CS pin. More...
|
|
|
#define | LTC6947_AUTORST 1 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_BST 2 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CP 3 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPCHI 4 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPCLO 5 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPDN 6 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPINV 7 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPLE 8 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPMID 9 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPRST 10 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPUP 11 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_CPWIDE 12 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_DITHEN 13 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_FILT 14 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_INTN 15 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_LDOEN 16 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_LDOV 17 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_LKCT 18 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_LKWIN 19 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_LOCK 20 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_ND 21 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_NUM 22 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_OD 23 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_OMUTE 24 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_PART 25 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_PDALL 26 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_PDFN 27 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_PDOUT 28 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_PDPLL 29 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_POR 30 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_RD 31 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_REV 32 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_RFO 33 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_RSTFN 34 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_SEED 35 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_THI 36 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_TLO 37 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_UNLOK 38 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_x 39 |
| for spi_map array, defines location for field specific information used to create the spi map More...
|
|
#define | LTC6947_NUM_REGADDR 15 |
| Defines number of LTC6947 SPI registers, used in spi_map array. More...
|
|
#define | LTC6947_NUM_REGFIELD 39 |
| Defines number of LTC6947 SPI fields, used in spi_map array. More...
|
|
#define | ADDRx 0 |
| used for 2nd dim of 2d spi_map array More...
|
|
#define | DxMSB 1 |
| used for 2nd dim of 2d spi_map array More...
|
|
#define | NUMBITS 2 |
| used for 2nd dim of 2d spi_map array More...
|
|
#define | R_ONLY 3 |
| used for 2nd dim of 2d spi_map array More...
|
|
#define | OneMHz 1000000L |
| 1MHz in long format, used in 64 bit math More...
|
|
#define | LTC6947_MINFREQ 350 |
| LTC6947 lower freq limit. More...
|
|
#define | LTC6947_MAXFREQ 6000 |
| LTC6947 upper freq limit. More...
|
|
#define | LTC6947_MIN_REF_FREQ 10 |
| LTC6947 lower reference frequency limit. More...
|
|
#define | LTC6947_MAX_REF_FREQ 425 |
| LTC6947 upper reference frequency limit. More...
|
|