From 77643909efdad21f518d9192231188325f7296b2 Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 15 Nov 2024 15:39:42 +0800 Subject: [PATCH] pyfastservo: add note for dac output override --- fast-servo/pyfastservo/dac.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fast-servo/pyfastservo/dac.py b/fast-servo/pyfastservo/dac.py index d1deed1..745781c 100644 --- a/fast-servo/pyfastservo/dac.py +++ b/fast-servo/pyfastservo/dac.py @@ -108,6 +108,9 @@ def set_dac_output(value): low_word = value & 0xFF high_word = (value >> 8) & 0x3F + # Note: DAC HIGH word and LOW word output are not updated + # at the same time. On scope, you will see more than one step + # of value changed. write_to_memory(CH0_HIGH_WORD_ADDR, high_word) write_to_memory(CH0_LOW_WORD_ADDR, low_word) write_to_memory(CH1_HIGH_WORD_ADDR, high_word)