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

[Quick Start Guide for 51 Single-chip Microcomputer] 2.1: Digital Tube Displays Numbers, Decimals

Puzhong 51-Mononuclear-A2 STC89C52 Keil uVision V5.29.0.0 PK51 Prof.Developers Kit Version:9.60.0.0 Hard knowledge Selected from V1.2 Development Strategies for Puzhong 51 Single-chip Computer Introduction to Digital Tube         Digital tube is a semiconductor light emitting device, also known as ...

Added by Stathy on Sun, 07 Nov 2021 18:10:02 +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

Beginner compilation C51

1, Comprehensive design experiment 1: on chip parallel I/O port application 1. Purpose of the experiment: Learn to master the application of MCU I/O port. 2. Experimental tools: Computer, Keil μ Vision, Puzhong experimental instrument. 3. Experiment content: Assembly language programming and implementation in the experimental instrument: det ...

Added by evo4ever on Wed, 03 Nov 2021 21:13:24 +0200

Design sharing | single chip microcomputer digital thermometer

Specific implementation functions Specific functions: The temperature is measured by DS18B20, and the temperature value is displayed in real time by four digit nixie tube. Design Introduction Introduction to single chip microcomputer 51 single chip is a low-power, high-performance CMOS 8-bit microcontroller with   8K   In syste ...

Added by Keith Scott on Wed, 03 Nov 2021 20:20:14 +0200

SPI Driver Implemented by GA

1. What is SPI protocol          SPI (Serial Peripheral Interface) communication protocol is a synchronous serial interface technology proposed by Motorola Company. It is a high-speed, full-duplex, synchronous communication bus. Only four pins are used to control and transmit data in the chip. It is wide ...

Added by new_programmer on Tue, 26 Oct 2021 20:31:28 +0300

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