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.

PCM1865: TI PurePath Console - Energysense setup

Part Number: PCM1865

Hi 

I am struggling to get an energysense interrupt. 

I send the below code using the USB-I2X to the PCM1865EVM.

W 94 00 FE # Reset ADC registers.
W 94 01 01 # On register 01 Set W_REQ to "1". (Execute write operation)R 94 01 01 # Read register 01, Bit 0 (W_REQ)
R 94 01 01
R 94 01 01
W 94 00 01 # Write to I2C address 0x94, Set page to 1.
W 94 02 2D # On register 02 MEM_ADDR, write 2D (Resume threshold)
W 94 04 00 # On register 04 MEM_WDATA0, write 00 (Bit 23:15)
W 94 05 2E # On register 05 MEM_WDATA0, write 2E (Bit 15:8) 002E49 = -57dBFS
W 94 06 49 # On register 06 MEM_WDATA0, write 49 (Bit 7:0)
W 94 01 01 # On register 01 Set W_REQ to "1". (Execute write operation)R 94 01 01 # Read register 01, Bit 0 (W_REQ)
R 94 01 01
R 94 01 01

In PurePath Console I/O, I don't see any read commands, just the below:

# Command at line 1 Successfully executed

# Command at line 2 Successfully executed

# Command at line 3 Successfully executed

# Command at line 4 Successfully executed

# Command at line 5 Successfully executed

# Command at line 6 Successfully executed

# Command at line 7 Successfully executed

# Command at line 8 Successfully executed

# Command at line 9 Successfully executed

# Command at line 10 Successfully executed

# Command at line 11 Successfully executed

# Command at line 12 Successfully executed

Also - Energysense is not working as intended...

  • Hi,

    Are you using the PCM186xEVM GUI to do this? This is the easiest way to experiment with the energysense levels. If you type your command in the command buffer interface you should see the output window populate as follows:

    Once you click the refresh button at the bottom of the GUI in the block diagram tab you should be able to enter the secondary ADC block and see the value you have programmed for the energysense, Note if you don't click refresh the value will be as you programmed it, but the GUI will not reflect this:

    If the device is active, by default it takes 1 minute after the inputs are all under the energysense loss threshold before the device starts to generate an interrupt. If you put the device in sleep mode, then the interrupt will be triggered based on the signal detect interval, which is 1 second by default.

    You can see whether the interrupt has triggered in the control window. Note there is also an LED on the INT pin and you should see this blink periodically once the interrupt is triggered.

    I hope this helps!

    Best,

    Zak

  • I was using PPC3, but now I can see that I should use PPC2. I will try again, and it probably works then. I could not see the PCM186x EVM GUI.