Datasheet

FS98O22
Rev. 1.6 78/146
Table 7-3 PT2 register table
Address Name
Referenced
Section
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on Power on Reset
06H INTF 3/6/7/9/10/11 -- -- - E1IF E0IF 00000000
07H INTE 3/6/7/9/10/11 GIE -- -- - E1IE E0IE 00000000
24H PT2 7 PT2 [7:0] uuuuuuuu
25H PT2EN 7 PT2EN [7:0] 00000000
26H PT2PU 7 PT2PU [7:0] 00000000
27H PT2MR 7.2/7.5/8 -- -- E1M[1:0] E0M[1:0] 00000000
28H PT3 PT3 [7:0] uuuuuuuu
29H PT3EN PT3EN [7:0] 00000000
2AH PT3PU PT3PU [7:0] 00000000
2BH PT3MR
PFOE
N
E3M[1:0] E2M[1:0] 00000000
Read data Operation
1. Clear the PT2EN[n]
13
/PT3EN[n] register flags. The PT2[n]/PT3[n] will be defined as an input port.
2. Set the PT2PU[n]/PT3PU[n] register as required. The PT2[n]/PT3[n] will be connected to an internal pull
up resistor.
3. After the signal input from outside, user could get the data through PT2[n]/PT3[n]
Write data Operation
1. Set the PT2EN[n]/PT3EN[n] register flags. The PT2[n]/PT3[n] will be defined as an output port.
2. Set the PT2PU[n]/PT3PU[n] register as required. The PT2[n]/PT3[n] will be connected to an internal pull
up resistor.
3. Set the PT2[n]/PT3[n] to output the data. The embedded D Flip Flop will latch the data till PT2[n]/PT3[n]
is changed.
External Interrupt Operation (negative edge trigger for example)
1. Clear the PT2EN[n]/PT3EN[n] register flags. The PT2[n]/PT3[n] will be defined as an input port.
2. Set the PT2PU[n]/PT3PU[n] register. The PT2[n]/PT3[n] will be connected to an internal pull up resistor.
3. Set the E0M[1:0] as 00 to define INT0 interrupt trigger mode as “negative edge trigger”.
4. Set the E1M[1:0] as 00 to define INT1 interrupt trigger mode as “negative edge trigger”.
5. Set the E2M[1:0] as 00 to define INT2 interrupt trigger mode as “negative edge trigger”.
6. Set the E3M[1:0] as 00 to define INT3 interrupt trigger mode as “negative edge trigger”.
Notice Operation
1. Parallel a small resistor (about 10k ohm) between ports and VDD to increase the possible output current
when the PT2PU[n]/PT3PU[n] is set.
13
n means the bits indexes user want to control
FORTUNE'
Properties
For Reference Only