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.

C5510: How to detect if clocks are disabled by setting ICR.CLKGEN

On the C5510, if you write 0x1f to the ICR register in order to idle the DSP and disable clocks (i.e. CLKGEN bit), how can you detect that this occured?  There is a status bit in ISTR, but if JTAG is connected, it will read back as 0xf.  That is, JTAG will enable clocks and you can't detect if bit 4 is actually set (can't tell if clocks were disabled).  I believe the same holds true for HPI (i.e. will enable clocks and can't determine if bit 4 was ever set).

So, the question is, how can you check if clocks are actually enabled or not?  Is the only way to physically measure currents or EMI signature?  In other words, is bit4 in ISTR unusable?

Regards,
Eric

  • Hi Eric,

    I spoke briefly to our designer about this as well. You are right, when bit 4 is set,  the clocks are inactive and the program counter stops so there is no software way to actually test if the clocks are disabled. You will have to measure it on the pin. Also, as long as JTAG is connected, the clocks will remain enabled and writing to the bit will not affect it as you have already observed. 

    Regards,

    Mugdha