This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AMC7812B: i can read the device id correct ,but the adc is not work. how can i configure the adc registers?

Part Number: AMC7812B

i can read the amc7812b device id correctly throw i2c interface ,and  also gpio ,dac,but the adc is not work. how can i configure the adc related registers?thanks a lot for your help!!!

  • The following commands are used to enable and convert the ADC:
    1. The ADC and Reference must powered on. Enable the ADC and Reference from the POWER-DOWN REGISTER (Address 0x6B)
    2. The channels you wish to convert must be selected, at least one must be selected - ADC CHANNEL REGISTER 0, 1 (Address 0x50, 0x51)
    3. The internal reference must be connected to the ADC, the conversion mode must be selected in AMC CONFIGURATION REGISTER 0 (Register 0x4C)
    a. The ADC-REF-INT bit connects the internal reference to the ADC. If an external reference is being used this bit can be set to 0.
    b. The CMODE bit sets the conversion mode for either direct mode (one conversion per trigger) or auto (continuous conversion).
    4. The conversion must be started. This is the ICONV bit in the same AMC CONFIGURATION REGISTER 0. If you are using direct mode, then this but must be set for each conversion. If you are using auto mode then this bit can be set once and the ADC will continue to convert unless the bit is written again or the ADC channels selection change.

    Thanks,
    Paul
  • thanks a lot,Paul,

    I've checked my register configuration followed your advise ,and solved the problem mentioned above. The problem is AMC CONFIGURE REGISTER 0 configured before ADC CONFIGURE REGISTER. After the configuration sequence is changed, adc work correct. Holp this configuration method will help other engineers.

    Thanks,

    Mathow