8 Replies Latest reply on Aug 13, 2015 1:06 AM by user_279968365

    Problems setting VDAC output value

    user_279968365

      Dear All:

         

      I am working a new design with two DACs (VDAC_1 and VDAC_2) . I attached some pictures describing the DAC configuration and PSOC system configuration. All the power for PSOC5 chip are 5V.

         

      I am trying to configure the output to the maximun value of 4.080V but I only get 1.024V. The piece of code for set this value is:

         

      VDAC_1_SetRange(VDAC_1_RANGE_4V);
      VDAC_2_SetRange(VDAC_1_RANGE_4V);
      VDAC_1_SetValue(0x0);
      VDAC_2_SetValue(0xFF);

         

      As it seems to be very symple according to the datasheet, I think I am missing something, can anyone tell me what else should I configure to get the output 4.080V?

         

      Thanks in advance,

         

      Joaquín.