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