STM32 Driver AD9854 Sharing_ AD9854 Constitutes a Signal Generator Circuit

AD9854 overview

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

get in touch with us
recommended articles
What Are Some Ways to Keep My Hair Really Healthy?
Use professional shampoo & conditioner. I know it may seem like a rip-off, however all the shampoos like Pantene, Garnier, etc. have a high alcohol content....since the normal pH of your hair is 4.5-5.5, things containing high amounts of alcohol throw your hair all out of whack and cause breakage, split-ends, fly-aways, etc. The reason these shampoos make your hair feel soft is because they contain high amounts of humectants, which are just a cover for how damaging they really are! Another tip is ALWAYS use a thermal protector while applying heat. Heat appliances cause tons of damage to your hair. Usually this is a cream/clear gel you apply before blow drying. Never use a flat iron on hair that is not completely dry!1. Split End Help. ( 10 Points) !!!!!!!!!!!!!!!!!!!!!!?For sure you should get a trim and maybe even cut your hair as short as you are comfortable doing it. You should for no reason straighten or dye your hair. Look for some Garnier Fructis or Pantene shampoos and conditioner for curly hair so that it extra moisturizes it and helps the split ends repair themselves. I say from experience that ppl with curly hair have really bad split ends, which is why we have special stuff in our hair products. The split ends wont magically go away in like a month or a few weeks, but you will see improvement after a while. Oh, and for sure DO NOT PICK THEM OFF!! It will just make it worse. Every two months until your hair is healthy get a trim. just maybe half an inch or an inch will be just fine. Eventually your hair will go back to normal. Good luck with that!.2. Whats the best shampoo conditioner for cheap?clever or V05 are solid inexpensive ($a million) shampoos, yet whilst it is composed of conditioner i could bypass Tresemme ($6) it does an somewhat solid interest. i take advantage of salon shampoo because of the fact i am form of a hair snob, yet I nonetheless use the cheap conditioner. Pantene is undesirable on your hair (too plenty protein and reasons alot of greater build up on the hair) so i does not bypass there. desire this permits! My hair is oily, superb, and colour-taken care of if that helps you any!3. How can I get my curly hair to be nice like Taylor Swift?Haha i have the same hair long and curly..but not pretty curly! im completely obsessed with taylor and her hair so i did so playing with it and what you really NEED to get is the conair hot sticks!! they are these little flexible curlers and they are not very expensive and i would look like a frizz ball without them!! you can like get them at walmart. anyways what i do when iwear my hair curly is like i get up and get in the shower and wash it and condition it and this may sound weird but dont use a whole lot of conditioner just enough to get it done cause it will help your hair hold the curl the just get out and towel dry your hair till it is just damp and then put a curling mouse in it and frizz serum then finish blow drying it straight! and you know have the curlers on like when your gettin in the shower and then just make sure the little light is on meaning that they are hot enough and then seperate your hair into pretty small peices (if you have really thick hair then you might need to buy two sets cause they only have 14 in them and you use small sections) and then start from the botom of your hair and role it through your hair and pin it together youll see the instructions on how to pin them together and make sure you wrap it all the way to the top of your head and leave them for like 15 or 20 minutes while your finishin gettin ready and then use like a light hairspray about 5 minutes before you take them out then your done. i know this thing was really long but its not that hard lol!!!! hope i helped good luck!!!!!!!!
How Was the First Sale of Vivo X60 Series?
Huami Technology Held a Press Conference on August 27, and Amazfit Smart Sports Watch 3 Officially A
Connect to Nonencrypted Wireless Network Using Ubuntu Commands
Is Time Travel Possible? Can We Travel Back in Time?
Which Is a Better Design to Put on a Beer Pong Table?
What Else to Do on PS3?
How to Protect Data on IOT Devices
The Chromaticity of Solar Street Lamps Is Not Bright Enough?
JDI Officially Received Apple's $200 Million Investment to Pay for the Screen
related searches
What Are Some Ways to Keep My Hair Really Healthy?
How Was the First Sale of Vivo X60 Series?
Huami Technology Held a Press Conference on August 27, and Amazfit Smart Sports Watch 3 Officially A
Connect to Nonencrypted Wireless Network Using Ubuntu Commands
Is Time Travel Possible? Can We Travel Back in Time?
Which Is a Better Design to Put on a Beer Pong Table?
What Else to Do on PS3?
How to Protect Data on IOT Devices
The Chromaticity of Solar Street Lamps Is Not Bright Enough?

Copyright © 2020 Coffee bag - Guangzhou tianci packaging industry Co,. Ltd. | Sitemap