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.

PCM1863: How to generate a INT signal about music playing/stop

Part Number: PCM1863

Hi there,

Is it possible to generate a signal act as follows and output from GPIO3,

(1) Output high level during music is playing

(2) Output low level during music is stop

Our environment is as follows

(1) pcm1863 is in slave mode

(2) whenever music is playing or not, BLCK, LRCK and MCLK will always toggle.

Thank you.

  • Hi Carsound,
    PCM186x has energysense feature which has signal loss flag & signal resume flag. The main ADC constantly monitors the input signal level while in ACTIVE mode. If the input level remain below a register defined threshold for a register defined amount of time, an interrupt can be generated. This is not the same as having GPIO pin HIGH for 'Music playing' requirement and LOW for 'no music'.

    Would you be ok w using INT signal when these events happen instead of levels for each? Thanks.

    Best regards,
    Ravi
  • Hi Ravi,

    Thanks for replay.

    It is ok to use the INT signal. And now in Active mode, we try to generate the INT signal and output to GPIO3 with threshold -30dB, but it did not work, would you please check the problem for us, attach the configurations,

    { 0x00, 0x00 }, /*page 0*/

    { 0x70, 0x71 }, /*enter standby*/

    { 0x06, 0x08 }, /*VINL4[SE]*/

    { 0x07, 0x08 }, /*VINR4[SE]*/

    { 0x20, 0x4f }, /*MCLK from AMP*/

    { 0x01, 0x18 }, /*Gain=12dB*/

    { 0x02, 0x18 }, /*Gain=12dB*/

    { 0x13, 0x40 }, /*GPIO3 DIR Output*/

    { 0x11, 0x20 }, /*GPIO3 INT*/

    { 0x60, 0x01 }, /*energysense INT*/

    { 0x00, 0x01 }, /*Page 1*/

    { 0x02, 0x2D }, /*mem addr */

    { 0x04, 0x04 }, /*bit[23:16] */

    { 0x05, 0x0c }, /*bit[15:8] */

    { 0x06, 0x37 }, /*bit[7:0] */

    { 0x01, 0x01 }, /*execute write operation */

    { 0x00, 0x00 }, /*page 0*/

    { 0x70, 0x70 }};/*enter running*/

     Another question, the -30dB mapped to 0x040C37 is reference from the example on page 50 of the SPEC, would you please explain how to map the threshold to Hex? 

    Thanks