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.

CCS/PGA900EVM: HELP with PGA900 generic firmware

Part Number: PGA900EVM
Other Parts Discussed in Thread: PGA900

Tool/software: Code Composer Studio

Hello.

I have managed to make the PGA900EVM work as both a 0-10V voltage output (and 4-20mA output), now I need firmware in the PGA900 to link the analog front end to to the analog output using digital firmware. 

I downloaded the generic firmware and managed to get a hex file which I loaded into the DEVRAM as instructed but I am not sure how I can test this to see if the generic firmware has been programmed to the pga900.

is there a check I can use to confirm this? 

In the case of the 0-10V (or 4-20mA) output.

Question 1.  

How do I go about editing the generic firmware to link the analog front end to to the analog output?  know in the data sheet on page 123 I have to configure some bits etc for the 0-10V application.

but how do I actually do this in the generic firmware? which files do I edit ? is it the pga900_main.c, pga900_cfg.c? etc. which part of those files needs to be edited?

do you have a simple code for the bridge sensor that I can use as a starting point to make the analog front end link with the back end.

After I have managed to make the above work, I would like to use a my own sensor instead of the bridge and digital pot that is on the evaluation kit. I have so far connected it to  Vbrg+, Vbrig-, (one end of J3 and J2), it seems to work fine with the ADC Capture and the programmable gain, but I cannot get the 0-10V output until I manage to link the analog front end with the back end. 

  • any help please?
  • Hello,

    This code section can be placed in the pga900_cfg.c file at the end as long as that is the only mode that you will be using. If you would like to switch modes based on some additional information from the microcontroller, you should put this in the main function of the pga_main.c file.

    I will have to look into some code for the bridge sensor and get back to you.

    Regards,
  • Hi I have edited the end of the pga900_cfg.c as shown below. Then I used the PGA900 GUI tool to:
    If I am in the right direction, what else do I need to add or change to relate the input to the PGA900 to the output of the PGA900?
    void CFG_Peripheral_Config(void)
    {
       /* Turning on DAC and DAC GAIN as per programmer tips */
       DAC_Config(DAC_ENABLE, DAC_RATIOMETRIC_MODE_DISABLE,
                  DAC_GAIN_10V | B_4_20MA_DISABLE | DACCAP_DISABLE);
                      /* Turning ON PGAIN, TGAIN and PADC, TADC as per programmer tips */
                     //#if (GATE_DRIVE_TESTING == 1)
                    // CONFIG_ALPWR(POWER_UP_PT_PGA_FD | ADC_EN_VREF | GATE_CTRL_SD_ENABLE);
                   //#else
       CONFIG_ALPWR(POWER_UP_PT_PGA_FD | ADC_EN_VREF | GATE_CTRL_SD_DISABLE);
                   //#endif
                   //#if(ANALOG_TEST_OUT_TESTING == 1)
       AMUX_CONFIG(TEST_MUX_DAC_EN|TEST_MUX_P_EN | TEST_MUX_T_EN);
                  //#endif
       AFE_CFG_CONFIG(PGAIN_CLOSE);
       /* Initialize P channel ADC */
       ADC_Pchannel_Config(ADC_ENABLE |ADC_ENABLE_24BIT|ADC_DECI_RATE_128US |
                           ADC_INT_RATE_EVERY_SAMPLE, 0);
       /* Initialize T channel ADC */
       ADC_Tchannel_Config(ADC_ENABLE | ADC_DECI_RATE_128US |
                           ADC_INT_RATE_EVERY_SAMPLE, T_GAIN_5_V_V);
       ADC_Config(ADC_CFG_1_ADC_ENABLE); /* ADC is enabled */
    }
  • have you managed to have a look yet?