Ch ap te r 7 High-s pee d C oun ter Modu le AH0 2HC /AH0 4HC7 - 1 92. Bit 1 in CR0/CR28/CR56/CR84: If bit 1 in CR0/CR28/CR56/CR84 is turned ON, the samplingregister/accumulation register/pulse input register, and bit 1 in CR19/CR47/CR75/CR103 will bereset. After the sampling register/accumulation register/pulse input register, and bit 1 inCR19/CR47/CR75/CR103 is reset, bit 1 in CR0/CR28/CR56/CR84 will be turned OFFautomatically.a. If bit 1 in CR0/CR28/CR56/CR84 is turned ON, the sampling register/accumulationregister/pulse input register will be reset to 0 immediately.b. If the linear accumulation is larger than the maximum value 999999999 or less than theminimum value -999999999, the accumulation register will stop counting, the value in theaccumulation register will be 999999999 or -999999999, and bit 1 inCR19/CR47/CR75/CR103 will be turned ON. If bit 1 in CR0/CR28/CR56/CR84 is turnedON, the accumulation counter will be reset, bit 1 in CR19/CR47/CR75/CR103 will beturned OFF, and the linear accumulation can be executed.3. Bit 2 in CR0/CR28/CR56/CR84: If bit 2 is turned ON, bit 2 in CR19/CR47/CR75/CR103 will bereset. After the circular accumulation is reset, bit 2 in CR0/CR28/CR56/CR84 will be turned OFFautomatically.If the circular accumulation is larger than the maximum value 999999999 or less than theminimum value -999999999, bit 2 in CR19/CR47/CR75/CR103 will be turned ON. If bit 2 inCR0/CR28/CR56/CR84 is turned ON, the value in the accumulation register will be cleared,and bit 2 in CR19/CR47/CR75/CR103 will be turned OFF.4. Bit 3 in CR0/CR28/CR56/CR84: If bit 3 in CR0/CR28/CR56/CR84 is turned ON, bit 3 inCR19/CR47/CR75/CR103 will be reset. After bit 3 in CR19/CR47/CR75/CR103 is reset, bit 3 inCR0/CR28/CR56/CR84 will be turned OFF automatically.If the value in the accumulation register meets the comparison condition set, bit 3 inCR19/CR47/CR75/CR103 will be turned ON. If bit 3 in CR0/CR28/CR56/CR84 is turned ON,bit 3 in CR19/CR47/CR75/CR103 will be turned OFF.5. Bit 6 in CR0/CR28/CR56/CR84: If bit 6 in CR0/CR28/CR56/CR84 is turned ON, the error flagwill be cleared. After the error flag is cleared, bit 6 in CR0/CR28/CR56/CR84 will be turned OFF.If bit 0 in CR0/CR28/CR56/CR84 is turned from OFF to ON, and related parameters are setincorrectly, the system will automatically judge that there is an error, and bit 6 inCR19/CR47/CR75/CR103 will be turned ON immediately. Users can read the error code inCR26/CR54/CR82/CR110. If bit 6 in CR0/CR28/CR56/CR84 is turned ON, bit 6 inCR19/CR47/CR75/CR103 will be turned OFF.7.9.2 Input Pulse TypeCH0 CH1 CH2 CH3High word Low word High word Low word High word Low word High word Low word- #1 - #29 - #57 - #85Bit 1 Bit 0 Description0 0 Double pulse (counting up/counting down)0 1 Single pulse (pulse/direction)1 0 One time the frequency of A/B-phase inputs1 1 Four times the frequency of A/B-phase inputs7.9.3 Frequency of an Input PulseCH0 CH1 CH2 CH3High word Low word High word Low word High word Low word High word Low word- #2 - #2 - #2 - #2[Description]The function is used to set the frequency of an input pulse which needs to filtered.1. Filter coefficient 4N285000 (kHz); N=0~19