Go Down

Topic: Need help for reading data from ade7753 by using arduino uno (Read 9579 times) previous topic - next topic

CrossRoads

Datasheet says
CLKIN = 3.579545 MHz

Default SPI click speed is 4 MHz.
Looks like you're doing your own thing instead of using the SPI library.
What have you done to slow the SPI clock to 2 MHz?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

AA_KHAN

please kook at this section  not shure whether it works or not but i got data from ic
Code: [Select]
digitalWrite(SLAVESELECT,HIGH); //disable device
  SPCR = (1<<SPE)|(1<<MSTR)|(1<<CPHA)|(1<<SPR1)|(1<<SPR0);
  SPSR = (0<<SPI2X);// this line
  clr=SPSR;

AA_KHAN

hi cross roads please hekp me how to write on the chip if i use default library not able to know why it not gives the actual results

CrossRoads

Like I said earlier, the datasheet is pretty long and contains things gains & calibrations & things that need to be set up. Read the datasheet & understand those. I have a day job & several paid projects going on so I don't really have time to do that for you.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up