We need to receive a data frame as an acknowledge from an XBEE which comes as a serial interrupt.We tried using the "ASSIGN" command to give a dynamic serial interrupt, with no sucesses Can you please elaborate how to dynamically give a serial interrupt.
A serial interrupt is not something you send to a device. You can configure the device itself to generate an interrupt based on a number of conditions.
Some possible conditions could be: - there are (at least) one character received and available to read. - there are (at least) one empty space in the outgoing register/fifo, allowing more data to be sent to the UART. - there has been a parity error. - there has been an overrun. - a break has been detected. - a handshake signal has changed state - ...
In this case, you must figure out exactly what your acknowledge looks like. Is it data, or movement of any handshake signal or what? First then is it possible to figure out if the ASSIGN command can help you or not.
... is described in the so-called "bible" for the 8051:
Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
And illustrated in C51 here: http://www.keil.com/download/docs/200.asp