3 Functions of Devices in DVP-PM The program of step 3 and step 4 is as below: X0 K1M1204 K10 In O100 main program, design the 2 nd set of high speed counter with both A/B phase counting mode and reset function by setting K1M1024 = HA, i.e. b0/b1 = K2 and b3(M1207) = 1. When the instructions execute, C204 will start the counting. If the reset signal input X11- is triggered, the value in C204 will be reset immediately. Function Group: High Speed Timing Number: M1200/C201, M1204/C205, M1208/C209, M1212/C213, M1216/C217, M1220/C221 Explanations: DVP-10PM provides 6 sets of high speed timers as the table below: Example 1: Use the 3 rd set of timer and set up the timing mode as Normal mode: 1.
In O100 main program, design the 3 rd set of high speed timer with normal timing mode by setting K1M1208 = K4, i.e. b0=0, b2 = 1. 2. Execute the program and C208 will start to time the interval from rising edge to falling edge of the start signal X12. The timed interval will be stored in C209 with the timer resolution 0.01us as the timing diagram below: X12 t1 t2 t C209 C209 Normal mode. Unit: 0.01μs The example program of step 1 and step 2 is as below: DVP-PM Application Manual 3-41 MOVP HA DCNT C204 Timer Timing mode Start signal Storage timer Device b0 / b2 1st set C200 K1M1200 Bit3 Bit2 Bit1 Bit0 Start Mode x x timing setting b0 = 0: Normal mode.
The timing interval is from the rising edge to the falling edge. b0 = 1: Cycle mode. The timing interval is from one rising edge to the next rising edge b2 = 1: Enabing high speed timing function X10 C201 2nd set C204 K1M1204 X11 C205 3rd set C208 K1M1208 X12 C209 4th set C212 K1M1212 X13 C213 5th set C216 K1M1216 X0 C217 6th set C220 K1M1220 X1 C221 Bit3 Bit2 Bit1 Bit0 x Start timing x Mode setting 2