Mitsubishi — 14.3 Capture Function

14 High Speed Compare and Capture Capture initial setting: apply 1 set of Capture (n=0). FROM/TO 6 pieces of data. Capture setting: n=0, Source: C204(b[3:0]=4); Enable Capture function(b[5:4]=0); Trigger switch of Capture function: X_DOG(b[15:12]=5. M1 M2 M3 M4 M5 Sequential control process: Step 1: Initial setting for Capture function when O100 is activated to set ON M1002: (1) D0 = 0 Ж Specify the number of the starting set. n = 0 indicates the first set. (2) D1 = 0 (3) D20 = 6 Ж Set up data length for TO instruction: 6 words, 1 set of data for Capture function (4) D60 = 6 Ж Set up data length for FROM instruction: 6 words, 1 set of data for Capture function. Step 2: Set M1.

Specify the data for Capture function in control registers and data registers. DVP-PM Application Manual 14-9 02 MOV K0 D0 MOV K0 D1 MOV K6 D20 MOV K6 D60 1 MOV H5004 D2 MOV K100 D4 RST M1 2 TO K253 K1 D0 D20 RST M2 3 FROM K253 K1 D40 D60 RST M3 4 MOV K1 K1M1204 SET M5 RST M4 DCNT C204 K10