The pins on the pin header are spaced 100 mil apart. The PCB is 1.0 inches long on the sides parallel to the pins on the pin header and 0.8 inches
long on the sides perpendicular to the pin header. The Line In and Line Out audio jacks are approximately 0.44 inches apart, measured from the
center of each jack.
The Pmod I2S2 utilizes a (Cirrus Logic CS4344 Stereo D/A converter) to take digital audio data and output the corresponding analog signal through
a standard stereo headphone jack (labeled Line Out). In addition, a (Cirrus Logic CS5343 Stereo A/D converter) is used to convert analog audio
signals from a second 3.5mm audio jack (labeled Line In) into digital audio data. It is designed to work at a wide variety of standard audio sampling
rates.
The two primary integrated circuits of the Pmod I2S2 communicate with the host board via the (GPIO protocol). As each IC uses the Integrated
Interchip Sound (I2S) protocol, several different clock lines are required, as described (below).
The CS4344 and CS5343 (henceforth referred to as the “line-out converter” and “line-in converter”, respectively) are each connected (to the host
board) via their own I2S interface. As seen in the (Pinout table) above, the line-out converter's I2S interface is connected to the top row interface of
Pmod connector J1, while the line-in converter's I2S interface is connected to the bottom row.
Any external power applied to the Pmod I2S must be within 3 V and 5.25 V; however, it is recommended that Pmod is operated at 3.3 V. Digital logic
levels must correspond to the power supply voltage.
The fastest clock signal of each I2S interface will be the Master Clock (MCLK); as the name implies, this signal will keep everything nicely
synchronized. The Left-Right Clock (LRCK), also known as the Word Select Clock, indicates whether a particular set of data is associated with the
left or right audio channel for stereo sound.
The final clock is the Serial Clock (SCLK), also known as the Bit Clock. The line-in and line-out converters can each either be provided this clock
signal, or generate it internally. More information on how the serial clocks for each converter can be found (below).
The I2S protocol requires that data is clocked in on the falling edge of SCLK. The first bit of data (MSB) is not clocked in on the falling edge until the
first complete serial clock cycle has passed after LRCK has changed state. Data must be valid on the rising edge of SCLK.
NOTE: The term “I2S input/output sample rate” refers to the frequency that a full frame of data, consisting of both the left and right channels, is
transmitted over an I2S interface.
An example timing diagram of a single I2S frame is shown below.
The line-out converter will internally derive its SCLK if it is provided at least two consecutive frames of the LRCK without providing any SCLK
signals. In this case, the line-out converter will measure the MCLK and LRCK rates and determine an appropriate SCLK rate. However, the
MCLK/LRCK ratio must meet one of several specific ratios in order to properly generate SCLK, as outlined in the table below from the CS4344
datasheet.