Do you have any reference code for managing the SPI interface on the ADIS16210?
Please see the file attachment, ADIS16210_ADuC702x_Demo_Code.zip, which contains the project files for using an ADUC7026 (development kit) to manage the SPI interface on the ADIS16210. This code reads all three incline output registers at a rate of 1 SPS and then writes them to a UART. These values can be observed on a PC, using hyperterminal. In addition, the code programs the X- and Y-axis alarms to trip when their angles exceed 5 degrees. When this happens, the LED on the ADIS16210/PCB illuminates to identify the "alarm" condtion of >5 degrees of tilt. For those who are not using the ADUC7026 processor in their system, you can find embedded C code, which may provide a good starting point for your SPI sub-routine.
Thank you for your useful content!
I just added H/W connection information from your source code.
GPIO port 1 pins are used as SPI configuration.
DIO1 is P3.0 pin, DIO2 is P3.1 pin.
(main.c line 311, DIO0 is P3.0 but I suppose this is typo, isn't it?)
Thank you for this feedback. Yes, I believe that you are correct. The reference to DIO0 should be DIO1. Thank you for sharing this.
Retrieving data ...