我对ADE7753做如下初始化: void ADE7753_init() { spiwriteint(REG_MODE,Reset_CONFIG); delay_us(60000); spiwriteint(REG_MODE,MODE_CONFIG); spiwriteint(REG_LINECYC,LINECYC_CONFIG); spiwritechar(REG_GAIN,GAIN_CONFIG); spireadlong(REG_RAENERGY); spiwriteint(REG_IRMSOS, IRMSOS_CONFIG); spiwriteint(REG_APOS, APOS_CONFIG); spiwritechar(REG_CH1OS,CH1OS_CONFIG); spiwritechar(REG_TMODE,0xcc); } 然后读TMODE寄存器temp = spireadchar(REG_TMODE);但是读出来的一直是零,问题出在那呢?(REF = 2.43左右,其他输出为低电平)在做项目的,急!谢谢 |
更多回帖