I made my first PCB the other day and the XBee part of the program seems to keep crashing.
It is a propeller based board.
Here’s my spin code:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
XB: "XBee_Object"
VAR
'xbee properties
byte xbeeLg[20] 'only uses 16, but plus null term and need long align
byte xbeeSm[12] 'only uses 8, but plus null term and need long align
PUB Program
'...
XB.AT_Config(@xbeeNet16) ' request value
XB.Rxstr(@xbeeLg[0]) 'This is where is appears to get stuck
DAT
newln byte 13, 10, 0
xbeeNet16 byte "ATMY", 0
And "XB" is the library taken from the parallax website
This is a circuit that works fine on proto board, but doesn’t work on the PCB for ONLY the XBee portion of it.
Can you think of what I should be testing? What should I be scoping? Checking noise on the power lines?
Give me a start on where to look? What would cause an XBee to act very strangely?