AnsweredAssumed Answered

AD7175-2 CHANEL REGISTER AIN VALUES

Question asked by Lex on Feb 25, 2016
Latest reply on Feb 29, 2016 by rcalam

Dear.What REF- value is true 0xA or 0x16? In datasheey this value 0x16 but in simulator 0xA.

My BF for this register

 

typedef  struct _CHANNEL_REGISTER_BITS

{

    uint16_t  AINNEG:5;

    uint16_t  AINPOS:5;

    uint16_t  _RESERVED:2;

    uint16_t  SETUP_SEL:2;

    uint16_t  __RESERVED:1;

    uint16_t  CH_EN:1;

}CHANNEL_REGISTER_BITS;

and two variants enums

1)By Datasheet

 

typedef enum AIN

{

    AIN_AIN0                                                      = 0x0,

    AIN_AIN1                                                      = 0x1,

    AIN_AIN2                                                      = 0x2,

    AIN_AIN3                                                      = 0x3,

    AIN_AIN4                                                      = 0x4,

    AIN_TEMP_PLUS                                          = 0x11,

    AIN_TEMP_MINUS                                         = 0x12,

    AIN_AVDD1_MINSUS_AVSS_DIV_5_MINUS    = 0x13,

    AIN_AVDD1_MINSUS_AVSS_DIV_5_PLUS      = 0x14,

    AIN_REF_MINUS                                             = 0x15,

    AIN_REF_PLUS                                               = 0x16,

}AIN;

 

 

2)By in Simulator

 

typedef enum AIN

{

    AIN_AIN0                                                      = 0x0,

    AIN_AIN1                                                      = 0x1,

    AIN_AIN2                                                      = 0x2,

    AIN_AIN3                                                      = 0x3,

    AIN_AIN4                                                      = 0x4,

    AIN_TEMP_PLUS                                          = 0x5,

    AIN_TEMP_MINUS                                        = 0x6,

    AIN_AVDD1_MINSUS_AVSS_DIV_5_MINUS    = 0x7,

    AIN_AVDD1_MINSUS_AVSS_DIV_5_PLUS        = 0x8,

    AIN_REF_MINUS                                                 = 0xA,

    AIN_REF_PLUS                                                  = 0x9,

}AIN;

 

 

 

AIN_SIM.PNG

 

AIN_POSS.PNG

Outcomes