MAX35104 Data Communication issue witm stm32f072

Thread Starter

Rehansra

Joined Aug 23, 2023
5
Yes, Now I able to read 0x30 and also 0xb0 reg.
actually my communication wires was too long and some female jumpers was very lose. i think thats the problem.
and thank you sir, for help me to solve this issues.
hello sir,

what was the baudrate for spi communcation
 

Thread Starter

Rehansra

Joined Aug 23, 2023
5
I have configured STM32F072's SPI in mode 1 to communicate with MAX35104. I can observe and decode clock and MOSI pin on an oscilloscope, but at MISO pin the data I am getting from MAX is not decodable this is the data from reading register 0xC3 and the data pattern changes for every register. . what might be the issue help will be lot appreciated. PXL_20230822_121837317.jpg
 

du00000001

Joined Nov 10, 2020
189
Looks very much like you achieved to add the SCLK signal to the MOSI signal. Is the scope setting 5 V/Div?
I can decode the response as 1100001100000000b, but in terms of voltage levels the signal is just crap.
 

Thread Starter

Rehansra

Joined Aug 23, 2023
5
thank you very much for your reply. I actually concluded SCLK signal impacting miso and mosi lines. the issue is reduced after slowing the spi clock speed but still no response from MAX side.
 

du00000001

Joined Nov 10, 2020
189
thank you very much for your reply. I actually concluded SCLK signal impacting miso and mosi lines. the issue is reduced after slowing the spi clock speed but still no response from MAX side.
From what I've seen in the 1st image changing clock speed won't be able to change anything substantial.
You'd better provide a proper image of all 4 signals (including /SS) where voltage scaling can also be seen.
 

Thread Starter

Rehansra

Joined Aug 23, 2023
5
sorry for responding late, I was actually away from my setup. I tried removing max35104 from my board in order to analyse the SPI signal unfortunately problem still exists. I have attached signals waveform of MOSI,MISO and SS with respect to CLK. please note I am using SPI 2 of stm32f072 operating on internal 48Mhz clock and SPI prescaler 128 , CPOL = 0, CPHA = 1.
 

Attachments

Top