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?
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.