2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 12:48:26 +08:00

ad53xx: Avoid sporadic RTIOUnderflow in init()

I observed sporadic RTIO underflows on Kasli before, by ~2.5 µs,
so 5 µs extra slack should be plenty. No underflows since.
This commit is contained in:
David Nadlinger 2018-07-28 23:45:48 +01:00
parent c00eb181fc
commit 6b89106578

View File

@ -171,7 +171,7 @@ class AD53xx:
ctrl = self.read_reg(channel=0, op=AD53XX_READ_CONTROL)
if ctrl & 0b10000:
raise ValueError("DAC over temperature")
delay(10*us)
delay(15*us)
self.bus.write( # enable power and overtemperature shutdown
(AD53XX_CMD_SPECIAL | AD53XX_SPECIAL_CONTROL | 0b0010) << 8)
if not blind: