初始如下
void AFE4404_Reg_Init(void)
{
// usart_tx_dma_send(test_uart,3);
//AFE4404_Reg_Write(0x00, 0x000000); /*CONTROL0*/
// usart_tx_dma_send(test_uart,2);
AFE4404_Reg_Write(0x01, 0x000320); /*LED2STC*/
AFE4404_Reg_Write(0x02, 0x000F9F); /*LED2ENDC*/
AFE4404_Reg_Write(0x03, 0x001F42); /*LED1LEDSTC*/
AFE4404_Reg_Write(0x04, 0x002EE1); /*LED1LEDENDC*/
AFE4404_Reg_Write(0x05, 0x0012C1); /*ALED2STC*/
AFE4404_Reg_Write(0x06, 0x001F40); /*ALED2ENDC*/
AFE4404_Reg_Write(0x07, 0x002262); /*LED1STC*/
AFE4404_Reg_Write(0x08, 0x002EE1); /*LED1ENDC*/
AFE4404_Reg_Write(0x09, 0x000000); /*LED2LEDSTC*/
AFE4404_Reg_Write(0x0A, 0x000F9F); /*LED2LEDENDC*/
AFE4404_Reg_Write(0x0B, 0x003203); /*ALED1STC*/
AFE4404_Reg_Write(0x0C, 0x003E82); /*ALED1ENDC*/
AFE4404_Reg_Write(0x0D, 0x000FA9); /*LED2CONVST*/
AFE4404_Reg_Write(0x0E, 0x001F47); /*LED2CONVEND*/
AFE4404_Reg_Write(0x0F, 0x001F51); /*ALED2CONVST*/
AFE4404_Reg_Write(0x10, 0x002EEF); /*ALED2CONVEND*/
AFE4404_Reg_Write(0x11, 0x002EF9); /*LED1CONVST*/
AFE4404_Reg_Write(0x12, 0x003E97); /*LED1CONVEND*/
AFE4404_Reg_Write(0x13, 0x003EA1); /*ALED1CONVST*/
AFE4404_Reg_Write(0x14, 0x004E3F); /*ALED1CONVEND*/
AFE4404_Reg_Write(0x15, 0x000FA1); /*ADCRSTSTCT0*/
AFE4404_Reg_Write(0x16, 0x000FA7); /*ADCRSTENDCT0*/
AFE4404_Reg_Write(0x17, 0x001F49); /*ADCRSTSTCT1*/
AFE4404_Reg_Write(0x18, 0x001F4F); /*ADCRSTENDCT1*/
AFE4404_Reg_Write(0x19, 0x002EF1); /*ADCRSTSTCT2*/
AFE4404_Reg_Write(0x1A, 0x002EF7); /*ADCRSTENDCT2*/
AFE4404_Reg_Write(0x1B, 0x003E99); /*ADCRSTSTCT3*/
AFE4404_Reg_Write(0x1C, 0x003E9F); /*ADCRSTENDCT3*/
AFE4404_Reg_Write(0x1D, 0x009C3F); /*PRPCOUNT*/
AFE4404_Reg_Write(0x1E, 0x000103); /*CONTROL1*/
AFE4404_Reg_Write(0x20, 0x008003); /*TIAGAIN*/
AFE4404_Reg_Write(0x21, 0x000003); /*TIA_AMB_GAIN*/
AFE4404_Reg_Write(0x22, 0x0030CF); /*LEDCNTRL*/
AFE4404_Reg_Write(0x23, 0x124218); /*CONTROL2*/
AFE4404_Reg_Write(0x29, 0x000000); /*CLKDIV1*/
AFE4404_Reg_Write(0x2A, 0x000000); /*LED2VAL*/
AFE4404_Reg_Write(0x2B, 0x000000); /*ALED2VAL*/
AFE4404_Reg_Write(0x2C, 0x000000); /*LED1VAL*/
AFE4404_Reg_Write(0x2D, 0x000000); /*ALED1VAL*/
AFE4404_Reg_Write(0x2E, 0x000000); /*LED2-ALED2VAL*/
AFE4404_Reg_Write(0x2F, 0x000000); /*LED1-ALED1VAL*/
AFE4404_Reg_Write(0x31, 0x000020); /*CONTROL3*/
AFE4404_Reg_Write(0x32, 0x00515F); /*PDNCYCLESTC*/
AFE4404_Reg_Write(0x33, 0x00991F); /*PDNCYCLEENDC*/
AFE4404_Reg_Write(0x34, 0x000000); /*PROG_TG_STC*/
AFE4404_Reg_Write(0x35, 0x000000); /*PROG_TG_ENDC*/
AFE4404_Reg_Write(0x36, 0x000FA1); /*LED3LEDSTC*/
AFE4404_Reg_Write(0x37, 0x001F40); /*LED3LEDENDC*/
AFE4404_Reg_Write(0x39, 0x000000); /*CLKDIV2*/
AFE4404_Reg_Write(0x3A, 0x000000); /*OFFDAC*/
//AFE4404_Enable_Read();
AFE4404_Reg_Write(0x00, 0x000001);
}
主程序里一直读0x2A,0x2B,0x2C寄存器的值,始终是00 00 00 00 1F 00 00 00 0A,灯也不亮,请问是读之前还要有什么操作吗