Patent ID: 11860200
Assignee: TENDYRON CORPORATION
Field: Telecommunications (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 0:
1. A zero crossing point signal output method, comprising:
continuously receiving zero crossing point square wave signals input by a zero-crossing detection circuit, and periodically sampling each zero crossing point square wave signal at a predetermined sampling frequency;
acquiring a sampling number of each zero crossing point square wave signal in 1st to Mth zero crossing point square wave signals to obtain sampling numbers of M zero crossing point square wave signals, calculating an average value of the sampling numbers of the M zero crossing point square wave signals to obtain an average sampling number S, and calculating a first zero crossing point interval T1 based on the average sampling number S and the predetermined sampling frequency; and setting a zero crossing point signal output interval as the first zero crossing point interval T1, where M is a predetermined value and is a positive integer greater than or equal to 1;
continuously outputting zero crossing point signals with an interval being the zero crossing point signal output interval; obtaining a sampling number of each zero crossing point square wave signal in M+1th to M+Nth zero crossing point square wave signals to obtain sampling numbers of N zero crossing point square wave signals, calculating a difference value between each of the sampling numbers of the N zero crossing point square wave signals and the average sampling number S to obtain N sampling number difference values, and summing the N sampling number difference values to obtain an accumulated difference value Δs, where N is a predetermined value and is a positive integer greater than or equal to 1;
calculating, when Δs is not within a predetermined change range, a second zero crossing point interval T2 in accordance with a predetermined rule, and setting the zero crossing point signal output interval as the second zero crossing point interval T2; and when Δs is within the predetermined change range, keeping the zero crossing point signal output interval unchanged; and
continuously outputting zero crossing point signals with an interval being the zero crossing point signal output interval.