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.

PGA411Q1EVM: External control of the PGA411-EVM with F28335 Control Card

Part Number: PGA411Q1EVM

Hello,

i want to control the PGA411 EVM  with an external microcontroller. So i change the Jumper 3 to 5/6 for external Control. Then i connected the Pins of Jumper11 with the Controller. For Evaluation i took the FAULTRES Pin to GND to ignore the faults.

Then i tried to communicate with the PGA. I sent a 32 bit message like 0x1F001000 for example to read one of the DEV_STAT Register. But i always receive a message like 0x46. On the scope are the NCS, SCK, and the SDI Pins right. I should receive the address bits and a dummy data from the SDO.

I use the Software guide of the pga for programming. My main function is actually really simple. Is there any additional Thing that i forgot or something which is wrong.

Maybe there is anyone with experience in that issue who can help me.

void main(void)
{
 // Initialize System Control:
 // PLL, WatchDog, enable Peripheral Clocks
    InitSysCtrl();

 //User Code begin
    static Uint32 read[10];
    int i;

    pga411_Init();
    DELAY_US(10000);

    while(1)
    {
       for(i=0; i<10; i++)
       {
        read[i] = uc_spi_xmit(0x1F010000);
       }
    }
 //User Code end
}

  • Altug,

    If J3 is set to pins 5 and 6, then you are setting the device to use a 5V VIO. If your external microcontroller is using 3.3V IO levels, then there can be a communication problem. Have you tried connecting pins 3 and 4 on J3?

    Thanks,

    -Clancy
  • Hi Clancy,

    thanks for your answer. There was something wrong in the CRC Calculation and i have to use the 3.3 V IO.

    Now i can read and write to the Registers. But if i want to Change the Default configurations for example the 4Vrms to 7Vrms or the Exciter Supply Voltage from 12 to 15 V, it resets the PGA and the Default configurations are set.

    On the other side, i can Switch for example the frequency and the gain of the exciter. The reset happens when i want to Change the previously mentioned Settings.

    I set the Device to the DIAG Mode and unlock it before writing.

    Thanks,

    Altug
  • Altug,

    The only times that the registers would switch back to their defaults is if:

    - NRESET is toggled
    - VCC dips below the undervoltage reset point
    - the EEPROM is reloaded

    Are you unlocking the EEPROM during this procedure? Are you writing anything to the EECMD register? Is the FAULT pin ever toggled or are you keeping FAULTRES low?

    Thanks,

    -Clancy
  • Hello,

    the Problem i think was that i wanted to get the VCC from the microcontroller, but the microcontroller has a voltage at the 5V-Pin around 4,7-4.8 V. If i use a power supply, it works. Maybe the PGA doesn't get supplied stable, so it restarts all the time.

    Or is there any other Explanation for this Problem because in this case i shouldn't be able to Change the frequency and the gain too.

    I don't unlock the EEPROM. I kept the FAULTRES Pin low.

    Thanks,

    Altug