RE: Best approach to control a serial attenuator

Hi,
I am trying to control a programmable attenuator (ZX76-31R5A-SPS+) with Arduino Uno(Mega is also available).
To control the attenuator a clock, 6 data bits at a time and a latch enable signal are required(See attached for timing diagram and datasheet). Since this is neither I2C or SPI, what is the most reliable approach to implement this in Arduino?

Thank you

ZX76-31R5A-SPS+.pdf (506 KB)

Use the shiftOut function. Or drive the data, clock and latch lines manually.

EDIT: Missed the 6 bits requirement. You might still be able to use the shiftOut function. Try placing the databits in the most significant bits and clock least significant bit first.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.