ISD51 User's Guide

ISDbreak

Summary
#include "isd51.h"

void ISDbreak (void);
Description

The ISDbreak routine forces execution of the ISD51 interrupt function. This allows you to hard-code breakpoints into your target program. Communication must be established with the µVision Debugger before you invoke this routine.

Note

  • The ISDbreak function sets the serial transmit interrupt flag and requires that the serial interrupt and the global interrupt flag are enabled. ISDbreak does not work inside of interrupt functions.
Return Value

None.

Example
#include "isd51.h"

void main (void)
{
.
.
.
/*--------------------------------------------
Initialize the 8051 UART.
Then, initialize ISD51 and wait until the
uVision Debugger starts.
--------------------------------------------*/
Init_UART ();
ISDwait ();

while (1)
  {
  ISDbreak();   // Halt here
  .
  .
  .
  }
}