Fix ad9910 ram mode asf scale error

RAM mode amplitude to ASF conversion should be << 18 rather than << 16
This commit is contained in:
Tim Ballance 2019-10-04 10:23:03 +01:00 committed by Robert Jördens
parent 6aa68e1715
commit 448080e71d

View File

@ -588,7 +588,7 @@ class AD9910:
Suitable for :meth:`write_ram`.
"""
for i in range(len(ram)):
ram[i] = self.amplitude_to_asf(amplitude[i]) << 16
ram[i] = self.amplitude_to_asf(amplitude[i]) << 18
@portable(flags={"fast-math"})
def turns_amplitude_to_ram(self, turns, amplitude, ram):