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
ne for on and one for off.or maybe just one key that if a user presses a button 5v appear on output pin and if it presses the same button then it turns off!!this is one point...
the next point is that the above code is working for
Code:
if IRBUTTON >=0 and IRBUTTON < 255 then
but not working for
if irbutton=16 then high sony led '16 is for channel up
it is not working for this the above command
this is the second point...
and the third point is that i dont understand this
One more thing, I think portB inputs default to weak pull ups on, turn them off in the option register.
EDIT: Nope default off. Easy to check with a hi impedance voltmeter though... cant understand this
Bookmarks