Hi Team,
My customer now use AMC6821.
At present, in the process of verifying the function of AMC6821, in DCY mode, writing to the 0X22 register fails. After writing, it is read. The register value is always 0x55 (default). The clk configuration is 100K. Look through the oscilloscope, write and read The output waveforms are correct, other registers can be written correctly.
Here are the information during debug.
[6821]: before write AMC6821_REG_ADDR_CFG_REG1 = 0x51,AMC6821_REG_ADDR_CFG_REG2 =0x5,err=0x0
[6821]: before write AMC6821_REG_ADDR_CFG_REG3 = 0x3,AMC6821_REG_ADDR_CFG_REG4 =0x88,err=0x0
[6821]:before write AMC6821_REG_ADDR_PWM_CTRL_DCY = 0x55,AMC6821_REG_ADDR_CFG_REG4 =0x88 err=0x0
[6821]:after write AMC6821_REG_ADDR_PWM_CTRL_DCY = 0x55,AMC6821_REG_ADDR_CFG_REG4 =0x88 err=0x0
[6821]: after write AMC6821_REG_ADDR_CFG_REG1 = 0x11,AMC6821_REG_ADDR_CFG_REG2 =0x5,err=0x0
[6821]: after write AMC6821_REG_ADDR_CFG_REG3 = 0x3,AMC6821_REG_ADDR_CFG_REG4 =0x88,err=0x0