The invention discloses a
clock domain crossing
pulse counting device and method supporting read clear, which can be applied to the technical field of
pulse counting, and the device comprises a read clear register, a
handshake mode
clock domain crossing module, a pulse driving counter and a
Gray code mode
clock domain crossing module, the read clear register is arranged in the first clock domain, one end of the read clear register is connected with the register
access bus, and the other end of the read clear register is connected with the pulse driving counter through the
handshake mode
clock domain crossing module; the pulse driving counter is arranged in a second clock domain and is connected with the read clear register through a
Gray code mode
clock domain crossing module; the data returned to the host by the read clear register through the register
access bus is consistent with the response data sent to the pulse driving counter. Therefore, the problem of pulse loss easily caused by
clock domain crossing pulse counting is avoided, the pulse driving counter can realize a read clear function based on the response data, and the accuracy of pulse counting is improved.