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
  • By bricked I mean it no longer provides me the XYZ or temerature values. My question, however,is about how to restore a unit back to factory defaults.

    I have three units for evaluation. The first unit was working fine until I tested

    //x9C0C) Extended capture mode
    //  writeCommand[0] = 0x9C;
    //  writeCommand[1] = 0x0C;
    //  wiringPiSPIDataRW (ce, writeCommand, 2); 

    After this it does not return capture values correctly. I think this is due to me setting it up wrong. I have swapped out units and put that one aside. Rather than investigate the issue, it would be nice to be able to send a command and start from factory default.

    So my question is How can I restore a unit back to factory default. I will be changing several registers and will want to revert back to the original setup. Is there a simple command to do this?

    Or do I have to store all the various register settings and restore them one by one?

Reply
  • By bricked I mean it no longer provides me the XYZ or temerature values. My question, however,is about how to restore a unit back to factory defaults.

    I have three units for evaluation. The first unit was working fine until I tested

    //x9C0C) Extended capture mode
    //  writeCommand[0] = 0x9C;
    //  writeCommand[1] = 0x0C;
    //  wiringPiSPIDataRW (ce, writeCommand, 2); 

    After this it does not return capture values correctly. I think this is due to me setting it up wrong. I have swapped out units and put that one aside. Rather than investigate the issue, it would be nice to be able to send a command and start from factory default.

    So my question is How can I restore a unit back to factory default. I will be changing several registers and will want to revert back to the original setup. Is there a simple command to do this?

    Or do I have to store all the various register settings and restore them one by one?

Children
No Data