Help controlling two brushless motors in position mode (closed loop AS5048) UNO.

Hello everyone.

My goal is to connect 2 brushless motors using L6234 as power stage, these motors are equipped with an absolute encoder each (AS5048), which I am connecting to using the SPI (CLK, MISO and ports 7 and 8 as Chip Select for the two encoders).

I need all 6 PWM as each motor uses 3.

I am modifying the PWM to switch at high freq (higher than the standard 1 kHz).

Is there a way I can modify something to not use port 11 as the MOSI port for the SPI (no MOSI at all, or change it to another non-PWM port such as 4)?

You can see part of the work Im doing on this video (pwm is at 1kHz in that video, so you actually hear a lot of noise). I need to accomplish that, but now adding a second motor 8)

Is there a way I can modify something to not use port 11 as the MOSI port for the SPI

Sure. Use a Mega. The MOSI pin is then pin 51.

next an Arduino message said

The context for this statement is completely missing.

sorry Paul S, It was a rant... frustrated with the Due. I upgraded to a Due to see if I could solve this issue.