AD7606 Library for mbed
You are viewing an older revision! See the latest version
Homepage
This is my first attempt to develop a library to control an Analog Devices' AD7606BSTZ (8-channels, 16-bits, 200 kHz simultaneous sampling ADC) connected to an mbed enabled processor via an SPI port.
I need to use this ADC in an applications requiring many simultaneous sampling analog input channels.
Until now I have tested it on a FRDM-KL25Z and FRDM-K64F using this breakout board from ARMFLY, a Shenzhen-based Chinese Company, that I found on Aliexpress:
It works well, at least for my needs.
Some important notes: - The AD7606 on the breakout board comes enabled to work in parallel mode, that is to tranfer the conversion results on a 8- or 16-bits wide data bus; to enable the SPI mode, it is mandatory to remove resistor R2 (10 kohm) and to solder it in place of R1.
- as per the suggestions on the AD7606 data-sheet, when using the SPI connection, DB7 assumes the function of DOUTA and DB8 assumes the function of DOUTB; all remaining lines of parallel data bus should be connected to ground;
- my library uses only DOUTA (DB7) to shift-out the conversion results of all channels;
- the 8 T/H (track and hold) devices in the AD7606BSTZ are divided in 2 groups of 4; each group is controlled by a CONVST line; I connected the two lines together to trigger the hold phase at the same time for all 8 T/H.