serial port (XBEE+MBLAB)

Hello,

I am trying to acess the serial port using MPLAB.I am actually trying to write and read data from the XBEE device using the commands by X-CTU.Can anyone please tell me how to read and write data into xbee by acessing serial port using MBLAB+X-CTU.

thank you

A lot depends on whether the XBee is using AT or API firmware. If using AT, the radio is basically in transparent mode, and will pass the data which appears on the radio’s UART. If using API firmware (or API box is checked on PC Settings page), your data will need to be formed into API packets first, details of which can be found in the OEM manual for the type of rf module you have.