In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "51 single-chip microcomputer commonly used delay control subroutine", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn the "51 single-chip microcomputer commonly used delay control subroutine" it!
Delay control by programming
1. The raising of a question
Through programming, the single-chip microcomputer produces a delay of about 10ms and about 0.5s respectively. The crystal oscillator frequency of single chip microcomputer is 12MHz. Because the crystal frequency of the single chip microcomputer is 12MHz, the time of one machine cycle of the single chip microcomputer is 1 μ s.
two。 Control program
(1) 10ms delay program.
The actual delay time of this program is: 1 + (1 × 2 × 250 × 2) × 20=10.061ms
(2) 0.5s delay program.
Description: in the program, the symbol "; program start *" is used to indicate the beginning of the program, the symbol "; program end *" is used to indicate the end of the program, and "; -" is used to separate the various stages of the program in order to make the program organized and intuitive. These symbols can be input into Keil μ Vision3 software to compile at the same time. The following procedures are the same.
At this point, I believe that everyone on the "51 single-chip microcomputer commonly used delay control subroutine" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.