Post Go back to editing

How to reset my ADIS16223 back to factory settings

I have bricked one of my ADIS16223 when I was trying out new settings.

Is there a byte sequence I can send to restore the unit back to factory settings?

 

I am familiar with sending commands like:

#define d_FLASH_CNT 0x00

#define d_CAPT_SUPPLY 0x0A

#define d_CAPT_TEMP 0x0C

#define d_PROD_ID 0x56

#define d_SERIAL_NUM 0x58

#define d_CAPT_PEAKX 0x0E

#define d_CAPT_PEAKY 0x10

#define d_CAPT_PEAKZ 0x12

#define d_CAPT_PNTR  0x1A

#define d_DIAG_STAT  0x3C

I send these using the following

  writeCommand[0] = Command;   //Command = d_PROD_ID, or d_CAPT_PEAKX or ...

  writeCommand[1] = 0x00;

  wiringPiSPIDataRW (ce, writeCommand, 2);

Parents
  • Agreed standard capture works. I am investigation different settings and I was trying out extended mode when it stopped working, but I am back to standard mode and it is working fine now. What’s changed is my software so I must have fixed an issue. Probably to do with timing. I request capture and wait 30ms. I then check DIAG_STAT to see if capture complete. I still had an Issue in reading, because I did not provide enough micro-seconds between each XYZ read request. This is fixed but it may have caused me to think the unit was not working. Alternatively I could have set registers wrongly and just the power down and back on sorted an issue.

Reply
  • Agreed standard capture works. I am investigation different settings and I was trying out extended mode when it stopped working, but I am back to standard mode and it is working fine now. What’s changed is my software so I must have fixed an issue. Probably to do with timing. I request capture and wait 30ms. I then check DIAG_STAT to see if capture complete. I still had an Issue in reading, because I did not provide enough micro-seconds between each XYZ read request. This is fixed but it may have caused me to think the unit was not working. Alternatively I could have set registers wrongly and just the power down and back on sorted an issue.

Children
No Data