Yes, but once you get to that number of potentially time conflicting peripherals you may be better using an interrupt driven strategy.Hi I,
I think you're correct with 20mS period?
This suggestion, is a bit beyond me, but is it possible to have 'say' a 1mS period, and cycle through the UART section, and the SERVO section, and the SPI section, only using FLAGS to interact with each of them?
C.
Tell me more about the servo section. It seems to have 7 servos and every 20mS you adjust the position & direction from/to some array. There's no obvious connection to real servos and no apparent timing issues in that 'for' loop...