Taking the microcontroller P1 register as an example, there are two arrangements:
The first type: P1^7 is high, that is:
P1^7 P1^6 P1^5 P1^4 P1^3 P1^2 P1^1 P1^0
The second type: P1^0 is high, that is:
P1^0 P1^1 P1^2 P1^3 P1^4 P1^5 P1^6 P1^7
The above two arrangements are always confusing for novices, who don’t know which one is correct. Therefore, the running light test code can be used for verification.
Use the CT107D development board to verify the running light function.
The reference code link is: http://download.csdn.net/download/qq_34706280/10260235
It turns out that the correct arrangement of the microcontroller pins is:
The first type: P1^7 is high, that is:
P1^7 P1^6 P1^5 P1^4 P1^3 P1^2 P1^1 P1^0
Previous article:51 MCU reads and writes EEPROM (AT24C02)
Next article:Research on the problem that the first two columns of matrix buttons on the CT107D development board do not work
- 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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Why is the square wave voltage generated by the inverter circuit measured using the AC voltage range of a digital multimeter much smaller than the theoretical value?
- Design of three-coordinated distributed control system based on TMS320F2812 DSP
- Several ways to accurately delay the microcontroller
- Bluetooth tester function details!
- Electric heater - "silent" transformation
- Advanced Driver Assistance System Solution Series Introduction—Digital Camera
- Prize-winning quiz | ADI application tour - water quality and gas monitoring
- #The best content of the "Interview with famous teachers" in the Electronic Competition#The second issue - Professor Chen Nan from Xidian University
- CH563 implements remote file management system based on FTP
- FreeRTOS porting on GD32VF103 processor!