Other Parts Discussed in Thread: CDCE6214
我烧写eeprom的代码如下
cdci6214_write_reg(0x00,0x1010);//step2. Write 1 to recal to calibrate the VCO in this operation mode
cdci6214_write_reg(0x03,page);//step3. Select the EEPROM page,send regcommit command
cdci6214_write_reg(0x0f, 0x5037);//step4. Unlock the EEPROM for write access
cdci6214_write_reg(0x03, (1<<12)|page);//step5. Start the commit operation by writing a 1 to regcommit
usleep(100000);//wait 100ms
cdci6214_write_reg(0x03, 0x4000);//step6. Force a CRC update by writing a 1 to update_crc
cdci6214_read_reg(0x09,&nvmscrc);//step7. Read back the calculated CRC in nvmlcrc
cdci6214_write_reg(0x0d,0x3f);//step8. Store the read CRC value in the EEPROM by writing 0x3F to nvm_wr_addr
cdci6214_write_reg(0x0e, nvmscrc);//step8. and then the CRC value to nvm_wr_data.
usleep(10000);//wait 10ms
but according to cdci6215 datasheet , reg 0x3F is CHX_CTRL4 , is this a mistake?
现在的现象是复位后reg07为0x0024
regs [64]= [0x1000, 0x6854, 0x0055, 0x0000, 0x00f7, 0x0008, 0x19ca, 0x0024, 0x0001, 0x9928, 0x0000, 0x0000, 0xee00, 0x003f, 0x9928, 0x5037, 0x921f, 0x26c4, 0xa001, 0x0000, 0x0001, 0x0000, 0x0000, 0x0580, 0x0601, 0x0006, 0x0e24, 0x0000, 0x0000, 0x000c, 0x5140, 0x1e72, 0x0000, 0x0007, 0x0050, 0x8000, 0x0000, 0x0006, 0x0405, 0x0851, 0x0008, 0x8000, 0x0000, 0x0006, 0x0005, 0x0851, 0x0000, 0x8000, 0x0000, 0x0006, 0x0425, 0x8861, 0x0008, 0x8000, 0x0000, 0x0000, 0x0005, 0x8851, 0x0000, 0x1061, 0x0018, 0x1500, 0x4218, 0xc210]
上面的regs是我回读eeprom的所有值,请帮忙判断问题所在