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.

TMS320F28034: IEC60730 question

Part Number: TMS320F28034


Hi expert,

I am supporting hvac customer to do IEC60730 Certificate.

I have sent them software and document.

However, they still have some questions, like:

In the watchdog detection function, how should this 'delayCount' variable be configured?

since I have no knowledge on IEC60730. Please kindly share your knowledge.

BR

Emma

  • Hi Emma, 

    Please let us know which document did you sent them and which software are they using?  

    Thanks,

    Krishna

  • Krishna,

    I will send you the document. add other questions.

    BR

    Emmaquestions on IEC60730.docx

  • Hi Emma,

    Here are my responses to the questions in the document:

    1. You can either determine it experimentally or you can calculate a delay count by looking at what the maximum amount of time it could take for the watchdog to time out. Note that the STL_UTILITY_delay function describes the parameter as: “The number of cycles it takes this function to reach zero when no interrupts are occurring is y = 14x + 32.519, where x is the delay value and y is the cycle delay.”

    2. This function configures hardware watchpoints to monitor the stack so that if the stack grows beyond a certain threshold, an interrupt can be generated to alert the application that the end of the stack is being approached and it’s at risk of overflowing. There is an app note that explains use of these watchpoints to monitor the stack: https://www.ti.com/lit/spra820

    3. There is a section in the library User Manual document that describes which sections are needed in order to run each test. See the section “External Dependencies” and “4. Linker file” in the list of dependencies.

    4. .cdecls functions similarly to a #include. It allows projects that are a mix of assembly and C/C++ share declarations. There’s more info in the Assembly Language Tools guide: https://www.ti.com/lit/pdf/SPRU513. Those _PSA_CRC* symbols are defined by the linker. See the corresponding section in the .cmd file in the screen shot in question #3.

    Whitney

  • Whitney,

    how to understand this,

    The delay value should correspond to the amount of time it takes the STL_UTILITY_delay() function
    to complete (512 x 128 )OSCCLK.

    why is 128, if WDCNTR is a 8 bit register, it should multiply 256, am I right?

    BR

    Emma

  • 256 sounds right to me. I'm not sure why the comments say 128. Also, factor in the watchdog prescale if it's set to anything other than /1 and the fact that the delay function is in terms of system clock cycles and the watchdog clock is based on OSCCLK.

    Whitney

  • Whitney,

    thanks for your reply.

    it is really helpful!

    BR

    Emma