Based on STM32F412, the System Clock is output on PC9. Similarly, other clock functions can also be output on PA8.
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
GPIO_Init(GPIOC, &GPIO_InitStructure);
GPIO_PinAFConfig(GPIOC,GPIO_PinSource9,GPIO_AF_MCO);
RCC_MCO2Config(RCC_MCO2Source_SYSCLK, RCC_MCO2Div_4);
The output parameters can be set by calling the RCC_MCO1Config() and RCC_MCO2Config() functions. The explanation of the library functions is very clear and there is no need to repeat them.
Previous article:Related settings when KEIL 5 downloads the program to the STM32F103ZET6 chip
Next article:STM32F103_USART_GPIO configuration and corresponding IO port settings
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- 【GD32E231 DIY Contest】3. Light up a row of digital tubes
- PCB wiring - signal line crosstalk
- Inductor voltage issues in different topologies
- HuaDa HC32F003 / HC32F005 project template
- RTT & Renesas high-performance CPK-RA6M4 development board evaluation - PWM breathing light and output square wave
- Programmer's tool, embedded artifact ---- Vim
- IL0389 Electronic Paper (Ink Screen) Driver
- Please advise: What is the impact of wireless modules working in a wide voltage range?
- [Perf-V Review] + First Look at Pengfeng Artix 7 FPGA Development Kit
- Can a 0805 SMD LED be lit with a current of 1.25mA?