erwin4838
Member level 1
- Joined
- Mar 4, 2012
- Messages
- 32
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Tangerang-indonesia
- Activity points
- 1,478
dear all my friend
i have a sample source code in BASCOM,this fungtion only for on/off
please guide me to change this source code,for the fungtion :
portb is active after wait 3 sec,and then portb is inactive after pind.5 NC(Normaly Close) repeat in 7 times
thanks for u attention:smile:
i have a sample source code in BASCOM,this fungtion only for on/off
Code:
$regfile = "attiny2313.dat"
$crystal = 1000000
Ddrb = &B11111111 'output
Ddrd = &B00000000 'input
Portd = &B11111111 'pull up
Do
If Pind.5 = 0 Then
Portb = &B11111111
End If
If Pind.2 = 0 Then
Portb = &B00000000
End If
Loop
please guide me to change this source code,for the fungtion :
portb is active after wait 3 sec,and then portb is inactive after pind.5 NC(Normaly Close) repeat in 7 times
thanks for u attention:smile: