Xbee wrong characters recieved - please help
Hi all,
I've a wierd one, I've got a pile of various xbee's and PICAXE's and my program works perfectly at 2400bps on everything I've built. When sped up to 4800bps (yes both code and xbee) it works perfectly only on 18x's on REVED's AXE210 board.
At 4800bps on a 28x1 or a 40x1 the received characters are shifted, a space (dec 32) comes out as @ (dec 64) and "a" (dec 97) comes out as a symbol (dec 193) so everything is screwy.
Characters sent from the PICAXE to the xbee come through perfectly (PC running hyperterm to test), it's just recieving into the PICAXE which isn't right.
I've built 2 different versions and tried straight off their AXE210 board to the 28/40 always the same thing. I have precision voltage regs running at 3.306 and dead on 5v as the supplied zetex one's were rubbish.
I suspected timing and tech support thought so too and suggested using setfreq em4 or e4 to test, does exactly the same thing.
Anyone think I need to pull up or down the serial input? or the rest of the inputs? or put in a cap? or that the tollerances of the 28/40 dont like 3.3v logic when running that fast?
I'm running short of ideas?
Miles
________
buy vapir vaporizer
Hi all,
I've a wierd one, I've got a pile of various xbee's and PICAXE's and my program works perfectly at 2400bps on everything I've built. When sped up to 4800bps (yes both code and xbee) it works perfectly only on 18x's on REVED's AXE210 board.
At 4800bps on a 28x1 or a 40x1 the received characters are shifted, a space (dec 32) comes out as @ (dec 64) and "a" (dec 97) comes out as a symbol (dec 193) so everything is screwy.
Characters sent from the PICAXE to the xbee come through perfectly (PC running hyperterm to test), it's just recieving into the PICAXE which isn't right.
I've built 2 different versions and tried straight off their AXE210 board to the 28/40 always the same thing. I have precision voltage regs running at 3.306 and dead on 5v as the supplied zetex one's were rubbish.
I suspected timing and tech support thought so too and suggested using setfreq em4 or e4 to test, does exactly the same thing.
Anyone think I need to pull up or down the serial input? or the rest of the inputs? or put in a cap? or that the tollerances of the 28/40 dont like 3.3v logic when running that fast?
I'm running short of ideas?
Miles
________
buy vapir vaporizer
Last edited: