09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IEnable Enables interrupts<br />

Example<br />

IEnable (Interrupt Enable) is used to enable interrupts during program execution.<br />

IDisable;<br />

FOR i FROM 1 TO 100 DO<br />

character[i]:=ReadBin(sensor);<br />

ENDFOR<br />

IEnable;<br />

Program execution<br />

Syntax<br />

No interrupts are permitted as long as the serial channel is reading. When it has<br />

finished reading, interrupts are once more permitted.<br />

Interrupts which occur during the time in which an IDisable instruction is in effect, are<br />

placed in a queue. When interrupts are permitted once more (IEnable), the interrupt(s)<br />

of the program then immediately start generating, executed in “first in - first out” order<br />

in the queue.Program execution then continues in the ordinary program and interrupts<br />

which occur after this are dealt with as soon as they occur.<br />

Interrupts are always permitted when a program is started from the beginning,. Interrupts<br />

disabled by the ISleep instruction are not affected by the IEnable instruction.<br />

IEnable‘;’<br />

Related information<br />

Described in:<br />

Summary of interrupts <strong>RAPID</strong> Summary - Interrupts<br />

Permitting no interrupts Instructions - IDisable<br />

<strong>RAPID</strong> Reference Manual 8-IEnable-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!