 | ISD51 User's Guide |  |
|
|
| ISDinit| Summary |
#include "isd51.h"
void ISDinit (void);
| | Description | The ISDinit routine initializes ISD51 for communication with the µVision Debugger. It does not wait for communication to be established. After invoking this routine, your target program continues execution normally. | | 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.
--------------------------------------------*/
Init_UART ();
ISDinit ();
while (1)
{
/*--------------------------------------------
Check to see if the uVision Debugger started.
--------------------------------------------*/
ISD_check();
.
.
.
}
}
|
|
|