The invention discloses a CPLD (
Complex Programmable Logic Device)-based sine and cosine
encoder decoding method and device and a medium, and the method comprises the steps: executing a
signal conditioning action and a dynamic setting action for an original differential
signal, and obtaining a standardized setting
signal; for an absolute position signal in the setting signal, calculating a corresponding initial absolute position through a preset arc tangent table, and performing
scale transformation on the initial absolute position to obtain a corresponding absolute position starting point; and for increment sine and cosine signals in the setting signals, calculating corresponding
subdivision position values through a preset arc tangent table, and outputting absolute position information based on a difference value between the
subdivision position values at different moments through position integration. According to the invention, the precision is improved, the real-time performance is improved, the dynamic adaptability is enhanced, the
system architecture is simplified, the cost is reduced, the reliability and robustness are improved, and the full-band performance is excellent.