AnsweredAssumed Answered

ADIS16488 SPI Write

Question asked by plasmaphase on Jan 9, 2013
Latest reply on Jan 9, 2013 by NevadaMark
Branched to a new discussion

I was able to successfully read the PROD_ID register from the ADIS16488, and now am trying to figure out writing to the 16-bit registers.  In the example & description found on page 10 of the manual for this part, it shows how to write to the PAGE_ID register, which is only 8 bits.  What I want to know is how to write to the 16-bit registers such as DEC_RATE and FNCTIO_CTRL?

 

For example, if I want to write 1023 to the DEC_RATE register, 1023 does not fit in an 8-bit data value.  So would I need to write twice, like this:

//SPI_WRITE(uint8_t address, uint8_t data);

//after switching to page 3...

SPI_WRITE(0x0C, 0x03);

SPI_WRITE(0x0D, 0xFF);

 

So in other words, it's byte addressing even though the data is 16-bits?  I've seen the Arduino example code provided in the forums, but they don't show much in regard to writing to registers, and they are rather abstract due to the nature of Arduino code. 

 

Any help would be appreciated, thanks in advance!

Outcomes