can any one help i need to turn on 1 pin of a pic16f84a for 3 min then off for 3 min repeted for 15 mins then off for 45 min here is the code i have tryed
i use microcode studio and pic basic pro
'************************************************* ***************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2007 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 7/2/2007 *
'* Version : 1.0 *
'* Notes : *
'* : *
'************************************************* ***************
b0 var byte
b1 var byte
b2 var byte
trisb.1 = 0
seqsta:
b0 = 1
b1 = 0
portb.1 = b0
sleep 180
if b2 = 3 then slep
for b2 = 0 to 3
b1 = b0 * 2
b0 = b1
portb.1 = b0
sleep 180
next b2
slep:
sleep 2700
goto seqsta
any help with this would be much apprecated
Bookmarks