You are on page 1of 21

Start

Tsop =P1^0

Tsop = 1
P2=0x00

B
Start timer

If(Tsop==
0)
Counter++

If (

Counter=1
)

Stop timer

A
A

B
Start