diff --git a/soc/runtime/dds.c b/soc/runtime/dds.c index d8b57953c..ad62988d5 100644 --- a/soc/runtime/dds.c +++ b/soc/runtime/dds.c @@ -15,8 +15,8 @@ #elif defined DDS_AD9914 /* Assume 16-bit bus */ -/* DAC calibration takes max. 135us as per datasheet. Take a good margin. */ -#define DURATION_DAC_CAL (30000 << RTIO_FINE_TS_WIDTH) +/* DAC calibration takes max. 1ms as per datasheet */ +#define DURATION_DAC_CAL (147000 << RTIO_FINE_TS_WIDTH) /* not counting final FUD */ #define DURATION_INIT (10*DURATION_WRITE + DURATION_DAC_CAL) #define DURATION_PROGRAM (5*DURATION_WRITE) /* not counting FUD */ diff --git a/soc/runtime/ksupport.c b/soc/runtime/ksupport.c index eb7a784b7..2331f5195 100644 --- a/soc/runtime/ksupport.c +++ b/soc/runtime/ksupport.c @@ -79,7 +79,7 @@ long long int now_init(void) if(now < 0) { rtio_init(); - now = rtio_get_counter() + (125000 << RTIO_FINE_TS_WIDTH); + now = rtio_get_counter() + (272000 << RTIO_FINE_TS_WIDTH); } return now;