2016-07-06 07:21 PM
I am looking for some help on completing a schematic whereas I am driving several LEDs with a shift register.
I am having trouble finding where / how I should be connecting the CLK / SDI / LE/DM1, ~OE/~DM2 pins to the STM32F4. #!stm32f4 #!shift-register2016-07-06 10:53 PM
In general, you can wire them up to any pin and bit-bang the serial stream; however, it's more convenient if you use hardware for the serial stream. You have two options - either you use one of the SPI thus connect data to respective MOSI and clock to respective SCK; or USART in synchronous mode, where you connect data to Tx and clock to CLK of the USART. The remaining two pins you can connect to any pin, they have to be driven as outputs ''manually'' anyway.
From the hardware point of view, you have to consider voltage level, pin drive capability (which is usually not an issue these days driving CMOS inputs) and proper ground return issues. JW2016-07-07 03:00 PM
OK Thank you.
What I ended up doing was wiringPin 3 (CLK) to PB10Pin 2 (SDI) to PB15Pin 4 (LE) to PB1Pin 21 (OE) to PB0Does this sound right?2016-07-07 03:16 PM
Pin 3 (CLK) to PB10
Pin 2 (SDI) to PB15
Pin 4 (LE) to PB1
Pin 21 (OE) to PB0
Does this sound right?
SPI2 at AF5 for the first two pins? Yes, sounds right. JW