Hello...
I am using the Cortex M3 ARM Controller STM 32, And my device to be interfaced is a 5V logic which is having an SPI and needs a signal which is 1Mhz
I can make a 1Mhz signal in controller using PWM and it is having an SPI Hardware but both out put is 3.3V but the PINs of STM32 is 5V tollerable.
so the output from the device can be directly connected or with a resistor in it.
But my problem in i want to connect the following pins
STM32 DEVICE
PORT 3.3V ------------------------------> NSS1 ( 5 V ) PORT 3.3V ------------------------------> NSS2 ( 5 V ) MISO 3.3V ------------------------------> MOSI ( 5 V ) M0SI 3.3V CLCOK( 5 V ) PORT 3.3V ------------------------------> CONTROL PIN 1 ( 5 V ) PORT 3.3V ------------------------------> CONTROL PIN 1 ( 5 V ) PORT 3.3V