DMX/RDM protocol signal receiving and processing method and single-chip microcomputer

The invention discloses a single-chip microcomputer and a DMX/RDM protocol signal receiving and processing method. The receiving and processing method comprises the steps that S10, a starting signal and a waiting signal of a DMX/RDM protocol are received through external interruption of an IO port;...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CAI MAZHAO, WANG SHENGLI, LI SHANGBAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a single-chip microcomputer and a DMX/RDM protocol signal receiving and processing method. The receiving and processing method comprises the steps that S10, a starting signal and a waiting signal of a DMX/RDM protocol are received through external interruption of an IO port; step S20, judging whether the start signal and the waiting signal are successfully received or not, and if so, executing step S30; if not, executing the step S10; step S30, receiving a command signal of a DMX/RDM protocol through a serial port of the IO port; step S40, judging whether the command signal is successfully received, if so, executing step S50, and if not, executing step S10; s50, generating a reply signal according to the command signal; and step S60, judging whether the reply signal is successfully sent, and if not, executing the step S10. By implementing the technical scheme of the invention, the single-chip microcomputer can open and recover the external interruption function of the IO port in time w