STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

hi, I am trying to use it in the same pin for two different purposes. I'm setting 4 pins for SPI comm and after I finish using them as SPIpins I need them as normal gpio. I tried to toggle them with set and reset but didn't go so well. what should I do

for exmple, this is a part of the code:void DAC_AD5621_Write ( uint64_t DAC_Data){ HAL_GPIO_WritePin(dac_cs_GPIO_Port, dac_cs_Pin, GPIO_PIN_RESET);////Select SPI DAC_Data = (DAC_Data&0x0FFF)<<2 ; uint8_t DAC_Data1= (uint8_t)((DAC_Data>>8)&0x00FF); ui...

Gbasi.1 by Associate II
  • 569 Views
  • 4 replies
  • 0 kudos

Resolved! NUCLEO-STM32F429 SPI at MAX speed (45 MHz)

Hello,I have NUCLEO-STM32F429ZI kit and I want to operate the SPI as max speed. So, I design one simple example like make SPI1 as Slave and SPI4 as a master mode.This is worked for SPI_BAUDRATEPRESCALER_8 (11.25 MHz), SPI_BAUDRATEPRESCALER_16 (5.625 ...

AP_040 by Senior
  • 5072 Views
  • 9 replies
  • 0 kudos