AnsweredAssumed Answered

Help with AD5933

Question asked by Mark89 on Oct 23, 2012
Latest reply on Oct 25, 2012 by Mark89

Hello,

I have been trying to get the AD5933 to output a sinewave. I would prefer to use the

internal osc. I even tried an external oscillator without luck. If someone could look at my

registor setup and comment. Or if anyone has a code snippet in c to get the internal oscillator

running.

Thanks

Mark

 

[code]

POWER UP:
0X80 CONTROL 0XB0  'STANDBY
0X81 CONTROL 0X10  'RESET
I2C config 100khz
Device Address 0X0D
Dspic33fj256gp710a master
Ad5933 slave

 

LOAD REG:
0X82      START_FREQ 0X00 'START FREQ 1KHZ
0X83                               0X83
0X84                               0X12

0X85      FREQ_INCR 0X00 'FREQ STEP = 100HZ
0X86                            0X0D
0X87                            0X1B

0X88      INCREMENT 0X00 'STEPS = 255
0X89                            0XFF

0X8A           SETTLING 0X01  '511 CYCLES
0X8B                                 0XFF

START:
0X80 CONTROL 0XB0  'STANDBY

0X81 CONTROL 0X10  'RESET

0X80 CONTROL 0X10  'INIT START FREQ - internal osc

0X80 CONTROL 0X20  'INIT SWEEP - internal osc

READ1:
0X8F STATUS  0X04 'SWEEP COMPLETE?
YES, GOTO START
NO, CONTINUE

READ2:
0X8F STATUS  0X02 'VALID DFT?
YES, GET Re,Im data,  INCREMENT FREQ, GOTO READ1
NO, GOTO READ2

[/code]

Outcomes