6.2.4 Task Scheduler
The Timer4 (TMR4) schedules the task for every 1 ms to execute the following functions:
- Measure the emulator three-phase signal
- Vrms calculation
- Phase-loss detection
- Phase-reversal detection
- Bind and generate the data array, as per the data stream protocol
In the application, the Data Visualizer is used for displaying the three-phase A/C signal graphical view and fault status. The three phases (L1, L2, and L3) of emulated three-phase signal are fed as input to the ADC peripheral. The converted digital data is transmitted to the Data Visualizer over a USB-UART interface to reproduce the emulated three-phase signal on Data Visualizer.
The Data Streamer array consists of instantaneous digital values of the three-phase emulated signal, frequency measured and fault status using the Data Streamer protocol.
The user can send commands from the Data Visualizer to demonstrate features of the three-phase sequence detector. The microcontroller receives user commands from the Data Visualizer through a USB-UART interface for changing amplitude (to demonstrate phase loss) and phase (to demonstrate phase reversal) of the three-phase signal in run time.