 | ISD51 User's Guide |  |
|
|
| ISDwait| Summary |
#include "isd51.h"
void ISDwait (void);
| | Description | The ISDwait routine initializes ISD51 for communication with the µVision Debugger and waits until communication is established. This function returns after the µVision Debugger connects with ISD51. | | Return Value | None. | | Example |
#include "isd51.h"
void Init_UART (void)
{
T2CON = 0x34; /* Use Timer 2 For Baudrate */
RCAP2H = 0xFF;
RCAP2L = 0xD9; /* 19,230 Baud @ 24MHz */
SCON = 0x50; /* Enable UART */
EA = 1; /* Enable Global Interrupts */
}
void main (void)
{
.
.
.
/*--------------------------------------------
Initialize the 8051 UART.
Then, initialize ISD51 and wait until the
uVision Debugger starts.
--------------------------------------------*/
Init_UART ();
ISDwait ();
while (1)
{
.
.
.
}
}
|
|
|