STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode)).docVIP
- 80
- 0
- 约6.08千字
- 约 10页
- 2017-07-21 发布于河南
- 举报
STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode))
STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode))
1. Enable the corresponding SPI module clock
RCC_APB2PeriphClockCmd (RCC_APB2Periph_SPI1, ENABLE) for SPI1
RCC_APB1PeriphClockCmd (RCC_APB1Periph_SPI2, ENABLE) for SPI2
RCC_APB1PeriphResetCmd (RCC_APB1Periph_SPI3, ENABLE) for SPI3.
2. Enable the clock to correspond to GPIO
Rcc_ahb1periph-clockcmd () function. (SCK, MOSI, MISO and NSS).
3. Configure the reuse function of corresponding pins
GPIO_PinAFConfig (GPIOx GPIO_PinSourcex, GPIO_AF_SPIx); / / pin mapping
GPIO_InitStructure. GPIO_O
您可能关注的文档
- ACM题目推荐(ACM title recommendation).doc
- AC冷却器清洗除垢意义(AC coolers cleaning and descaling significance).doc
- AD7705应用总结(AD7705 application summary).doc
- AC耦合电容(AC coupling capacitance).doc
- adads(adads).doc
- ADC0832内部原理(Adc 0832 internal principle).doc
- ADAMS数学函数(ADAMS mathematical function).doc
- ADINA中的坐标系及其用途用法(Coordinate system and usage of ADINA).doc
- AD域文件夹管理(AD domain folder management).doc
- AD转换器数据处理(AD converter data processing).doc
原创力文档

文档评论(0)