I work in comunication between XBEE devices (version 1) I use different types of PIC micros, 12F families, 16F families and 18F families and I program over CCS PIC-C Compiler(PCWHD 4.06).
Now I have some problems, In general the API commands work fine, except the API commands for remote command set or query, the papers of digi has a poor information about the API commands and no more papers for dig.
All the above works in X-CTU for a host Xbee device and one PCB with PIC12F675 & PIC16F88 send data through Xbee to host (Baud rate at 57600 bps).
When I used a PIC18F4520 for receive data from Xbee host, the Xbee data is corrupted, the expected number of data are received, but each data is wrong!!!
The PIC and Xbee are supplied by 3.3V from a LF33CV LDO regulator. The input voltage for LF33 is supplied for a 7805C 5V regulator, using a scope, I’ve seen a ripple voltage around the 0.5Vpk-pk, and I think this is a serious problem, I need to elminate this ripple. Maybe this ripple affects the receiver data integrity.
In other hand, using pins and jumpers I can configure the use of PIC UART of the MAX232 or a PC serial port( Note this, de MAX232 use a 5V power supply) and remember The above, This method is working.
About programming I been using more than one interrupts, for serial receiver, for external pin change, for change in port, and sofware uarts.
I have so interested in share code.
please send me your commensts and questions to email@example.com.
Users of PIC micro, maybe we can develope together a better interfaces to Xbee!!!.