13.07.2015 Views

MC8121 - abov.co.kr

MC8121 - abov.co.kr

MC8121 - abov.co.kr

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MC8121</strong>ALS InterruptAn ALS interrupt can be requested when ALS CH0 ADC result is greater than or equal to AITH or lessthan AILT after one ALS cycle. If APER(ALS Persistence) value is non-zero, it is needed the ALS CH0ADC results are out of range APER <strong>co</strong>nsecutive times. The result of interrupt judgement for ALS isstored into AINTF bit in INTR register.There are two kinds of output mode, level or pulse interrupt. Below is the description of the levelinterrupt type.Transition from H to L in INT pin means that an interrupt <strong>co</strong>ndition is generated, and the INT pinremains L level until the interrupt flag(AINTF) is cleared. ALS interrupt is cleared by writing 0 to it’sflag bit in INTR register.Interrupt generatedInterrupt clearedINT pin(IEDGE=0)HighLowINT pin(IEDGE=1)HighLowabout 1.4usFigure 2-9 ALS CH0 Interrupt output (level or pulse interrupt)HighAIHTAILTLow(APER=1)INTclear AINTF clear AINTF clear AINTFAINTF0 1 0 1 0 1 01(APER=2)INTAINTF 0 1 0 1 01Figure 2-10 ALS Interrupt Output (APER=1 or 2 & INTEDGE=0)24 May 2013 REV1.61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!