Page 1 of 1

manage 32 bits

Posted: Fri Aug 16, 2019 12:16 am
by maxtisc
hello everybody,
I need an advice for an application, from a sensor with SPI output I have to read 4 registers in 32 bits, from which I then have to get measures and alarms of operation, which is the correct approach to manage 32 bits?
use array? circular buffer? or other?
Thanks for your help

Re: manage 32 bits

Posted: Fri Aug 16, 2019 8:09 am
by medelec35
Hi maxtisc,
Attached is a Flowcode 8 macro that reads 32bits (4 lots of 8 bit registers) of FT810.
I believe your device would be read similar to FT810 as that too has only 8 bit words.

Re: manage 32 bits

Posted: Fri Aug 16, 2019 9:43 am
by maxtisc
Hi Martin
thank you very much for your answer, I uploaded the file, it seems very complicated to me, I ask you if you can explain the various steps to better understand how the macro works.
thank you

Re: manage 32 bits

Posted: Fri Aug 16, 2019 1:17 pm
by medelec35
Hi maxtisc,
it was Ben Who created the macro, so I will see it I can help.
That was just an example.
What is the address you need to read from?

Re: manage 32 bits

Posted: Fri Aug 16, 2019 4:14 pm
by maxtisc
Hi Martin
thanks for your interest, attached the table for reading the registers, while I try to do something
thank's for your job

Re: manage 32 bits

Posted: Sat Aug 17, 2019 2:33 pm
by medelec35
Hi maxtisc,
It would be more helpful If i know what the component is so I can access the full datasheet.

Re: manage 32 bits

Posted: Wed Aug 21, 2019 10:13 am
by maxtisc
Hi Martin
excuse if I answer only now, attached the complete datasheet
thanks