Hi i am trying to write to registers of da7212 to generate a tone but i dont hear anything . here is my code
if(DA7212_i2c_write(REG_CIF_CTRL,0x01)==NRF_SUCCESS) printf("REG_CIF_CTRL set \n"); if(DA7212_i2c_write(REG_DAI_CLK_MODE,0x01)==NRF_SUCCESS) printf("SLAVE Mode set \n");
DA7212_i2c_write(0x92U, 0x00); nrf_delay_ms(2000); DA7212_i2c_write(0x90, 0x80); DA7212_i2c_write(0x29,0xCC); DA7212_i2c_write(0x22,0x0B); DA7212_i2c_write(0x27,0x04); DA7212_i2c_write(0x2A,0x32); DA7212_i2c_write(0x4B,0x08); DA7212_i2c_write(0x4C,0x08); DA7212_i2c_write(0x47,0xCD); DA7212_i2c_write(0x95,0x36); DA7212_i2c_write(0x96,0xA5); DA7212_i2c_write(0x48,0x2D); DA7212_i2c_write(0x49,0x2D); DA7212_i2c_write(0x51,0xF1); DA7212_i2c_write(0xBB,0x3F); DA7212_i2c_write(0xB5,0x01); DA7212_i2c_write(0xB4,0x80);
Please telll me what am i doing wrong
Device:
One of the team will take a look for you... we have used the DA7212 with one of our own BLE devices, so we can check to see if we ahve a driver example available. BR JE_Dialog
thanks looking forward for it
Hi Sir,
Maybe attached code will help you with this case.
BR
Charles
它工作好谢谢