- Power stages [IFX007](https://www.infineon.com/cms/en/product/power/motor-control-ics/brushed-dc-motor-control-ics/single-half-bridge-ics/ifx007t/?redirId=240461) , ideally 8×, or two levels with 4× + 4×
It's not the same as TTL console because of control signals. To use all the features of the serial line, USART peripheral must be used (not UART). Chosen peripheral is USART2.
Selected peripheral for SPI: SPI0 (SPI1 could be used but it has collision with a lot of ADCs).
Pins:
- MISO: (PD20)
- MOSI: (PD21)
- CLK: (PD22)
- CS0: (PB2)
- CS1: (PD25)
- CS2: (PD12)
- CS3: (PD27)
### I2C
Two-Wire interface (TWIHS) with pins TWCK and TWD (equivalent to SCL, SDA respectively) will be used. The microcontroller incorporates three TWIHS peripherals. Chosen peripheral is TWIHS0.
- PWMC0_PWMH0 (PA0,PA11,PA23,PB0,PD20): PA0 occupied by QDEC0, PA11 occupied by QSPI, other still free...
- PWMC0_PWMH1(PA2,PA12,PA24,PB1,PD11,PD21), PA2 occupied by QDEC0, PA12 occupied by QSPI, other still free...
- PWMC0_PWMH2(PA13,PA25,PB4,PC19,PD22),
- PWMC0_PWMH3(PA7,PA14,PA17,PC13,PC21,PD23)
- channel 1:
- PWMC1_PWMH0 (PA12,PD1) !! (PA12 occupied by QSPI, PD1 occupied by EMAC),
- PWMC1_PWMH1(PA14,PD3), !! (same as H0)
- PWMC1_PWMH2(PA31,PD5), maybe? (PA31 collisions with SPI0, !! PD5 collison with GRX0-EMAC)
- PWMC1_PWMH3(PA8,PD7), (PA8 collisions with AFEC, )
Due to compatibility with different power drivers, routing both H and L channels is desired. Concerning PWM0 peripheral, all H and L have been routed (all outputs are complementary). Concerning PWM1, it's not possible to route H output for channel 2 together with HSMCI peripheral (SD card), so only 3 channels have complementary outputs. Overall, 7 complementary channels PWM0_CH0-3 and PWM1_CH0-1,3 are available. It should be possible for L output to act the same as H output (and vice versa).
#### Power considerations
The power connector has two positive voltage rails, one for power outputs for motors and the second for control logic (MCU etc..). The power board should include a step-down 5V converter which will power the MCU board. The MCU board should by default be powered by 5V (we want the MCU board to be also powered from USB source). The MCU board should include a step-down 3.3V converter for powering the ATSAMV71.