FC11: Modbus conflict (Ard Nano)
Posted: Fri Jan 23, 2026 2:17 am
Hi
The Nano program has the timed interval, the interrupt on Int0 and the PWM component (Timer0).
All works OK
----------------------
After I add the modbus slave I have the error (during compiling):
: warning: #warning "PWM Channel Uses Resource Timer 0"
#warning "Period control register not available on target device, period will default to 255 + 1"
error: expected identifier or '(' before numeric constant
error: expected identifier or '(' before numeric constant
-------------------
Looks like Nano does not have enough timers.
Is it the case?
Should I find a different way to communicate and move away from the Modbus?
The Nano program has the timed interval, the interrupt on Int0 and the PWM component (Timer0).
All works OK
----------------------
After I add the modbus slave I have the error (during compiling):
: warning: #warning "PWM Channel Uses Resource Timer 0"
#warning "Period control register not available on target device, period will default to 255 + 1"
error: expected identifier or '(' before numeric constant
error: expected identifier or '(' before numeric constant
-------------------
Looks like Nano does not have enough timers.
Is it the case?
Should I find a different way to communicate and move away from the Modbus?