DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

Pointer

I

For interrupt

 

I000/I001(X0),

 

I100/I101(X1),

 

I200/I201(X2),

 

I300/I301(X3),

 

I400/I401(X4),

External interrupt

I500/I501(X5),

 

I600/I601(X6),

 

I700/I701(X7), 8 points

 

(01, rising-edge trigger

 

 

 

 

, 00, falling-edge

 

 

 

 

 

 

 

 

 

trigger

 

 

)

 

 

 

 

 

 

Timer interrupt

I602/I699, I702/I799, 2

points (Timer

 

resolution=1ms)

 

 

High-speed counter

I010, I020, I030, I040,

I050, I060, I070, I080, 8

interrupt

points

 

Communication

I140(COM1: RS232),

I150(COM2: RS-485),

interrupt

I160(COM3: RS-485), 3

 

points

The location point of interrupt subroutine.

Nest Level Pointer N: used with instruction MC and MCR. MC is master start instruction. When the MC instruction is executed, the instructions between MC and MCR will be executed normally. MC-MCR master control instruction is nested level structure and max. 8 levels can be applicable, which is numbered from N0 to N7.

Pointer P: used with application instructions CJ, CALL, and SRET.

CJ condition jump:

When X0 = ON, program will jump from address 0 to N (designated label P1) and keep on the execution. Instructions between 0 and N will be ignored.

When X0 = OFF, program will execute from 0 and keep on executing the followings. CJ instruction won’t be executed at this time.

0

P1 N

X0P**

CJ P1

X1

Y1

X2

Y2

CALL subroutine, SRET subroutine END:

When X0 is ON, program will jump to P2 to execute the designated subroutine. When SRET instruction is executed, it returns to address 24 to go on executing.

2 - 52

Page 84
Image 84
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual CJ P1