User's Manual
11 / 13
www.asiatelco.com
write (fd, buf,1024);
close(fd);
ADC Interface
Spi read
Spi write
ADC read code
DAC Interface
Source code
#include <stdlib.h>
Command: system("softspicmd 13 chn value");
Explain:
chn: 0~2 0 select DAC channel A2
1 select DAC channel A1
2 select DAC channel A1&A2
value: 0~4095 0~10V
Command: system("softspicmd 15");
Explain :
Executes a software clear (all CODE and DAC registers cleared to their default values)
Command: system("softspicmd 16");
Explain :
Executes a software reset (all CODE, DAC, and control registers returned to their default values)
Command: system("softspicmd 21 value ");
Explain :