mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
dds: increase DAC calibration time
This commit is contained in:
parent
136d44d9db
commit
8253739992
@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
#elif defined DDS_AD9914
|
#elif defined DDS_AD9914
|
||||||
/* Assume 16-bit bus */
|
/* Assume 16-bit bus */
|
||||||
/* DAC calibration takes max. 135us as per datasheet. Take a good margin. */
|
/* DAC calibration takes max. 1ms as per datasheet */
|
||||||
#define DURATION_DAC_CAL (30000 << RTIO_FINE_TS_WIDTH)
|
#define DURATION_DAC_CAL (147000 << RTIO_FINE_TS_WIDTH)
|
||||||
/* not counting final FUD */
|
/* not counting final FUD */
|
||||||
#define DURATION_INIT (10*DURATION_WRITE + DURATION_DAC_CAL)
|
#define DURATION_INIT (10*DURATION_WRITE + DURATION_DAC_CAL)
|
||||||
#define DURATION_PROGRAM (5*DURATION_WRITE) /* not counting FUD */
|
#define DURATION_PROGRAM (5*DURATION_WRITE) /* not counting FUD */
|
||||||
|
@ -79,7 +79,7 @@ long long int now_init(void)
|
|||||||
|
|
||||||
if(now < 0) {
|
if(now < 0) {
|
||||||
rtio_init();
|
rtio_init();
|
||||||
now = rtio_get_counter() + (125000 << RTIO_FINE_TS_WIDTH);
|
now = rtio_get_counter() + (272000 << RTIO_FINE_TS_WIDTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
return now;
|
return now;
|
||||||
|
Loading…
Reference in New Issue
Block a user