1.手册上写了,使能了自动监控,在mcu读取电压的数据是不是要使能自动监控?
2. nSent = WriteReg(nDev_ID, 2, 0x01, 1, FRMWRT_SGL_R); // send sync sample command
nSent = WaitRespFrame(bFrame, 39, 0);//cell value form 16->1(value*5/65535), aux, dig temp, ang temp
使用上面两句读取数据,为什么读出来的数据都是不变了?还有哪里需要设置?
3.
nSent = WriteReg(nDev_ID, 2, 0x007FFFFFC000, 6, FRMWRT_SGL_NR); // send sync sample command with channel
nSent = WriteReg(nDev_ID, 2, 0x20, 1, FRMWRT_SGL_R); // send read sampled values command
nSent = WaitRespFrame(bFrame, 27, 0); // 15+8+2 bytes data + packet header + CRC, 0ms timeout
使用以上三条读取数据是可行的。