AD9854 digital synthesizer is a highly integrated device. It adopts advanced DDS technology and integrates two high-speed and high-performance orthogonal D / A converters. It can output I and Q synthetic signals through digital programming. Driven by the high stability clock, AD9854 will generate a highly stable sine and cosine signal with programmable frequency, phase and amplitude, which can be used as local oscillator for communication, radar and so on. The DDS core of AD9854 has 48 bit frequency resolution (the frequency resolution can reach 1uhz under 300m system clock). The output 17 bit phase truncation ensures a good spurious free dynamic range index. The AD9854 allows the output signal frequency to be up to 150MHz, while the digital modulation output frequency can be up to 100MHz. Sine wave is converted into square wave output through internal high-speed comparator, which can be used as a convenient clock generator.
Advantages and characteristics of AD9854
00mhz internal clock rate
FSK, BPSK, PSK, LFM, am operation
Two integrated 12 bit analog-to-digital converters (DACS)
Ultra high speed comparator, RMS jitter: 3ps
Excellent dynamic performance: 80dbsfdr (100MHz ± 1mhzout)
four à To 20 à Programmable reference clock multiplier
Two 48 bit programmable frequency registers
Two 14 bit programmable phase offset registers
12 bit programmable amplitude modulation and switch output form keying function
Single pin FSK and BPSK data interface
PSK function is provided through input / output interface
Linear or Nonlinear FM linear frequency modulation function, with single pin frequency holding function
Signal generator circuit composed of AD9854
The keyboard is equipped with 16 keys, which is composed of four row lines P1.0 p1.3 and four column lines P1.4 P1.7. It includes number keys, unit keys and function keys, which are used to control the frequency, amplitude and function of the required signal. Finally, the output signal frequency, amplitude and other information are displayed through the LCD. The display part adopts gxm1602nsl LCD module of Guoxian company, and its core is HD44780. The data transmission with W78E58 adopts 8-bit parallel transmission, which can display two lines of 32 dot matrix characters in total. HD44780 supports user-defined characters, so it can display Chinese and digital information such as frequency, amplitude and waveform through programming. The communication interface (RS232) is also used to connect with PC. the control command of PC can interact with W78E58 through TXD (pin10) and RXD (pin11) to control the output of signal source.
STM32 driver AD9854 sharing
#include ï¼stm32f10x_ lib.hã
#include âsys.hâ
#include âdelay.hâ
#define AD9854_ DATA GPIOC-ãODR
#define AD9854_ ADDR GPIOC-ãODR
#define ad9854_ reset PBoutï¼12ï¼
#define ad9854_ rd PBoutï¼13ï¼
#define ad9854_ wr PBoutï¼14ï¼
#define ad9854_ updata PBoutï¼15ï¼
unsigned char ControlRegister[]=0x14ï¼0x4fï¼0x00ï¼0x60; // AD9852 initial value of control register, mode 0
unsigned char FTW[]=0x00ï¼0x00ï¼0x37ï¼0xec; // Frequency tuning word 1 outputs the FTW value corresponding to the frequency after frequency doubling 300MHz
unsigned char PAR[]=0x00ï¼0x00; // Phase Adjust Register 1
unsigned char OSK[]=0x0aï¼0xff; // Output shaped keying multiplierï¼ 650mv
voidsingle_ waveï¼unsigned long intfreï¼;
void Init_ AD9854ï¼voidï¼;
void AD9854_ Set_ Mode0ï¼voidï¼;
void AD9852_ Sendï¼unsigned char addrï¼unsigned char dataï¼;
voidchange_ frequencyï¼unsigned long intfre_tempï¼; voidInit_ Portï¼voidï¼;
int mainï¼ void ï¼
Stm32_clock_init (9); / / 9 octave
Delay_init (72); / / 72m crystal oscillator time delay
delay_msï¼200ï¼;
Init_Portï¼ï¼;
Init_AD9854ï¼ï¼;
single_waveï¼1000000ï¼;
whileï¼1ï¼;
voidInit_ Portï¼voidï¼
RCC-ãAPB2ENR |= 1ï¼ï¼3 ;
GPIOB-ãCRH &= 0x0000ffff ;
GPIOB-ãCRH |= 0x33330000 ;
GPIOB-ãODR |= 0xf000 ;
RCC-ãAPB2ENR |= 1ï¼ï¼4 ;
GPIOC-ãCRL &= 0x00000000 ;
GPIOC-ãCRL |= 0x33333333 ;
GPIOC-ãCRH &= 0x00000000 ;
GPIOC-ãCRH |= 0x33333333 ;
GPIOC-ãODR |= 0xffff ;
void AD9852_ Send (unsigned char addr, unsigned char data) / / according to the parallel input timing
ad9854_wr = 1; // AD9854_WR_SET;
AD9854_ADDR &= 0x00ff|addrï¼ï¼8;
AD9854_ADDR |= 0xff00&addrï¼ï¼8;
ad9854_wr = 1; // AD9854_WR_SET;
AD9854_DATA &= 0xff00|data;
AD9854_DATA |= 0x00ff&data;
ad9854_wr = 0; // AD9854_WR_CLR; ad9854_wr = 1; // AD9854_WR_SET; ad9854_updata = 1; //
AD9854_UPDATA_SET;
ad9854_updata = 0; //
AD9854_UPDATA_CLR;
void Init_ AD9854ï¼voidï¼
unsigned char addr;
unsigned char i;
ad9854_reset = 0 ; // AD9854_RESET_CLR;
ad9854_wr = 1 ; // AD9854_WR_SET; ad9854_rd = 0 ; // AD9854_RD_CLR; ad9854_updata = 0 ; // AD9854_UPDATA_CLR;
addr = 0x1d;
forï¼i=4;iã0;i--ï¼
AD9852_Sendï¼addrï¼ControlRegisterï¼»4-iï¼½ï¼;
addr;
void AD9854_ Set_ Mode0 (void) / / mode 0 setting
unsigned char addr;
unsigned char counter;
For (addr = 0x00, counter = 2; counter --) / / set phase adjust register 1
AD9852_Sendï¼addrï¼PARï¼»2-counterï¼½ï¼;
addr;
For (addr = 0x04, counter = 4; counter --) / / set frequency tuning word 1
AD9852_Sendï¼addrï¼FTWï¼»4-counterï¼½ï¼;
addr;
For (addr = 0x21, counter = 2; counter --) / / set output shaped keying multiplier
AD9852_Sendï¼addrï¼OSKï¼»2-counterï¼½ï¼;
addr;
voidsingle_ waveï¼unsigned long intfreï¼
unsigned char addrï¼i;
unsigned long intff;
unsigned char *p;
ff=ï¼unsigned long intï¼ï¼4294967296*fre/300000000ï¼; p=ï¼unsigned char*ï¼&ff;
For (addr = 0x04, I = 0; I
Copyright © 2020 Coffee bag - Guangzhou tianci packaging industry Co,. Ltd. | Sitemap
{"site":{"site_id":2867,"site_type":1,"site_domain":"tiancipackaging.com","domain_mode":2,"original_domain":"tiancipackaging.com","language_code":"en","is_init_domain":0,"is_shop":false,"is_ssl":1,"lang_prefix":"/","animate_name":"none"},"page":{"page_id":55121,"page_type":"ai_article_detail","page_code":423,"page_url":"/ai-article/stm32-driver-ad9854-sharing_-ad9854-constitutes-a-signal-generator-circuit.html","page_source":"","allowAnimat":0,"content_id":5799,"content_type":5,"detail_thumb":"","detail_title":"STM32 Driver AD9854 Sharing_ AD9854 Constitutes a Signal Generator Circuit","moq":1},"translateList":{"A new item has been added to your Shopping Cart":"A new item has been added to your Shopping Cart","Account is not exists":"Account is not exists","Add a review on the product":"Add a review on the product","Add to":"Add to","Add to Cart":"add to cart","all":"all","All Orders":"All Orders","Already commented":"Already commented","Are you sure you want to delete it?":"Are you sure you want to delete it?","Are you sure to delete the selected items?":"Are you sure to delete the selected items?","Awaiting Payment":"Awaiting Payment","Awaiting Shipment":"Awaiting Shipment","account security":"account security","address book":"address book","Buy":"Buy","Buy Now":"Buy Now","Cancel":"cancel","Clear":"Clear","Clear Search":"Clear Search","Confirm":"Confirm","Choose a country":"Choose a country","Choose Coupon":"Choose Coupon","commodity payment":"commodity payment","Completed":"Completed","Condition not met":"Condition not met","Confirm password is inconsistent with new password":"confirm password is inconsistent with new password","Congratulations":"Congratulations","Congratulations! You are got a coupon.":"Congratulations! You are got a coupon.","Congratulations! You are got all coupons.":"Congratulations! You are got all coupons.","Continue Shopping":"Continue Shopping","Copy the code and use it directly in the shopping cart.":"Copy the code and use it directly in the shopping cart.","Coupon List":"Coupon list","Country":"Country","Design customization":"Design customization","Do not use any discount":"Do not use any discount","Earliest":"Earliest","email":"email","email format does not match":"email format does not match","Estimated Delivery Time":"Estimated Delivery Time","expired":"expired","Find Parts":"Find Parts","Free":"Free","Free Quote & Information Request":"Free Quote & Information Request","Free Shipping":"Free Shipping","for order over":"for order over","Get":"Get","Get coupons":"Get coupons","Get discount":"Get discount","Get it":"Get it","Get it after logging in and use it in the shopping cart.":"Get it after logging in and use it in the shopping cart.","Go to Page":"Go to Page","Highest Price":"Highest Price","Hot Sale":"Hot Sale","home":"home","Incorrect form format":"Incorrect form format","inquiry":"inquiry","Loading":"Loading","Lowest Price":"Lowest Price","Match Product":"Match Product","Merchant Free Shipping":"Merchant Free Shipping","Most Popular":"Most Popular","my account":"my account","my coupons":"my coupons","my inquiry":"my inquiry","my orders":"my orders","my reviews":"my reviews","my wishlist":"my wishlist","name":"name","Newest":"Newest","No Quotation":"No Quotation","No time limit":"No time limit","Not deleted":"Not deleted","not valid yet":"not valid yet","Off":"Off","Offers and Discounts":"Offers and Discounts","ok":"ok","optional":"optional","Order over":"Order over","order notes":"order notes","Password contains at least numbers and letters length should be 6-20":"password contains at least numbers and letters length should be 6-20","Password is invalid":"Password is invalid","Password length should be 6-20":"Password length should be 6-20","Paypal":"Paypal","paypal payment":"paypal payment","personal info":"personal info","Please click ’click to continue’ to retry.":"Please click \"click to continue\" to retry.","Please enter a valid email address":"Please enter a valid email address","Please enter the verification code":"Please enter the verification code","Please login in first":"Please login in first","Please select attribute":"Please select attribute","Please select country/region":"Please select country/region","Please select superior":"Please select superior","Please select the number of ratings.":"Please select the number of ratings.","read more":"read more","Region":"Region","Register Success":"Register Success","Sale ends in":"Sale ends in","Save in wishlist":"Save in wishlist","Search":"Search","Shipping":"Shipping","Shipping Address":"shipping address","shipment successful":"shipment successful","Size guide":"Size guide","Small Text":"Small Text","Small Title":"Small Title","Sort By":"Sort By","State/Province/Territory":"State/Province/Territory","Successfully delete":"Successfully delete","Successfully save":"Successfully save","The coupon code has been copied and used in the shopping cart.":"The coupon code has been copied and used in the shopping cart.","The subscription is successful, thank you for your participation":"The subscription is successful, thank you for your participation","The user center is out of service. Please contact customer service":"The user center is out of service. Please contact customer service","This is Text":"This is Text","This is title":"This is title","This transaction has failed.":"This transaction has failed.","Time to shop":"Time to shop","To be commented":"To be commented","Total":"Total","the content can not be blank":"the content can not be blank","Update password success":"Update password success","Upload Image":"Upload Image","Upload up to 6 pictures":"Upload up to 6 pictures","uploading":"uploading","used":"used","user center":"user center","Validity period":"Validity period","valid now":"valid now","View Cart & Checkout":"View Cart & Checkout","Welcome to the website":"Welcome to the website","Western Union":"Western Union","Write a Review":"Write a Review","You are got a coupon.":"You are got a coupon.","You haven’t chosen an address yet":"You haven't chosen an address yet","You haven’t selected a product yet":"You haven't selected a product yet","Your rating":"Your rating","Your review":"Your review","Your shipping address error":"Your shipping address error"}}