Part Number: ADS131M03
Good afternoon, everyone!
I am doing a student project where I need to get data from a 3 channel ADC ADS131M03 using an Attiny84 microcontroller.
My problem is that I can't read any data from any of the registers, and I can't even understand if the problem is in circuit design or a program code.
Please help me to figure this out.
Schematic of my device.
Attiny84 -> ADS131M03
MOSI -> DI
MISO -> DO
SCK -> SCLK
CKOUT -> CLKIN
GND -> CS
I switch the CS manually as I use the SPI bus to program the microcontroller as well
I use Arduino IDE for desing code and "Arduino as SPI" as programmer.
Also I used AVRDUDE to program fuses of Attiny84.
In my code I am trying to read all 23 registers one by one and send this data to Serial Port.
My code:
As I understand it, I need to send a 24-bit word with a 16-bit command in it.
I Programmed CKOUT Fuse of Attiny84 to set(PCINT10/INT0/OC0A/CKOUT) PB2 pin as frequency generator with 8Mhz.
I don't have an oscilloscope to check this signal quality.
Results with CS of ADC to GND: //some random values


Attiny84 datasheet: https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7701_Automotive-Microcontrollers-ATtiny24-44-84_Datasheet.pdf
ADS131M03 datasheet: https://www.ti.com/lit/ds/symlink/ads131m03.pdf?ts=1697316213844&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FADS131M03%252Fpart-details%252FADS131M03IPWR%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Docb-tistore-promo-asc_opn_en-cpc-storeic-google-wwe%2526utm_content%253DDevice%2526ds_k%253DADS131M03IPWR%2526DCM%253Dyes%2526gclid%253DCjwKCAjw-KipBhBtEiwAWjgwrMflfgr14QSMRJuGNAvVbOpBHxupMKuxAdBjheqGRYJKy1bzA7aTYxoCnooQAvD_BwE%2526gclsrc%253Daw.ds


