
8. HIGH SPEED COUNTER MODULE CONNECTIONS B-61813E/03
−96−
Example 3 : To set comparison register B to a desired comparison
value, follow the steps below.
(1) Set DTOH, DTOM, and DTOL to the desired comparison value.
(2) Set SELECT to 011.
(3) Reverse the setting of the PRS (from 0 to 1 or from 1 to 0).
(4) Wait for two scanning periods.
The result of comparing comparison registers A, B, and C with the
pulse counter is output via OUT0 to OUT2 of connector C49 of this
counter module (A → OUT0, B → OUT1, and C → OUT2).
Their output status is output via OUT0 to OUT2 of the LED indication
panel (A → OUT0, B → OUT1, and C → OUT2).
The result of comparison can be confirmed by checking STTS bits 0, 1,
and 2 (CMPA, CMPB, and CMPC) with the PMC.