MrDEB
Well-Known Member
Boy lots of info. They are using the same RF module I an using but I am not going to use a coder/decoder.
I am still hung up on using a 7555. Need to research the capture mode on a pic.
Simplistic idea =
for x = 0 to 100
if PORTB=1 then
count = count +1
next
if count <= 100 then sw1 = 1
or
count >= 500 then sw2=1
This is where I am headed. sw1 = 200 pulses in 100ms(depending on how long 0-100 takes)
sw2 = 500 pulses
I know its not correct but I was thinking CASE statements. If I use else I might have an issue if the receiver receives too many 0's.
Hopefully you get my drift??
I am still hung up on using a 7555. Need to research the capture mode on a pic.
Simplistic idea =
for x = 0 to 100
if PORTB=1 then
count = count +1
next
if count <= 100 then sw1 = 1
or
count >= 500 then sw2=1
This is where I am headed. sw1 = 200 pulses in 100ms(depending on how long 0-100 takes)
sw2 = 500 pulses
I know its not correct but I was thinking CASE statements. If I use else I might have an issue if the receiver receives too many 0's.
Hopefully you get my drift??