Programming
Program function: Use two buttons to control the forward and reverse rotation of the DC motor
#include
sbit zheng=P1^0;
sbit fan=P1^1;
sbit JD=P3^0;
void delay1ms(int);
//********************************Main function************************************
void main()
{
}
//********************************Delay sub-function************************************
void delay1ms(int x)
{
}
Previous article:51 MCU C programming (seven, 5 IO ports scan 10 buttons)
Next article:51 MCU C Programming (IX. 8X8 dot matrix display)
- Popular Resources
- Popular amplifiers
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
- Ranking of installed capacity of smart driving suppliers from January to September 2024: Rise of independent manufacturers and strong growth of LiDAR market
- Industry first! Xiaopeng announces P7 car chip crowdfunding is completed: upgraded to Snapdragon 8295, fluency doubled
- P22-009_Butterfly E3106 Cord Board Solution
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- It’s too difficult for beginners.
- Help converting brd file to AD pcbdoc file
- Fuman Electronics responded to a real-name report and said it had no direct supply relationship
- MSP430 interrupt priority and interrupt nesting
- A novice asks about the selection of optocouplers for PWM isolation control of MOS tubes
- Signal Generator and DA Conversion FPGA Case Tutorial
- [Amway] Excellent electronic engineers must read classic books Amway
- IAR Mini Classroom | How to place a group of functions or variables in a specific segment
- Are there any FPGA weekend training courses in Xi'an?
- LM25119 has no output