Go Down

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


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.


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.



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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131