Let's focus on getting expected behavior out of the device using the oscilloscope, and then debug digital communications. We have to confirm the device is outputting correctly. What is your Vref and Vcc voltage levels? Vref sets the full scale range of the device, also this device outputs in straight binary. What is the DC input value you are using? Could you describe how the output is behaving. You mention that is it continously changing even though the input is stable. How big are the changes? Regarding the software, note that it is easier to read out the output bit on the rising edge of the clock, after the bit has been clocked out on the previous falling edge of the clock.
↧