3. Instruction Set Block diagram of hardware counters and comparators: Hardware comparator A x 4 Set /reset A1 I010 A1 Hardware counter Count value A A Set /reset I040 A4 A4 Hardware comparator B x 4 Set /reset B1 I050 B1 Hardware counter Count value B B Set /reset B4 I080 B4 7. Difference between software and hardware comparators (it is not applicable to DVP-12SE): 6 comparators are available for software counters while 8 comparators are available for 2 groups of hardware counters ( 4 comparators for each group) Output timing of software comparator count value equals to comparative value in both counting up/down modes.
Output timing of the hardware comparator with firmware version 1.xx count value equals to comparative value+1 in counting-up mode; count value equals to comparative value -1 in counting-down mode. Output timing of the hardware comparator with firmware version 2.00 and above count value equals to comparative value in both counting up/down modes. 8. Difference between software and hardware comparators (it is only applicable to DVP-12SE):
6 comparators are available for software counters while 4 comparators are available for 2 groups of hardware counters ( 2 comparators for each group) Output timing of software comparator count value equals to comparative value in both counting up/down modes. Output timing of the hardware comparator count value equals to comparative value+1 in counting-up mode; count value equals to comparative value -1 in counting-down mode. Program Example 1: Set/reset M0 by applying software comparator M1000 3-129 DCNT C235 K100 DHSCS K100 C235 M0