Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20622

BASCOM-AVR : using RC5 protocol to connect two AVR's : NEWTOPIC

$
0
0
I'm trying to connect two AVR's together with RC5 code - a reason is that i will be using 433MHz transmitter later and i thought that RC5 is great way to encode/decode signals. SO, i tried to connect them with wire first: i connected TX out to RX input: -TX is mega8, i'm using program from HELP section with rc5send command, TX pin is B.1 (OCR1A) -RX is mega16, i'm also using program from HELP section (getrc5), RX pin is B.6 both are using XTAL 11059200 MHz, so i guess timings are correct. i also tried using timer2 on RX section. i just can't connect the two. I tried direct signal, inverted signal... on the oscilloscope i see pulses from TX, so rc5send is working. i tried pull-up on rx, pull-down... What am i doing wrong? result from getrc5 is only 255 for address and 127 for command... Bascom is latest version [b:a3dc4ad5d7][color=red:a3dc4ad5d7](BASCOM-AVR version : 2.0.7.7 )[/b:a3dc4ad5d7][/color:a3dc4ad5d7]

Viewing all articles
Browse latest Browse all 20622

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>