SWCU195A December 2024 – May 2025 CC2744R7-Q1 , CC2745P10-Q1 , CC2745R10-Q1 , CC2745R7-Q1 , CC2755R10
Table 26-1 lists the memory-mapped registers for the I2S registers. All register offset addresses not listed in Table 26-1 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Section |
|---|---|---|---|
| 0h | WCLKSRC | This register configures the **WCLK** Source | Section 26.11.1 |
| 4h | DMACFG | This register configures DMA buffer size | Section 26.11.2 |
| 8h | DIRCFG | This register configures the direction of data pins(**AD0**/**AD1**) | Section 26.11.3 |
| Ch | FMTCFG | This register configures the serial interface format | Section 26.11.4 |
| 10h | WMASK0 | This register configures the word selection dit mask for data pin 0(**AD0**) | Section 26.11.5 |
| 14h | WMASK1 | This register configures the word selection dit mask for data pin 1(**AD1**) | Section 26.11.6 |
| 20h | INPTRNXT | This register configures DMA input buffer next pointer | Section 26.11.7 |
| 24h | INPTR | This register configures the DMA input buffer current pointer | Section 26.11.8 |
| 28h | OUTPTRNXT | This register configures DMA output buffer next pointer | Section 26.11.9 |
| 2Ch | OUTPTR | This register configures DMA output buffer current pointer | Section 26.11.10 |
| 34h | STMPCTL | This register controls the samplestamp generator. | Section 26.11.11 |
| 38h | STMPXCNTCAPT0 | This register gives the captured **XOSC** counter value, capture channel 0 | Section 26.11.12 |
| 3Ch | STMPXPER | The register gives the XOSC period value | Section 26.11.13 |
| 40h | STMPWCNTCAPT0 | This register gives the captured **WCLK** counter value, capture channel 0 | Section 26.11.14 |
| 44h | STMPWPER | This register configures **WCLK** counter period value | Section 26.11.15 |
| 48h | STMPINTRIG | This register configures **WCLK** counter trigger value for input pins | Section 26.11.16 |
| 4Ch | STMPOUTTRIG | This register configures **WCLK** counter trigger value for output pins | Section 26.11.17 |
| 50h | STMPWSET | This register confiures **WCLK** counter set operation | Section 26.11.18 |
| 54h | STMPWADD | This register configures WCLK counter add operation | Section 26.11.19 |
| 58h | STMPXPERMIN | This register configures **XOSC** minimum period value | Section 26.11.20 |
| 5Ch | STMPWCNT | This register gives the current value of **WLCK** counter | Section 26.11.21 |
| 60h | STMPXCNT | This register gives the current value **XOSC** counter | Section 26.11.22 |
| 70h | IRQMASK | Interrupt Mask Register | Section 26.11.23 |
| 74h | IRQFLAGS | This registers gives the raw interrupt status | Section 26.11.24 |
| 78h | IRQSET | Interrupt Set Register. This register can be used by software for diagnostics and safety checking purposes. | Section 26.11.25 |
| 7Ch | IRQCLR | Interrupt clear register. This register allows software to clear interrupts. | Section 26.11.26 |
| 80h | MCLKDIV | This field configures **MCLK** division ratio | Section 26.11.27 |
| 84h | BCLKDIV | This field configures **BCLK** division ratio | Section 26.11.28 |
| 88h | WCLKDIV | This field configures **WCLK** division ratio | Section 26.11.29 |
| 8Ch | CLKCTL | This register controls internal audio clock | Section 26.11.30 |
| 90h | DTB | Digital test bus control | Section 26.11.31 |
Complex bit access types are encoded to fit into small table cells. Table 26-2 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| Write Type | ||
| W | W | Write |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
WCLKSRC is shown in Table 26-3.
Return to the Summary Table.
This register configures the WCLK Source
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R | 0h | Reserved |
| 2 | WCLKINV | R/W | 0h | This field Inverts WCLK source (pad or internal).
|
| 1-0 | WBCLKSRC | R/W | 0h | This field selects WCLK/BCLK source for I2S.
|
DMACFG is shown in Table 26-4.
Return to the Summary Table.
This register configures DMA buffer size
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7-0 | ENDFRMIDX | R/W | 0h | This field defines the length of the DMA buffer. Writing a non-zero value to this register field enables and initializes I2S. Note that before doing so, all other configuration must have been done, and INPTRNXT/OUTPTRNXT must have been loaded. |
DIRCFG is shown in Table 26-5.
Return to the Summary Table.
This register configures the direction of data pins(AD0/AD1)
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-6 | RESERVED | R | 0h | Reserved |
| 5-4 | AD1 | R/W | 0h | The field configures the AD1 data pin direction
|
| 3-2 | RESERVED | R | 0h | Reserved |
| 1-0 | AD0 | R/W | 0h | The field configures the AD0 data pin direction
|
FMTCFG is shown in Table 26-6.
Return to the Summary Table.
This register configures the serial interface format
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-8 | DATADLY | R/W | 1h | This field configures the number of BCLK periods between a WCLK edge and MSB of the first word in a phase Note: When 0, MSB of the next word will be output in the idle period between LSB of the previous word and the start of the next word. Otherwise logical 0 will be output until the data delay has expired.
|
| 7 | MEMLEN32 | R/W | 0h | This register configures the size of each word stored to or loaded from memory
|
| 6 | SMPLEDGE | R/W | 1h | This field configures the sample edge/ transfer edge of data (and WCLK) on BCLK
|
| 5 | DUALPHASE | R/W | 1h | This field selects between dual-phase or single-phase format
|
| 4-0 | WORDLEN | R/W | 10h | Number of bits per word (8-24): In single-phase format, this is the exact number of bits per word. In dual-phase format, this is the maximum number of bits per word. Values below 8 and above 24 give undefined behavior. Data written to memory is always aligned to 16 or 24 bits as defined by MEMLEN32. Bit widths that differ from this alignment will either be truncated or zero padded. |
WMASK0 is shown in Table 26-7.
Return to the Summary Table.
This register configures the word selection dit mask for data pin 0(AD0)
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7-0 | MASK | R/W | 3h | Bit-mask indicating valid channels in a frame on AD0. In single-phase mode, each bit represents one channel, starting with LSB for the first word in the frame. A frame can contain up to 8 channels. Channels that are not included in the mask will not be sampled and stored in memory, and clocked out as '0'. In dual-phase mode, only the two LSBs are considered. For a stereo configuration, set both bits. For a mono configuration, set bit 0 only. In mono mode, only channel 0 will be sampled and stored to memory, and channel 0 will be repeated when clocked out. In mono mode, only channel 0 will be sampled and stored to memory, and channel 0 will be repeated in the second phase when clocked out. If all bits are zero, no input words will be stored to memory, and the output data lines will be constant '0'. This can be utilized when PWM debug output is desired without any actively used output pins. |
WMASK1 is shown in Table 26-8.
Return to the Summary Table.
This register configures the word selection dit mask for data pin 1(AD1)
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7-0 | MASK | R/W | 3h | Bit-mask indicating valid channels in a frame on AD1. In single-phase mode, each bit represents one channel, starting with LSB for the first word in the frame. A frame can contain up to 8 channels. Channels that are not included in the mask will not be sampled and stored in memory, and clocked out as '0'. In dual-phase mode, only the two LSBs are considered. For a stereo configuration, set both bits. For a mono configuration, set bit 0 only. In mono mode, only channel 0 will be sampled and stored to memory, and channel 0 will be repeated when clocked out. In mono mode, only channel 0 will be sampled and stored to memory, and channel 0 will be repeated in the second phase when clocked out. If all bits are zero, no input words will be stored to memory, and the output data lines will be constant '0'. This can be utilized when PWM debug output is desired without any actively used output pins. |
INPTRNXT is shown in Table 26-9.
Return to the Summary Table.
This register configures DMA input buffer next pointer
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | PTR | R/W | 0h | Pointer to the first byte in the next DMA input buffer. The read value equals the last written value until the currently used DMA input buffer is completed, and then becomes null when the last written value is transferred to the DMA controller to start on the next buffer. This event is signalized by IRQFLAGS.DMAIN. At startup, the value must be written once before and once after configuring the DMA buffer size in DMACFG. The next pointer must be written to this register while the DMA function uses the previously written pointer. If not written in time, IRQFLAGS.PTRERR will be raised and all input pins will be disabled. |
INPTR is shown in Table 26-10.
Return to the Summary Table.
This register configures the DMA input buffer current pointer
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | PTR | R | 0h | Value of the DMA input buffer pointer currently used by the DMA controller. Incremented by 1 (byte) or 2 (word) for each AHB access. |
OUTPTRNXT is shown in Table 26-11.
Return to the Summary Table.
This register configures DMA output buffer next pointer
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | PTR | R/W | 0h | Pointer to the first byte in the next DMA output buffer. The read value equals the last written value until the currently used DMA output buffer is completed, and then becomes null when the last written value is transferred to the DMA controller to start on the next buffer. This event is signalized by IRQFLAGS.DMAOUT. At startup, the value must be written once before and once after configuring the DMA buffer size in DMACFG. At this time, the first two samples will be fetched from memory. The next pointer must be written to this register while the DMA function uses the previously written pointer. If not written in time, IRQFLAGS.PTRERR will be raised and all output pins will be disabled. |
OUTPTR is shown in Table 26-12.
Return to the Summary Table.
This register configures DMA output buffer current pointer
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-0 | PTR | R | 0h | Value of the DMA output buffer pointer currently used by the DMA controller Incremented by 1 (byte) or 2 (word) for each AHB access. |
STMPCTL is shown in Table 26-13.
Return to the Summary Table.
This register controls the samplestamp generator.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R | 0h | Reserved |
| 2 | OUTRDY | R | 0h | This field is low until the output pins are ready to be started by the samplestamp generator. When started (that is STMPOUTTRIG equals the WCLK counter) the bit goes back low. |
| 1 | INRDY | R | 0h | This field is low until the input pins are ready to be started by the samplestamp generator. When started (that is STMPINTRIG equals the WCLK counter) the bit goes back low. |
| 0 | STMPEN | R/W | 0h | This field configures the samplestamp generator. The samplestamp generator must only be enabled after it has been properly configured. When cleared, all samplestamp generator counters and capture values are cleared.
|
STMPXCNTCAPT0 is shown in Table 26-14.
Return to the Summary Table.
This register gives the captured XOSC counter value, capture channel 0
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | CAPTVALUE | R | 0h | The value of the samplestamp XOSC counter (STMPXCNT.CURRVALUE) last time an event was pulsed. This number corresponds to the number of 24 MHz clock cycles since the last positive edge of the selected WCLK. The value is cleared when STMPCTL.STMPEN = 0. Note: Due to buffering and synchronization, WCLK is delayed by a small number of BCLK periods and clk periods. Note: When calculating the fractional part of the sample stamp, STMPXPER may be less than this bit field. |
STMPXPER is shown in Table 26-15.
Return to the Summary Table.
The register gives the XOSC period value
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | VALUE | R | 0h | The number of 24 MHz clock cycles in the previous WCLK period (that is - the next value of the XOSC counter at the positive WCLK edge, had it not been reset to 0). The value is cleared when STMPCTL.STMPEN = 0. |
STMPWCNTCAPT0 is shown in Table 26-16.
Return to the Summary Table.
This register gives the captured WCLK counter value, capture channel 0
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | CAPT_VALUE | R | 0h | The value of the samplestamp WCLK counter (STMPWCNT.CURRVALUE) last time an event was pulsed. This number corresponds to the number of positive WCLK edges since the samplestamp generator was enabled (not taking modification through STMPWADD/STMPWSET into account). The value is cleared when STMPCTL.STMPEN = 0. |
STMPWPER is shown in Table 26-17.
Return to the Summary Table.
This register configures WCLK counter period value
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | VALUE | R/W | 0h | This field defines when STMPWCNT is to be reset so number of WCLK edges are found for the size of the sample buffer. This is thus a modulo value for the WCLK counter. This number must correspond to the size of the sample buffer used by the system (that is the index of the last sample plus 1). |
STMPINTRIG is shown in Table 26-18.
Return to the Summary Table.
This register configures WCLK counter trigger value for input pins
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | INSTARTWCNT | R/W | 0h | This field configures the compare value used to start the incoming audio streams. This bit field shall equal the WCLK counter value during the WCLK period in which the first input word(s) are sampled and stored to memory (that is the sample at the start of the very first DMA input buffer). The value of this register takes effect when the following conditions are met: - One or more pins are configured as inputs in DIRCFG. - DMACFG has been configured for the correct buffer size, and at least 32 BCLK cycle ticks have happened. Note: To avoid false triggers, this bit field should be set higher than STMPWPER.VALUE. |
STMPOUTTRIG is shown in Table 26-19.
Return to the Summary Table.
This register configures WCLK counter trigger value for output pins
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | OUTSTARTWCNT | R/W | 0h | This field cofnigures the compare value used to start the outgoing audio streams. This bit field must equal the WCLK counter value during the WCLK period in which the first output word(s) read from memory are clocked out (that is the sample at the start of the very first DMA output buffer). The value of this register takes effect when the following conditions are met: - One or more pins are configured as outputs in DIRCFG. - DMACFG has been configured for the correct buffer size, and 32 BCLK cycle ticks have happened. - 2 samples have been preloaded from memory (examine the OUTPTR register if necessary). Note: The memory read access is only performed when required, that is channels 0/1 must be selected in WMASK0/WMASK1. Note: To avoid false triggers, this bit field should be set higher than STMPWPER.VALUE. |
STMPWSET is shown in Table 26-20.
Return to the Summary Table.
This register confiures WCLK counter set operation
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | VALUE | W | 0h | Sets the running WCLK counter equal to the written value. |
STMPWADD is shown in Table 26-21.
Return to the Summary Table.
This register configures WCLK counter add operation
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | VALUEINC | W | 0h | Adds the written value to the running WCLK counter. If a positive edge of WCLK occurs at the same time as the operation, this will be taken into account. To add a negative value, write "STMPWPER.VALUE - value". |
STMPXPERMIN is shown in Table 26-22.
Return to the Summary Table.
This register configures XOSC minimum period value
Minimum Value of STMPXPER
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | VALUE | R/W | FFFFh | Each time STMPXPER is updated, the value is also loaded into this register, provided that the value is smaller than the current value in this register. When written, the register is reset to 0xFFFF (65535), regardless of the value written. The minimum value can be used to detect extra WCLK pulses (this registers value will be significantly smaller than STMPXPER.VALUE). |
STMPWCNT is shown in Table 26-23.
Return to the Summary Table.
This register gives the current value of WLCK counter
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | CURRVALUE | R | 0h | Current value of the WCLK counter |
STMPXCNT is shown in Table 26-24.
Return to the Summary Table.
This register gives the current value XOSC counter
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Reserved |
| 15-0 | CURRVALUE | R | 0h | Current value of the XOSC counter, latched when reading STMPWCNT. |
IRQMASK is shown in Table 26-25.
Return to the Summary Table.
Interrupt Mask Register
Selects mask states of the flags in IRQFLAGS that contribute to the I2S_IRQ event.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-7 | RESERVED | R | 0h | Reserved |
| 6 | XCNTCAPT | R/W | 0h | IRQFLAGS.XCNTCAPT interrupt mask
|
| 5 | DMAIN | R/W | 0h | IRQFLAGS.DMAIN interrupt mask
|
| 4 | DMAOUT | R/W | 0h | IRQFLAGS.DMAOUT interrupt mask
|
| 3 | WCLKTIMEOUT | R/W | 0h | IRQFLAGS.WCLKTIMEOUT interrupt mask
|
| 2 | BUSERR | R/W | 0h | IRQFLAGS.BUSERR interrupt mask
|
| 1 | WCLKERR | R/W | 0h | IRQFLAGS.WCLKERR interrupt mask
|
| 0 | PTRERR | R/W | 0h | IRQFLAGS.PTRERR interrupt mask.
|
IRQFLAGS is shown in Table 26-26.
Return to the Summary Table.
This registers gives the raw interrupt status
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-7 | RESERVED | R | 0h | Reserved |
| 6 | XCNTCAPT | R | 0h | This interrupt is set when xcnt counter is captured either by events or software. Needs to be cleared by software.
|
| 5 | DMAIN | R | 0h | This interrupt is set when condition for this bit field event occurs (auto cleared when input pointer is updated - AIFINPTRNEXT), see description of AIFINPTRNEXT register for details.
|
| 4 | DMAOUT | R | 0h | This interrupt is set when condition for this bit field event occurs (auto cleared when output pointer is updated - OUTPTRNXT), see description of OUTPTRNXT register for details
|
| 3 | WCLKTIMEOUT | R | 0h | Set when the sample stamp generator does not detect a positive WCLK edge for 65535 clk periods. This signalizes that the internal or external BCLK and WCLK generator source has been disabled. The bit is sticky and may only be cleared by software (by writing '1' to IRQCLR.WCLKTIMEOUT).
|
| 2 | BUSERR | R | 0h | This interrupt set when a DMA operation is not completed in time (that is audio output buffer underflow, or audio input buffer overflow). This error requires a complete restart since word synchronization has been lost. The bit is sticky and may only be cleared by software (by writing '1' to IRQCLR.BUSERR). Note that DMA initiated transactions to illegal addresses will not trigger an interrupt. The response to such transactions is undefined.
|
| 1 | WCLKERR | R | 0h | This interrupt is set when: - An unexpected WCLK edge occurs during the data delay period of a phase. Note unexpected WCLK edges during the word and idle periods of the phase are not detected. - In dual-phase mode, when two WCLK edges are less than 4 BCLK cycles apart. - In single-phase mode, when a WCLK pulse occurs before the last channel. This error requires a complete restart since word synchronization has been lost. The bit is sticky and may only be cleared by software (by writing '1' to IRQCLR.WCLKERR).
|
| 0 | PTRERR | R | 0h | This interrupt set when INPTRNXT or OUTPTRNXT has not been loaded with the next block address in time. This error requires a complete restart since word synchronization has been lost. The bit is sticky and may only be cleared by software (by writing '1' to IRQCLR.PTRERR).
|
IRQSET is shown in Table 26-27.
Return to the Summary Table.
Interrupt Set Register. This register can be used by software for diagnostics and safety checking purposes.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-7 | RESERVED | R | 0h | Reserved |
| 6 | XCNTCAPT | W | 0h | This field sets the interrupt IRQFLAGS.XCNTCAPT (unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
| 5 | DMAIN | W | 0h | This field sets the interrupt IRQFLAGS.DMAIN (unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
| 4 | DMAOUT | W | 0h | This field sets the interrupt IRQFLAGS.DMAOUT (unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
| 3 | WCLKTIMEOUT | W | 0h | This field sets the interrupt IRQFLAGS.WCLKTIMEOUT(unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
| 2 | BUSERR | W | 0h | 1: Sets the interrupt of IRQFLAGS.BUSERR(unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
| 1 | WCLKERR | W | 0h | This field sets the interrupt IRQFLAGS.WCLKERR(unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
| 0 | PTRERR | W | 0h | This field sets the interrupt IRQFLAGS.PTRERR(unless a auto clear criteria was given at the same time, in which the set will be ignored)
|
IRQCLR is shown in Table 26-28.
Return to the Summary Table.
Interrupt clear register. This register allows software to clear interrupts.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-7 | RESERVED | R | 0h | Reserved |
| 6 | XCNTCAPT | W | 0h | Ths field clears the interrupt IRQFLAGS.XCNTCAPT (unless a set criteria was given at the same time in which the clear will be ignored)
|
| 5 | DMAIN | W | 0h | This field clears the interrupt of IRQFLAGS.DMAIN (unless a set criteria was given at the same time in which the clear will be ignored)
|
| 4 | DMAOUT | W | 0h | This field clears the interrupt IRQFLAGS.DMAOUT (unless a set criteria was given at the same time in which the clear will be ignored)
|
| 3 | WCLKTIMEOUT | W | 0h | 1: Clears the interrupt of IRQFLAGS.WCLKTIMEOUT (unless a set criteria was given at the same time in which the clear will be ignored)
|
| 2 | BUSERR | W | 0h | This field clears the interrupt IRQFLAGS.BUSERR (unless a set criteria was given at the same time in which the clear will be ignored)
|
| 1 | WCLKERR | W | 0h | This field clears the interrupt IRQFLAGS.WCLKERR (unless a set criteria was given at the same time in which the clear will be ignored)
|
| 0 | PTRERR | W | 0h | This field clears the interrupt IRQFLAGS.PTRERR (unless a set criteria was given at the same time in which the clear will be ignored)
|
MCLKDIV is shown in Table 26-29.
Return to the Summary Table.
This field configures MCLK division ratio
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-10 | RESERVED | R | 0h | Reserved |
| 9-0 | MDIV | R/W | 0h | An unsigned factor of the division ratio used to generate MCLK [2-1024]: MCLK = MCUCLK/MDIV[Hz] MCUCLK is upto 96MHz. A value of 0 is interpreted as 1024. A value of 1 is invalid. If MDIV is odd the low phase of the clock is one MCUCLK period longer than the high phase. |
BCLKDIV is shown in Table 26-30.
Return to the Summary Table.
This field configures BCLK division ratio
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-10 | RESERVED | R | 0h | Reserved |
| 9-0 | BDIV | R/W | 0h | An unsigned factor of the division ratio used to generate BCLK [2-1024]: BCLK = MCUCLK/BDIV[Hz] MCUCLK can be upto 96MHz. A value of 0 is interpreted as 1024. A value of 1 is invalid. If BDIV is odd and FMTCFG.SMPLEDGE = 0, the low phase of the clock is one MCUCLK period longer than the high phase. If BDIV is odd and FMTCFG.SMPLEDGE = 1 , the high phase of the clock is one MCUCLK period longer than the low phase. |
WCLKDIV is shown in Table 26-31.
Return to the Summary Table.
This field configures WCLK division ratio
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-16 | RESERVED | R | 0h | Software should not rely on the value of a reserved. Writing any other value than the reset value may result in undefined behavior. |
| 15-0 | WDIV | R/W | 0h | If CLKCTL.WCLKPHASE = 0, Single phase. WCLK is high one BCLK period and low WDIV[9:0] (unsigned, [1-1023]) BCLK periods. WCLK = MCUCLK / BDIV*(WDIV[9:0] + 1) [Hz] MCUCLK upto 96MHz. If WCLKPHASE = 1, Dual phase. Each phase on WCLK (50% duty cycle) is WDIV[9:0] (unsigned, [1-1023]) BCLK periods. **WCLK **= **MCUCLK **/ BDIV*(2*WDIV[9:0]) [Hz] If WCLKPHASE = 2, User defined. WCLK is high WDIV[7:0] (unsigned, [1-255]) BCLK periods and low WDIV[15:8] (unsigned, [1-255]) BCLK periods. WCLK = **MCUCLK **/ (BDIV*(WDIV[7:0] + WDIV[15:8]) [Hz] |
CLKCTL is shown in Table 26-32.
Return to the Summary Table.
This register controls internal audio clock
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-4 | RESERVED | R | 0h | Reserved |
| 3 | MEN | R/W | 0h | This field configures the MCLK generation
|
| 2-1 | WCLKPHASE | R/W | 0h | The field configures how the WCLK division ratio is calculated and used to generate different duty cycles (See WCLKDIV.WDIV) |
| 0 | WBEN | R/W | 0h | This field configures WCLK/BCLK generation
|
DTB is shown in Table 26-33.
Return to the Summary Table.
Digital test bus control
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-2 | RESERVED | R | 0h | Reserved |
| 1-0 | SEL | R/W | 0h | The field controls the select of DTB
|