6 interrupt processing, Interrupt processing, Gpio interrupt – Maxim Integrated 73M1866B/73M1966B Implementers Guide User Manual
Page 24: 6 interrupt, Processing

73M1866B/73M1966B Implementer’s Guide
UG_1x66B_016
24
Rev. 1.3
6 Interrupt Processing
During the course of operation the 73M1x66 can be expected to generate interrupts when errors or other
events occur that require immediate action. Each interrupt source corresponds to a bit in register 0x03.
This section will cover each interrupt and the appropriate actions to process it. The registers used in the
procedure are:
0x03
GPIO7
GPIO6
GPIO5
PCLKDT
RGMON
DET
SYNL
RGDT
Read
?
?
?
?
?
?
?
?
0x05
ENGPIO7 ENGPIO6 ENGPIO5 ENPCLKDT ENAPOL
ENDET
ENSYNL ENRGDT
Write
X
X
X
X
1
X
X
X
The temporary variables defined in the procedure are:
IntSrc = Interrupt sources (read from Register 0x03).
GPIO[7:5] bits indicate a
PCLKDT bit indicates a PCLK error:
DET bit indicates a line condition error:
SYNL bit indicates a barrier failure:
RGMON and RGDT bits indicate a line signal detection: RGDT and RGMON Interrupts.
Begin
1. Wait for Interrupt.
2. Read Register 0x03 to determine the interrupt source(s), to clear the register value and de-assert the
INT pin (IntSrc = RG03).
3. Read RG05 (IntMsk = RG05.
4. Set ENAPOL = 1 (write xxxx_1xxx to RG05).
5. Process each interrupt source.
6. Re-enable interrupts set RG05 = IntMsk.
7. goto 1.
End
6.1 GPIO Interrupt
GPIO interrupts are a user dependent function controlled through the POL and ENGPIO registers.
Please refer to the 73M1866B/73M1966B Data Sheet for their individual functionality. The functional
requirements of the software to handle a GPIO interrupt are user dependent.
0x05
ENGPIO7 ENGPIO6 ENGPIO5 ENPCLKDT ENAPOL
ENDET
ENSYNL ENRGDT
Write
1
1
1
X
1
X
X
X
0x06
POL7
POL6
POL5
Res
Res
Res
Res
Res
Write
0/1
0/1
0/1
X
X
X
X
X
Set the ENGPIO[7:5] bits of RG05 to enable the corresponding GPIO[7:5] interrupt(s).
Set the POL[7:5] bit of RG06 to the desired polarity.
Begin
1. If GPIO7 or GPIO6 or GPIO5 = 1 (IntSrc[7:5]
≠ 0) then goto user defined GPIO Interrupt Processing.
End