SAMG55 I2SC in Master mode - disabling clocks

Discussion around product based on ARM Cortex M4 core.
This forum will be discontinued soon.

Moderators: nferre, ncollot
Posts: 1
Joined: Thu Nov 05, 2015 6:37 pm

SAMG55 I2SC in Master mode - disabling clocks

Thu Nov 05, 2015 7:36 pm


I am using the I2SC module on the SAMG55 (Xplained Pro) with the SAMG55 as the I2S master, transmitting data to an I2S amplifier (NXP TFA9882)

The clock is taken from the Peripheral Clock with Master Clock enabled (I2SC_MR.IMCKMODE = 1) and I2SC_MR.IMCKFS set to 31 (1:1024)

Everything is working well except for one thing - I don't seem to be able to disable the clocks (both BCK and WS) once they've been enabled...

Is there anything to consider except for writing a one to I2SC_CR.CKDIS?

The motivation to disable the clocks is that the I2S amplifier enters power-down mode once it detects no activity on the BCK line

Posts: 4
Joined: Thu Nov 05, 2015 6:35 pm

Re: SAMG55 I2SC in Master mode - disabling clocks

Mon Feb 22, 2016 3:15 pm

OK, it seems that I found a workaround for this -

I am disabling/enabling the I2SC peripheral clock (in the PMC) by writing PMC_PCDR/PMC_PCER


Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest