ZHCSIM2D June 2010 – August 2021 PCM9211
PRODUCTION DATA
The PCM9211 has two pins that are used to inform the system DSP or controller that there is an error, or an interrupt that it should be aware of.
The ERR/INT0 and NPCM/INT1 pins can be configured in these ways:
HARDWARE PIN | OPTIONS |
---|---|
ERR/INTO0 | DIR Error (default), INT0 or Hi-Z |
NPCM/INT1 | DIR NPCM (default), INT1 or Hi-Z |
When configured as direct DIR error connections (ERR, NPCM), the system audio processor typically treats them as dedicated interrupt pins to change or control audio processing software. An example would be that the system may mute if an ERR signal is detected. Another example is that if the DSP receives an NPCM interrupt, it begins looking for AC-3 or DTS preambles in the incoming encoded S/PDIF stream.
For more advanced users, the two pins can be set up as interrupt sources. The seven interrupt sources (ERROR, NPCM, DTS-CD/LD, Emphasis, Channel Status Start, Burst Preamble Start, fS Calculator Complete) can be masked into Registers INT0 and INT1.
Upon receipt of an interrupt source (such as fS Calculator Complete), INT0 or INT1 performs a bitwise evaluation of AND (&) with an inverted mask [Register 2Ah (INT0) and Register 2Bh (INT1)], then perform an eight-way OR of the data. If the output is 1, then INTx is set to 1, which can be used to trigger an interrupt in the host DSP. The host can then poll the INTx register to determine the interrupt source. Figure 7-17 shows the logic that the device uses to mask the DIR interrupts from the INTx register.
Once the register is read, each of the bits in the register (INT0 and INT1) are cleared. If the signal is routed to ERR/INT0 or NPCM/INT1, the output pin is also cleared.
By default, the mask registers are set to mask all inputs; that is, all inputs are rejected, in which case no interrupt can be seen on the output until the mask is changed.
A block diagram for the error output and interrupt output is shown in Figure 7-18.
There are several allowable error sources from the DIR:
The error sources can be selected using Register 25h.
There are also several interrupts within the device that can be masked:
Each interrupt source can be masked by Register 2Ah (INT0) and Register 2Bh (INT1).