Clock Unit n Control
Name:
CLKCTRLn
Offset:
0x04 + n*0x04 [n=0..1]
Reset:
0x00000000
Access:
Enable-Protected, PAC Write-Protection
Bit3130292827262524
MCKOUTINVSCKOUTINVFSOUTINVMCKOUTDIV[4:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000
Bit2322212019181716
MCKDIV[4:0]MCKENMCKSEL
AccessR/WR/WR/WR/WR/WR/WR/W
Reset0000000
Bit15141312111098
SCKSELFSINVFSSEL
AccessR/WR/WR/W
Reset000
Bit76543210
BITDELAYFSWIDTH[1:0]NBSLOTS[2:0]SLOTSIZE[1:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000

Bit 31 – MCKOUTINV: Master Clock Output Invert

Master Clock Output Invert

ValueDescription
0 The Master Clock n is output without inversion.
1 The Master Clock n is inverted before being output.

Bit 30 – SCKOUTINV: Serial Clock Output Invert

Serial Clock Output Invert

ValueDescription
0 The Serial Clock n is output without inversion.
1 The Serial Clock n is inverted before being output.

Bit 29 – FSOUTINV: Frame Sync Output Invert

Frame Sync Output Invert

ValueDescription
0 The Frame Sync n is output without inversion.
1 The Frame Sync n is inverted before being output.

Bits 28:24 – MCKOUTDIV[4:0]: Master Clock Output Division Factor

Master Clock Output Division Factor

The generic clock selected by MCKSEL is divided by (MCKOUTDIV + 1) to obtain the Master Clock n output.

Bits 23:19 – MCKDIV[4:0]: Master Clock Division Factor

Master Clock Division Factor

The Master Clock n is divided by (MCKDIV + 1) to obtain the Serial Clock n.

Bit 18 – MCKEN: Master Clock Enable

Master Clock Enable

ValueDescription
0 The Master Clock n division and output is disabled.
1 The Master Clock n division and output is enabled.

Bit 16 – MCKSEL: Master Clock Select

Master Clock Select

This field selects the source of the Master Clock n.

MCKSEL Name Description
0x0 GCLK GCLK_I2S_n is used as Master Clock n source
0x1 MCKPIN MCKn input pin is used as Master Clock n source

Bit 12 – SCKSEL: Serial Clock Select

Serial Clock Select

This field selects the source of the Serial Clock n.

SCKSEL Name Description
0x0 MCKDIV Divided Master Clock n is used as Serial Clock n source
0x1 SCKPIN SCKn input pin is used as Serial Clock n source

Bit 11 – FSINV: Frame Sync Invert

Frame Sync Invert

ValueDescription
0 The Frame Sync n is used without inversion.
1 The Frame Sync n is inverted before being used.

Bit 8 – FSSEL: Frame Sync Select

Frame Sync Select

This field selects the source of the Frame Sync n.

FSSEL Name Description
0x0 SCKDIV Divided Serial Clock n is used as Frame Sync n source
0x1 FSPIN FSn input pin is used as Frame Sync n source

Bit 7 – BITDELAY: Data Delay from Frame Sync

Data Delay from Frame Sync

BITDELAY Name Description
0x0 LJ Left Justified (0 Bit Delay)
0x1 I2S I2S (1 Bit Delay)

Bits 6:5 – FSWIDTH[1:0]: Frame Sync Width

Frame Sync Width

This field selects the duration of the Frame Sync output pulses.

When not in Burst mode, the Clock unit n operates in continuous mode when enabled, with periodic Frame Sync pulses and Data samples.

In Burst mode, a single Data transfer starts at each Frame Sync pulse; these pulses are 1-bit wide and occur only when a Data transfer is requested. Note that the compact stereo modes (16C and 8C) are not supported in the Burst mode.

FSWIDTH[1:0] Name Description
0x0 SLOT Frame Sync Pulse is 1 Slot wide (default for I2S protocol)
0x1 HALF Frame Sync Pulse is half a Frame wide
0x2 BIT Frame Sync Pulse is 1 Bit wide
0x3 BURST Clock Unit n operates in Burst mode, with a 1-bit wide Frame Sync pulse per Data sample, only when Data transfer is requested

Bits 4:2 – NBSLOTS[2:0]: Number of Slots in Frame

Number of Slots in Frame

Each Frame for Clock Unit n is composed of (NBSLOTS + 1) Slots.

Bits 1:0 – SLOTSIZE[1:0]: Slot Size

Slot Size

Each Slot for Clock Unit n is composed of a number of bits specified by SLOTSIZE.

SLOTSIZE[1:0] Name Description
0x0 8 8-bit Slot for Clock Unit n
0x1 16 16-bit Slot for Clock Unit n
0x2 24 24-bit Slot for Clock Unit n
0x3 32 32-bit Slot for Clock Unit n