root@ARM40:~# ./test_ad7689
in0 get = 3d49
in1 get = 3dc9
in2 get = 3e49
in3 get = 3ec9
in4 get = 3f49
in5 get = 3fc9
in6 get = 3c49
in7 get = 3cc9
..... // 会循环打印
printf("in%d get = %x \n",i,data);将交叉编译得到的 test_ad7689 文件拷贝到ARM40-A5板中,执行程序:
root@ARM40:~# ./ad7689for
in0 get = 0
in1 get = 0
in2 get = 0
in3 get = 0
in4 get = 0
in5 get = 0
in6 get = 0
in7 get = 3fff ..... // 会循环打印
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |