8051 uC with xbee

hi

i m workin on 8051 uC…i need to interface at89c51 with xbee in keil compiler…wats the c code for dat?

n also how to interface xbee wid pc

its software project so no hardware supplies…programmin ic in c keil in uVISION4…pls help

The XBee’s use asynchronous serial data and is spec’ed in their data sheet.

To connect to a PC the serial data lines need to be level translated to RS232 levels (google RS232) or converted to USB. SprarkFun does sell both a RS232 and a USB Explorer boards for the XBee’s. Look at their product listing under RF and also search this forum for lots of info on getting them connected and working.

Connecting to an 8051 is the same as connecting to a PIC or Aurdino. Again search this forum and look at SparkFun’s Breakout boards. Code just uses the 8051’s UART and Kiel should have libraries for that.

hey thx a lot but as i mentioned i cant use xbee boards …i m building software …so i hv downloaded n installed xctu software n i also hv interfaced xbee wid 8051…but how do i do it for pc using usb…de say driver is already der in xctu…so wat next…i mean how to interface xbee wid pc without the boards???in the forum info is available wid d boards…i m not been provided wid any hardware component…only laptop…

thx

If you can’t buy the SparkFun boards then buy an FTDI serial to USB chip (which most of the boards use) and build your own board.

Or buy the XBIB-USB board from Digi Int.

Or buy and program a PIC that has built-in USB.

XBee’s can not be connected directly to USB - their interface is asynchronous serial.

but i m not supposed to buy any hardware …i hv 2 program it in such a way that if my customer has d hardware components den my software shud work…i can only download freeware software…n pls can anyone tell me d changes to be made in .A51 file for adc0848 to be connected to AT89c51??

pls pls pls

madhugrg:
but i m not supposed to buy any hardware …i hv 2 program it in such a way that if my customer has d hardware components den my software shud work…i can only download freeware software…n pls can anyone tell me d changes to be made in .A51 file for adc0848 to be connected to AT89c51??

pls pls pls

How will your software know what hardware is connected and what data format/protocol to use?

well i hv 2 just program…i will mention dat in report…wat i need to do is do programmin in keil c compiler…i will tell in my report how to connect it…pls can anyone tell me how to do it without the hardware

heloo can anybody tell me wat changes need to be made in .A51 file to connect to adc0848???