voice data transmission from the MSB (most significant bit) to the LSB (low significant bit). The MSB will always be transferred in the first clock period after the WS signal is toggled. If the data length does not match, the receiver or sender will automatically intercept or fill the data. For more information, please refer to the IIS specification presented in the ScC44BOX User’s Manual.
3. Circuit Design
1) S3C44B0 IIS
(1) Signal Lines
The IIS bus has five lines:
●Serial data input (IISDI): The SD signal line of the IIS bus. Input.
●Serial data output (IISDO): The SD signal line of the IIS bus. Output.
●Left/right channel select (IISLRCK): The WS signal line of the IIS bus. Sampling clock.
●Serial bit clock (IISCLK): The SCK signal line of the IIS bus.
●CODECLK is generally 256 (256fs) or 384 (384fs) times the sample frequency (fs). CLDELEK is obtained from the main CPU clock frequency. The CPU timer registers can be configured through programming. The value for the frequency division can be from 0 to 16.The relationship of CODECLK and sample frequency is shown is Table 6-1. It needs to correctly select the IISLRCK and CODEECLK.
Table 6-1 The Relationship of CODECLK and IISRCK
(2) Registers
There are three registers related to IIS:
●IIS Control Register IISCON. IISCON can access the FIFO ready flag, enable or disable transmit DMA service, enable IISLRCK, IIS prescaler and IIS interface.
●IIS Mode Register IISMOD. IISMOD can select master-slave mode, send-receive mode, active level, serial data bit per channel, select CODECLK and IISRCK.
●IIS Prescaler Register IISPSR.
(3) Data Transfer
Normal mode or DMA mode can be selected for data transferring. In normal mode, the microprocessor transfers data according to the status of FIFO. The microprocessor itself accomplishes the data transfer from FIFO to the IIS bus. The status of FIFO is available via IISFCON register. The data can be directly written into the FIFO register IISFIF. In DMA mode, the DMA controller completely controls the data transfer to/from FIFO. The DMA controller automatically sends/receives data according to the status of the FIFO.
2) UDA1341TS Chip