Delta DVP-ES3 — 6.11.2 Explanation of Timer and Counter Instructions

Chapter 6 Applied Instructions 5. Explanation of the hardware comparators for DHSCS, DHSCR, DHSCY and DHSZ instructions:  Every one group of hardware counters shares 4 high-speed comparators. One DHSCS, DHSCR or DHSCY instruction occupies 1 high-speed comparator. One DHSZ instruction uses 2 high-speed comparators. 6_  During program editing, every group of hardware counters can use 4 high-speed comparators at most for DHSCS, DHSCR, DHSCY or DHSZ instructions; otherwise, a syntax error occurs. 6. Explanation of the software comparators for DHSCS, DHSCR and DHSCY instructions:  There are 8 software comparators to compare the Set or Reset function.

Each DHSCS, DHSCR or DHSCY instruction uses one high-speed comparator.  The software comparators compare the interrupt by assigning a corresponding software comparator according to the interrupt numbers. Note that the same interrupt number cannot be used repeatedly.  For DHSCS, DHSCR or DHSCY instructions, the number of Set or Reset comparators cannot exceed eight occurrences in the program; otherwise, a syntax error occurs. 7. Explanation of the software comparators for DHSZ instruction:  There are eight software comparators for the zone comparison. One DHSZ instruction uses one comparator.

 DHSZ instruction can use a maximum of eight software comparators; otherwise, a syntax error occurs if more than eight comparators are used. 6-283 Type Range of counter numbers High-speed comparator High-speed interrupt number device number Hardware counter HC200 - HC203 Comparator: HCC00-HCC03 I200-I203 HC204 - HC207 Comparator: HCC04-HCC07 I210-I213 HC208 - HC211 Comparator: HCC08-HCC11 I220-I223 HC212 - HC215 Comparator: HCC12-HCC15 I230-I233 HC216 - HC219 Comparator: HCC16-HCC19 I240-I243 HC220 - HC223 Comparator: HCC20-HC223 I250-I253 Software counter HC232 - HC253 - I260-I267