Small Notes on Porting PS2 Handles to STM32

1. Hardware preparation: Warship development board, PS2 handle receiver, PS2 handle, connection cable 2. Hardware connection: The PS2 handle receiver has six pins and connects to the IO port of the single-chip computer as follows: Receiver signalSingle-chip IOGNDGNDVCC3.3VDI/DATPB12DO/CMDPB13CSPB14CLKPB15 3. Introduction to PS2 Communication ...

Added by kanetan on Sat, 13 Nov 2021 00:45:16 +0200

STM32 interrupt and DMA communication programming

1, Interrupt mode programming One pin of the GPIOA end of the stm32F103 core board is connected to an LED, and one pin of the GPIOB port is connected to a switch (replaced by DuPont line simulation). Interrupt mode programming is adopted. When the switch is connected to high level, the LED lights up; When connected to low level, the LED ...

Added by windyweather on Sat, 06 Nov 2021 23:05:05 +0200

STM32 interrupt and DMA communication programming

1, CubeMX interrupt lighting 1. CubeMX project settings Create a new project and select STM32F103C8 chip. Pin settings: Set the indicator LED pin PB5 and set the pin mode to output mode GPIO_Output Set key pin PA1, set pin to external interrupt function, and PA1 is connected to GPIO with external interrupt line exit1_ EXIT1 For the PB5 pin ...

Added by richardw on Sat, 06 Nov 2021 17:10:58 +0200

STM32F103DMA serial communication

Based on the first two USART serial communication, this paper uses DMA controller to realize serial communication 1, DMA 1. Introduction to DMA The full name of DMA is Direct Memory Access, that is, Direct Memory Access. Direct memory access (DMA) is used to provide high-speed data transmission between peripherals and memory or betwee ...

Added by josaho on Sat, 06 Nov 2021 14:45:10 +0200

Experiment 9: keyboard scanning and nixie tube display experiment

Experiment 9: keyboard scanning and nixie tube display experiment 1. Experimental purpose Learn the basic principles of keyboard scanning. Master the method of scanning the keyboard through parallel interface chip and displaying numbers in multi digit nixie tube. 2. Experimental content Write a program to realize the following functions: ...

Added by kanchan on Fri, 05 Nov 2021 21:17:41 +0200

GPIO input drive experiment - key control

GPIO input drive experiment - key control Write before: Like beep experiment, just add functions to the existing engineering framework, Chong!!! By the way, the gpio operation will be written into a function set for easy calling. Please pay attention. 1. Create new key and gpio folders under bsp First, let's start with a GPIO operation ...

Added by dta on Tue, 26 Oct 2021 14:46:00 +0300

STM32 register water lamp

catalogue 1, GPIO port initialization (1) Register (2) Enable clock   2, Code (1) main.c (2) Wiring:   3, Burning program 4, Experimental results 1, GPIO port initialization (1) Register STM32 assigns different addresses to different registers. Find the address in stm32 Chinese reference manual. Find the starting ad ...

Added by fredanthony on Fri, 22 Oct 2021 08:44:37 +0300

STM32F103 register mode turns on the LED water flow lamp

STM32F103 register mode turns on the LED water flow lamp 1, GPIO port initialization You need to check the stm32 user manual here Download link https://pan.baidu.com/s/1Q0jdfFsd39dN2aUyjaMXUw Extraction code zxwn 1. Clock configuration GPIOA, B and C ports are used in this experiment. All three ports belong to APB2 bus 1. Find the clock ...

Added by phpdev12 on Thu, 21 Oct 2021 19:17:10 +0300

APP upgrade of MCU IAP function basic development

1. Foreword          SCM APP upgrade of IAP functional foundation development (II) When it comes to the specific design scheme for the single chip microcomputer to upgrade the APP program, this article introduces the upgrade advanced function and how to automatically add the verification flag at the end ...

Added by jalapena on Sun, 17 Oct 2021 08:50:03 +0300

K009 based on 51/32 MAX1508 double H-axle motor drive module test

1, Realize function Key K_Start_Stop stops and starts the motor, and the default power on stop Key K_Syntropy_Reverse switches the direction of two motors Key K_ UP_ Press the speed key to accelerate Key K_ Down_ Press the speed deceleration button to decelerate This program is mainly based on STM32F103C8T6 to drive some actions of MAX150 ...

Added by Chelsove on Sat, 16 Oct 2021 06:33:38 +0300