Added the timing delay to the code that calls the Load handler functions.
This commit is contained in:
parent
c73ce58b0f
commit
fb49abc27b
|
@ -18,7 +18,7 @@
|
||||||
#include "RegEdit.h"
|
#include "RegEdit.h"
|
||||||
#include "zero_cross_detection.h"
|
#include "zero_cross_detection.h"
|
||||||
#include "ADC.h"
|
#include "ADC.h"
|
||||||
#include "TriacOut.h"
|
#include "EnOut.h"
|
||||||
#include "load.h"
|
#include "load.h"
|
||||||
#include "Enable.h"
|
#include "Enable.h"
|
||||||
#include <avr/cpufunc.h> /* Required header file */
|
#include <avr/cpufunc.h> /* Required header file */
|
||||||
|
@ -52,6 +52,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
//Enable pins are enabled(set high) if the ADCLOAD value is valid.
|
||||||
|
_delay_us(Tau);
|
||||||
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
Load_HandleLoadPortA(ADC_LOAD1, EN1);
|
||||||
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
Load_HandleLoadPortB(ADC_LOAD2, EN2);
|
||||||
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
Load_HandleLoadPortB(ADC_LOAD3, EN3);
|
||||||
|
|
Loading…
Reference in New Issue