modbus communication done
TODO error modbus
This commit is contained in:
parent
2c949062dc
commit
f23af037a5
6
main.c
6
main.c
@ -79,12 +79,12 @@ void main(void)
|
||||
|
||||
// Disable the Peripheral Interrupts
|
||||
//INTERRUPT_PeripheralInterruptDisable();
|
||||
uint16_t foo = 512;
|
||||
|
||||
|
||||
while (1)
|
||||
{
|
||||
foo = ++foo%1023;
|
||||
EPWM1_LoadDutyValue(foo);
|
||||
|
||||
EPWM1_LoadDutyValue(holding_registers[0]);
|
||||
input_registers[0] = measure_voltage();
|
||||
uint16_t valueV = input_registers[0];
|
||||
uint16_t valueI = measure_current(offsetCurrent);
|
||||
|
Reference in New Issue
Block a user