my final code it is toggling on button 6 of your sony remote.n the good thing is no interrupts or timers simple code
@ DEVICE pic16F877a, WDT_OFF ' Watchdog Timer
@ DEVICE pic16F877a,...
Type: Posts; User: engineer7; Keyword(s):
my final code it is toggling on button 6 of your sony remote.n the good thing is no interrupts or timers simple code
@ DEVICE pic16F877a, WDT_OFF ' Watchdog Timer
@ DEVICE pic16F877a,...
@cncmachineguy thanx a lot for pointing me the problem.i ve been a fool n i admit... :( the toggle function works fine... thanx v much again:D your approach has been dead on...g8 advice for...
thanks for reply everyone..
@demon and mackaraket guys the above code is working there is nth wrong with it.i just want to add an additional functionality of on/off...
@cncmachineguy i didnt...
np.you had me thinking there for a moment :)
but my problem is the same just a pulse spike of 5 volts on button press i want to keep it permantently off or on when io press the button only...
so u r saying that i should and it with 65???
BTW it works with less than 9....
here you go:
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR...
@ cncmachineguy
sir it doesnt work because
the led is high only when IRbutton is detected.... i want to keep it on forever ntil the next command without pressing the button...... is there any way??...
ok i have another question.my code is working the below one.
as i am very new to pic basic pro i just have one more question and i know that it is a piece of cake for u guys. ok in my code the...
oh right thanks let me try it out!
sir how can i output the value of a button?? im using a sony tv remote...
so i guess no way to output the value....
'include "ALLDIGITAL.pbp"
@ DEVICE pic16F877a, WDT_OFF ' Watchdog Timer
@ DEVICE pic16F877a, PWRT_OFF ' Power-On Timer
@ DEVICE pic16F877a, BOD_OFF ' Brown-Out Detect
@ DEVICE pic16F877a,...
thanku archangel sir for replying.
now the basic purpose of my project is to turn a relay on or off using sirc(sony protocol).
for this i need to decode just two keys:one for on and one for...
sir i dont think that there would be any point of turning adc off.because i am using portb for input and it is not an analog port in pic 16f877a.in this pic only porta is the analog one!!!
oh yes the header should be
header<1000
n header >1350
but i have tried wid this..
its still not working.....
sorry its a 2400 microsecond header so divide by 2 microsecond get 1200!!!!
1200!!!!
as im using 20mhz crystal which has a resolution of 2microseconds.
and the sony header is of 2400milliseconds so you get 1200 milliseconds...
ok thanks a lot:)
:mad: here is my code:
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR...
sir i have gone through the link which you have given. but i cant seem to find the command for which to turn the ADC off. plz help in this regard.im using picbasic pro.
n secondly
if i take my...
ok.got it.thanks a lot sir! :)
thanks a lot sir.you saved my day.n i just wana ask one more think.it is that i am using PULSIN function.so for that particular function do i have to add any configuration fuses or not???
i have a very strange and one can say an ironic problem.
i have this simple code of checking led high:
'****************************************************************
'* Name :...
here is my code:
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR...
ok thanks everyone.4 pointing me in the right direction!
archangel sir i checked.there is no problem with the declarations.in this compiler one can declare the variables both ways.may be something wrong with the logic....
IF P_VAL>=600 THEN...