Hello,
I am working with the HMC542B digital attenuator. I use STM32 MCU with SPI (Mode 0, CPOL=0, CPHA=0). On my logic analyzer, the SPI frame looks correct (8 bits, MSB first). However, the HMC542B does not change attenuation after SPI transfer.
-
RESET pin is tied high after initial low pulse.
-
LE pin is toggled after each frame.
-
I tested sending
0x00,0x3F, etc. but the attenuation stays the same. -
Supply is correct (per datasheet).
Questions:
-
Why does the HMC542B ignore the SPI frames even though the logic analyzer shows proper data?
-
Does the data need to be bit-reversed or complemented before shifting in?
-
Could you please provide a minimal working SPI example code for HMC542B (e.g., STM32 C or Arduino)?
Thank you.
