Download user manual
Transcript
Linux driver development User’s Manual Edwin Version: <2.4> Date: 8/3/2004 4.4.2.2.3 mode 2 mode 2 is similar, but has 2 timers, a major timer (trig.timeval) and a minor timer (trig.timeval1). Taking the previous example, but with a major timer of 1000 us and a minor timer of 100 us, inputs are measured at these times: time chan +0 us 2 +100 us 4 +200 6 +1000 2 +1100 4 +1200 6 4.4.2.2.4 mode 3 mode 3 is like mode 1, except that an external trigger is used. If t(n) represents the time of the nth trigger, inputs are measured at the following times: time chan t(1) 2 t(2) 4 t(3) 6 t(4) 2 t(5) 4 t(6) 6 4.4.2.2.5 mode 4 mode 4 uses an external trigger and a minor timer. With a minor timer of 100 us, we get: time chan t(1) 2 t(1)+100 us 4 t(1)+200 us 6 t(2) 2 t(2)+100 us 4 t(2)+200 us 6 As a bit of background, mode 2 & 4 are the most useful. Mode 1 is the only supported by many boards. Mode 3 is the only supported by a few boards. Mode 3 could be useful to synchronize multiple boards, if the master board is capable of exporting a trigger signal. 4.4.2.3 Trigger mode example #include <stdio.h> Confidential Advantech Automation Corporation, 2001 Page 21 of 41