Introduction to STM32 SPI pins

Publisher:快乐旅人Latest update time:2015-06-15 Source: 51heiKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
SPI1->CS      ------ PA4
SPI1->CLK    ------ PA5 
SPI1->MISO  ------ PA6
SPI1->MOSI ------ PA7

SPI2->CS ------ PB12
SPI2->CLK ------ PB13 
SPI2->MISO ------ PB14 
SPI2->MOSI ------ PB15 SPI3->

CS   ------ PA15
SPI3->CLK ------ PB3 
SPI3->MISO ------ PB4 
SPI3->MOSI ------ PB5

For SPI, you need to turn on the relevant RCC clock
In master mode,
CLK is configured as multiplexed push-pull output,
MOSI is configured as multiplexed push-pull output,
MISO is configured as rich or with pull-up input.
If CS is configured as push-pull output in hardware, it is configured as push-pull output. If software mode is used, ordinary IO push-pull output can be used.
Keywords:STM32 Reference address:Introduction to STM32 SPI pins

Previous article:Design of single chip intelligent car
Next article:LCC resonant conversion prototype of high voltage power supply

Recommended ReadingLatest update time:2024-11-23 04:48

STM32 USB IAP steps
1. Download STM32_USB-FS-Device_Lib_V3.2.1.rar 2. Install DfuSe_Demo_V3.0_Setup.exe. 3.打开...\STM32_USB-FS-Device_Lib_V3.2.1\Project\Device_Firmware_Upgrade\MDK-ARM\DFU.uvproj Modify: //#define ApplicationAddress 0x08003000 to #define ApplicationAddress 0x08004000 (because the program needs to be modified to increase t
[Microcontroller]
STM32 serial port controls small lights with different brightness levels
Use the serial port input to control the brightness of the LED light, so as to achieve the function of interactive communication between the PC and the MAU This function consists of three parts: serial port communication, setting the brightness level of the LED light, and turning off the LED light by pressing a butt
[Microcontroller]
Porting ucGUI touch screen on STM32
The previous three articles respectively introduced how to transplant ucGUI on STM32 bare metal, transplant ucGUI source routines, and ucGUI storage devices and anti-aliasing. The process of transplanting ucGUI touch screen on STM32 bare metal is described in detail as follows: 1. Copy the HARDWRAE/TOUCH directory in
[Microcontroller]
Analysis of bit-band operation of STM32
The 8051 microcontroller can directly read and write a certain IO bit, and the Cortex-M3's bit-banding operation is an enhanced version of the 8051 bit addressing area. After using the bit-banding operation, you can use ordinary load/store instructions to read and write a single bit. 1. Related concepts Bit-band regio
[Microcontroller]
Analysis of bit-band operation of STM32
STM32 Learning: Internal Flash
When we develop applications, we often need to save some program running parameters, such as some correction coefficients. The characteristics of these data are: small in number and do not need to be modified frequently, but they cannot be defined as constants, because each device may be different and may be modified
[Microcontroller]
STM32 Learning: Internal Flash
Based on STM32 serial port ring buffer queue processing mechanism - entry level (single byte)
1.1 Experimental Introduction   The simplest serial port data processing mechanism is to receive data and send it back as is: successfully receive a number, trigger an interrupt, read the data in the interrupt function, and then immediately. This data processing mechanism is a "non-buffered interrupt mode". Althou
[Microcontroller]
Based on STM32 serial port ring buffer queue processing mechanism - entry level (single byte)
STM32 DS18B20 code details
DS18B20 is the most commonly used to learn a new development tool. The programs are similar. The main thing is to pay attention to the delay in the timing and the correct instructions. Record them here!   ------------------The first part is--------ds18b20.h---------------------- #ifndef __DS18B20_H #define __DS18
[Microcontroller]
STM32 DS18B20 code details
STM32 RTC configuration and oscillation issues
RTC Configuration: 1. Turn on power management and backup register clock. This is turned on in RCC configuration.   RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE); 2. Enable access to the RTC and backup registers (disabled by default on reset).   PWR_BackupAccessCmd(ENABLE); 3. Check w
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号