Datasheet
FS98O22
Rev. 1.6 85/146
Table 7-7 PT2[7] 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
24H PT2 7 PT2 [7:0] uuuuuuuu
25H PT2EN 7 PT2EN [7:0] 00000000
26H PT2PU 7 PT2PU [7:0] 00000000
Read data Operation
1. Clear the PT2EN[n]
21
register flags. The PT2[n] will be defined as an input port.
2. Set the PT2PU[n] register as required. The PT2[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]
Write data Operation
1. Set the PT2EN[n] register flags. The PT2[n] will be defined as an output port.
2. Set the PT2PU[n] register as required. The PT2[n] will be connected to an internal pull up resistor.
3. Set the PT2[n] to output the data. The embedded D Flip Flop will latch the data till PT2[n] is changed.
Buzzer Output Operation
1. Set the PT2EN[7] register flags. The PT2[7] will be defined as an output port.
2. Please refer to Section 5.4 for the Buzzer Clock setting.
3. Set the BZEN register flag. The PT2[7] will become the buzzer output port.
4. Connect a buzzer to PT2 bit7. The Buzzer will work correctly.
Notice Operation
1. Parallel a small resistor (about 10k ohm) between ports and VDD to increase the possible output current
when the PT2PU[n] is set.
21
n means the bits indexes user want to control
FORTUNE'
Properties
For Reference Only