51.9.2 Clock Unit n Control

Name: CLKCTRLn
Offset: 0x04 + n*0x04 [n=0..1]
Reset: 0x00000000
Property: Enable-Protected, PAC Write-Protection

Bit 3130292827262524 
   MCKOUTDIV[5:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 2322212019181716 
   MCKDIV[5:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 15141312111098 
 MCKOUTINVMCKENMCKSELSCKOUTINVSCKSELFSOUTINVFSINVFSSEL 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 BITDELAYFSWIDTH[1:0]NBSLOTS[2:0]SLOTSIZE[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 29:24 – MCKOUTDIV[5:0] Host Clock Output Division Factor

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

Bits 21:16 – MCKDIV[5:0] Host Clock Division Factor

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

Bit 15 – MCKOUTINV Host Clock Output Invert

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

Bit 14 – MCKEN Host Clock Enable

Note: MCKEN will not enable the clock output when in Client mode.
ValueDescription
0The Host Clock n division and output is disabled.
1The Host Clock n division and output is enabled.

Bit 13 – MCKSEL Host Clock Select

This field selects the source of the Host Clock n.

MCKSELNameDescription
0x0GCLKGCLK_I2S_n is used as Host Clock n source
0x1MCKPINMCKn input pin is used as Host Clock n source

Bit 12 – SCKOUTINV Serial Clock Output Invert

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

Bit 11 – SCKSEL Serial Clock Select

This field selects the source of the Serial Clock n.

SCKSELNameDescription
0x0MCKDIVDivided Host Clock n is used as Serial Clock n source
0x1SCKPINSCKn input pin is used as Serial Clock n source

Bit 10 – FSOUTINV Frame Sync Output Invert

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

Bit 9 – FSINV Frame Sync Invert

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

Bit 8 – FSSEL Frame Sync Select

This field selects the source of the Frame Sync n.

FSSELNameDescription
0x0SCKDIVDivided Serial Clock n is used as Frame Sync n source
0x1FSPINFSn input pin is used as Frame Sync n source

Bit 7 – BITDELAY Data Delay from Frame Sync

BITDELAYNameDescription
0x0LJLeft Justified (0 Bit Delay)
0x1I2SI2S (1 Bit Delay)

Bits 6:5 – FSWIDTH[1:0] 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: The compact stereo modes (16C and 8C) are not supported in the Burst mode.
FSWIDTH[1:0]NameDescription
0x0SLOTFrame Sync Pulse is 1 Slot wide (default for I2S protocol)
0x1HALFFrame Sync Pulse is half a Frame wide
0x2BITFrame Sync Pulse is 1 Bit wide
0x3BURSTClock 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

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

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

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

SLOTSIZE[1:0]NameDescription
0x088-bit Slot for Clock Unit n
0x11616-bit Slot for Clock Unit n
0x22424-bit Slot for Clock Unit n
0x33232-bit Slot for Clock Unit n