Go Down

Topic: Arduino Duemilanove with 8-bit atmega328 - how to read 16-BIT REGISTER CONTENTS (Read 516 times) previous topic - next topic

mmichalll

I have Arduino Duemilanove with ATmega328 chip - is 8-bit chip.
I have sensor ADIS16354  (datasheet http://www.analog.com/static/imported-files/data_sheets/ADIS16354.pdf )
has 16-bit output register contents.
On picture is SPI Sequence for Read Commands. (from datasheet)

It is possible to read the data with my Arduino?
If yes so how?
Thanks for advice.

Korman

Easy: after you received 8 bits, store the byte and read another 8 bits. If you store the second byte in the right place, you can access the resulting value directly as a 16-bit integer.

Korman

mmichalll

How do I know that I store the second bite at the right place?
Would be a simple program / code for example ?
Help anyone?

Go Up