#include
#define uchar unsigned char
#define uint unsigned int
sbit beep=P0^0;
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=111;y>0;y--);
}
void main()
{
while(1)
{
beep=0;
delay(500);
beep=1;
delay(500);
}
}
Previous article:51 MCU (AT89C52) matrix keyboard detection program
Next article:51 microcontroller (AT89C52) external interrupt program
- 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
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Using the I2C Bus
- 【Qinheng RISC-V core CH582】Learning material collection
- CCS cannot connect to F280049C Launchpad
- What topics do electronic engineers like?
- Chips are also being counterfeited? How to develop a keen eye and identify "real and fake chips" in the arena!
- I have some hesitations about job hopping, I hope you can give me some advice
- Basic principles of static timing analysis and timing analysis models
- Sketching the halogen lamp driver power supply schematic diagram solution
- Evaluation Weekly Report 20220926: Python Programming Learning Main Control Board, Hangkong Board, Infineon PAS CO2 Sensor Waiting for You to Test~
- [Environmental Expert's Smart Watch] Part 5: Data Communication Design between Devices