
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
//-------------------------------------------------------//
// Project Code : V2H6K01-23-ENEMAN
// File Name : RoutineTsamp.cpp
// Created on : 2023. 8. 8.
// Description :
// Author : KimJeongWoo
// Last modified Date :
//-------------------------------------------------------//
#include "Cpu1DeviceDefine.h"
int Testpcs4 = 0;
int Adc_BUTTON = 0;
int Chk_Botton = 0;
int Chk_Botton_pre = 0;
void RoutineTsamp()
{
DacaRegs.DACVALS.bit.DACVALS = Testpcs1;
DacbRegs.DACVALS.bit.DACVALS = Testpcs2;
DaccRegs.DACVALS.bit.DACVALS = Testpcs3;
// PllRun();
Lpf1stRun();
FaultChecker();
if(Testpcs4 == 1)
{
EepromWriteAdcScale();
Testpcs4 = 0;
}
if(Testpcs4 == 2)
{
EepromReadAdcScale();
Testpcs4 = 0;
}
// receivedChar = SCI_readCharBlockingFIFO(SCIC_BASE);
// SCI_writeCharBlockingFIFO(SCIC_BASE, receivedChar);
ModbusACheckBuffer();
Chk_Botton = Din.Data.bit.Button;
if((Chk_Botton_pre == 0)&& (Chk_Botton == 1))
{
FaultReset = 1;
}
else
{
FaultReset = 0;
}
Chk_Botton_pre = Chk_Botton;
}