hi, some one have library to use AD7797 in STM32F4...? i have some troubles for make some library...
We have a software driver for the AD779x family. Hope this will help. Kindly refer to the link.
AD7793 IIO Low Power Sigma-Delta ADC Linux Driver [Analog Devices Wiki]
hi, ok but i think this library is special for AD7793, i don't find how i can read temperature for my 7797..
if i can try make my library, i read data sheet, but i don't know how i call register, for example:
if i will call communication register :
on chip = ???
how i call this register? i don't find in data sheet if i call in hexa or binary... do you have the name for all registers, for i make my program?
The software driver on the link should work with the AD779x family. There is a need to change on some of the constant to make it work with the AD7797, like the Device ID for example.
After powering up the AD7793, the communication to the part should start with the communication register. This register is an 8-bit write only register. Communication to the AD7793 should start with this register to determine what will be the next operation of the part whether if it is a write or a read operation. Please refer to figure 4 for the timing details on how to write to AD7793 while Figure 3 shows when reading data from a register. The RS2, RS1, RS0 in the communication register bits are the register address of the next operation. Table 10 of the datasheet shows the address and the names of the registers.
Communication with the AD7793 uses SPI and it is through the /CS. DIN, SCLK and DOUT/RDY pins. Your microcontroller can communicate with these pins which can accept and output 1s and 0s. You may write hex or binary values in your program, as long as the microcontroller will output these values as 1s or 0s the it will have no problem communicating with AD7797.
ok, will try.
but you have some example in mbed?
i use it for programming my STM32f446...
Because it has no details on ad7797 datasheet, not to be confused with the ad7793. ad7797 want to use in preference to c with pic with ccs compiler. I think blibioteca the ad7797 in C would be correct, since ad7797EB kit is useless for programming and does not help in a direct or compiler in the microprocessor.
We usually develop a software driver only as a reference for the use of the product and that was on the link I have given. The EVB was design to evaluate the product details and features. But for newer eval boards, we have design to make it compatible with other microcontrollers.
There are some libraries on GitHub:
Search · ad779 · GitHub
Bernardo, eu olhei ad lib no github, mas esgtou com dificuldades para esse AD7797, nao sei se voce já trabalhou com ele...
nao tenho muita experiencia com ADs, e estou precisando fazer um monitor de peso, vi que esse ad seria excelente, se tiver alguma ajuda agradeço.
Retrieving data ...