Delta AS Series Programming Manual page 778

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 2: Capture the counter value by executing DHCCMP instruction and when Match 1/ Match 2 is OFF  ON in
the other channel.
1.
Supposing you execute DHCCAP instruction on channel 2 and set TrgSel = 1, and use channel 1 for the execution of
DHCCMP. When Match 1/ Match 2 is OFF  ON on channel 1, the channel 2 is triggered to capture the current value
and stores it in Capt 1 or Capt 2. Even if you have set the setting value in Z phase of the appointed channel to Capture
in HWCONFIG, when TrgSel = 1, this capture function of Z phase input point is invalid.
The Comp 1 (Match 1) is OFF  ON on channel 2, new captured value 2000 on channel 1 is updated in Capt1 and
2.
Cmplt 1 is OFF  ON.
The Comp 2 (Match 2) is OFF  ON on channel 2, new captured value 8000 on channel 1 is updated in Capt2 and
3.
Cmplt 2 is OFF  ON.
4.
The Cmplt flag is not cleared to OFF. New captured value is still updated in Capt1 and Capt2.
5.
The external input point of channel 1 is falling-edge triggered again, it captures the counter value 11000 and stores
the value in Capt2. And the flag of Cmplt2 is OFF  ON.
Cha p ter 6 App l ied Ins truc tio ns
6_
6-499

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents