ASAHI KASEI [AK4122]
MS0267-E-03 2004/08
- 28 -
Interrupt Handling for DIR
There are nine events that cause the INT2-0 pins to go “H”.
1. UNLCK: PLL unlock state detection
“1” when the PLL loses lock. The AK4122 loses lock when the distance between two preamb les is
not correct or when those preambles are not correct.
2. PAR: Parity error or biphase coding error detection
“1” when parity error or biphase coding error is detected, updated every sub-frame cycle.
3. AUTO: Non-PCM or DTS-CD Bit Stream detection
The OR function of NPCM and DTSCD bits is output to the AUTO bit.
4. V: Validity flag detection
“1” when validity flag is detected. Updated every sub-frame cy cle.
5. AUDN: Non-audio detection
“1” when the “AUDN” bit in recover ed c hannel status indicates “1”. Updated every block cycle.
6. STC: Sampling frequency or pre-emphasis information change detection
“1” when FS3-0 or PEM bit changes. Reading 07H registe r resets it.
7. QINT: U bit (Q-subcode) sync fla g
“1” when the Q-subcode differs from old one, and stays “1” until this register is read. Updated every
sync code cycle for Q-subcode. Reading 07H register resets it.
8. CINT: Ch annel status sync flag
“1” when receive d C bit s differ from old ones, and sta ys “1” unti l this regist er is rea d. Updated e very
block cycle. Reading 07H register resets it.
9. DAT: DAT Start ID detection
When the category code shows DAT, “1” when the Start ID of DAT is detecte d. Reading 08H register
resets it.
INT1-0 pins output an OR’ed si gnal based on t he above nine int errupt events. When m asked, the interrupt e vent does not
affect the operation of the INT1-0 pins (the masks do not affect the registers (UNLCK, PAR, etc.) themselves). Once
INT0 pin goes to “H”, it maintai ns “H” for 1024 cycles (t his value can be change d by the EFH1-0 bits) afte r all events not
masked by mask bits are cleared. INT1 pin immediately goes to “L” when those events are cleared.
INT2 pin output a state change on the above 1 ∼ 5 and an OR’ed signal based on the above 6 ∼ 9. It stays “H” until 07H
and 08H registers are read. Mask bits are shared with INT0.
UNLCK, AUTO, V and AUDN bits indicate the interrupt status events above in real time. Once PAR, STC, QINT or
CINT and DAT bit goes to “1”, it stays “1” until the register is read.
When the AK4122 loses lock, the channel status bits a re initializ ed. In this initial st ate, INT0 and INT2 outputs the OR’ed
signal between UNLCK and PAR bits. INT1 outputs the OR’ed signal to AUTO, V and AUDN. INT2-0 pins are “L”
when the DI R is no t se le cte d.
When DIR is used as input port and the PLL loses lock (unlock state), the output data is muted automatically . When
AMUTE bit = “1”, SDTIO and SDTO are muted automatically when the AK4122 detects unlock, Non-Audio or
Non- PC M/DTS-CD. After the in te rrupt ev en ts are cleared, mute is cancelled automatically. W h e n AMUTE bit = “0”,
SDTIO and SDTO outputs “L” whe n the PLL loses lock (unloc k state), and outputs data when ot her errors (PAR, AUTO
etc.).