Toshiba CD332 user manual Interrupt assignment

Page 24

4. I/O Allocation

4.2 Interrupt assignment

The T3 has 8 I/O interrupt programs, I/O#1 to I/O#8.

If one interrupt generation module (CD332) is used, the I/O#1 program is assigned to the CD332. And the I/O#1 is activated when the CD332 generates an interrupt.

If two or more (up to 8) interrupt generation modules (CD332, etc.) are used, the interrupt programs are assigned sequentially from the module allocated closest to the T3 CPU.

For example, if 3 CD332s are used, the I/O#1, I/O#2 and I/O#3 are assigned sequentially as follows.

T3 basic unit

0

1

2

3

4

5

6

7

8

9

P

 

I

C

C

 

 

 

 

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

F

P

D

 

General

 

D

 

General

 

 

 

 

U

3

 

 

3

 

 

 

 

 

 

3

 

 

I/O

 

 

3

 

 

I/O

 

 

 

 

 

 

2

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Expansion unit

0 1 2 3 4 5 6 7 8 9 10

P

I

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S

F

D

 

 

 

 

General

 

 

 

 

3

 

 

 

 

 

 

 

 

3

 

 

 

 

 

I/O

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I/O#1

I/O#2

I/O#3

As for the interrupt priority, the interrupt generation module which is allocated closest to the T3 CPU has highest priority and followed by this order.

NOTE In default, the T3’s I/O interrupt program and the interrupt generation module are related as mentioned above. However user can change this relation (assignment) by using the interrupt assignment function of the T3.

For this function, refer to the T3 User’s Manual - Function.

20 Change Detect DC Input Module (CD332)

Image 24
Contents CD332 Page Important Information Page Safety Symbols Safety PrecautionsAbout This Manual About This ManualInside This Manual Related Manuals Contents Section CD332 Overview CD332 Overview IntroductionExternal features CD332Interrupt timing setting DIP switches Status LEDsInput terminals Jumper plugsSection Specifications Specifications General specificationsFunctional specifications Input signal connections Input circuitChange Detect DC Input Module CD332 Section Mode Setting Mode Setting Input delay settingInterrupt generation timing setting OFFChange Detect DC Input Module CD332 Section Allocation O Allocation I/O allocation and I/O registerIN1 Interrupt assignment Section Programming Programming T3 sample programMain Program Interrupt Program #1 I/O#1Programming Interrupt operation Programming Change Detect DC Input Module CD332 Page Toshiba Corporation