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

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

$
0
0
I already did play with RFM22B modules, but they are sooo complicated, i'd almost need a college degre to undesrstand it... HMTRP module is quite nice and simple, but a bit more expensive...i wanted to buy it in my local store, but they ran out of them...but i will try them out soon...what i like there is a capability to change TX power and monitor RSSI value. However, i did manage to find this site: [url]http://www.roboternetz.de/community/threads/5068-Funk%C3%BCbertragung-mit-Bascom-%28-L%C3%B6sungsansatz-%29[/url] it's in german, but there's a sample of manchester encoding, with start bytes, 4 bytes of data and CRC checking. it took me a while to get it work, mainly because i changed clock frequency and so i managed to corrupt timer and timing values. So, if anyone intends to try out, a second code is definitely working( from space teddy, 3rd page). BUT, a piece of advice: DON'T change frequency! OK; you can change that 7362700 to 8 MHz in TX section, but that's all. unless you know what you're doing, of course. What i don't undestand in that program is timer0 in RX section, though...a guy loads 8bit timer with 16 bit value...?? With settings below about 80' uS is achieved, crystal is 8 MHz [code:1:8e471e6a66]Const Reload = 256 'Timerreload ... Const Timer0_reload = - Reload '--> 65535 - reload ... 'Timer einstellen+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Config Timer0 = Timer , Prescale = 1 On Timer0 Timer0_overflow Enable Timer0 Enable Interrupt [/code:1:8e471e6a66] But for now, all is working just great - and with 2 euro modules (RFM83C/RFM85). If it will continue to work, then i win!

Viewing all articles
Browse latest Browse all 20608

Trending Articles



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