Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti


Ignore:
Timestamp:
12/27/11 10:13:32 (13 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti

    v1 v2  
    3030}}}
    3131
     32{{{
     33int bd = 1;
     34int inp = 8;
     35
     36SetDIOCounter(bd, inp, dioSetCount, 0, WAIT_ACK);
     37SetDIOCounter(bd, inp, dioSetPrescaler, 1, WAIT_ACK);
     38SetDIOCounter(bd, inp, dioSetCountUp, 0, WAIT_ACK);
     39SetDIOCounter(bd, inp, dioSetCountLowToHigh, 0, WAIT_ACK);
     40SetDIOCounter(bd, inp, dioEnableCounter, 0, WAIT_ACK);
     41
     42struct mnbd_multi_rep_counters_struct counters;
     43memset(&counters, 0, sizeof(counters));
     44
     45counters.cnt1_bd = bd;
     46counters.cnt1_input = inp;
     47
     48if(StartRepeatMulti(100, counters) == OK)
     49    DisplayText(0, 0, "Wt, I/O, cnt 10 times per second");
     50}}}
     51
    3252== See Also ==
    3353