From 0f628aecc771c7bc3afcb60491719af88b6fa4f8 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Thu, 22 Aug 2024 17:35:11 +0800 Subject: [PATCH] disable calibration and 1V ref --- fast-servo/pyfastservo/dac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast-servo/pyfastservo/dac.py b/fast-servo/pyfastservo/dac.py index 9a376c7..49319d8 100644 --- a/fast-servo/pyfastservo/dac.py +++ b/fast-servo/pyfastservo/dac.py @@ -58,7 +58,7 @@ def check_version(spi): def configure_dac(spi): power_down_reg = spi_read(spi, 0x01) spi_write(spi, 0x01, power_down_reg & ~(1 << 0)) # Clear EXTREF bit for internal reference - spi_write(spi, 0x0D, 0x00) # Set RREF to 10 kΩ for 1.0V reference + # spi_write(spi, 0x0D, 0x00) # Set RREF to 10 kΩ for 1.0V reference spi_write(spi, 0x04, 0xA0) # Enable on-chip IRSET (1.6 kΩ for 20mA output) spi_write(spi, 0x07, 0xA0) # Enable on-chip QRSET (1.6 kΩ for 20mA output) spi_write(spi, 0x05, 0x00) # Disable internal IRCML @@ -125,7 +125,7 @@ def configure_ad9117(): return False configure_dac(spi) - dac_self_calibration(spi) + # dac_self_calibration(spi) # Enable DAC outputs spi_write(spi, 0x01, spi_read(spi, 0x01) & ~((1 << 4) | (1 << 3)))