The microcontroller generates a 1.5ms square wave (synchronous pulse) program

Publisher:Bby1978Latest update time:2015-02-10 Source: 51heiKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Circuit diagram

The following is the source code of the 51 single-chip microcomputer program:
      SJMP MAIN
      ORG 000BH;
      SJMP DSZD
  MAIN:MOV TL0,#24H;
       MOV TH0,#0FAh
       SETB EA
       SETB ET0
       MOV TMOD,#00010001B
       MOV SP ,#40H;
       SETB TR0
       SJMP $
DSZD:CPL P0.4
     CPL P1.4
     MOV TL0,#24H;
     MOV TH0,#0FAH;
   
    RETI
 END
Keywords:MCU Reference address:The microcontroller generates a 1.5ms square wave (synchronous pulse) program

Previous article:GSM_TC35 module (making phone calls, sending text messages) (familiar with the instructions) (first layer)
Next article:Design of a high-precision temperature measurement device based on single-chip microcomputer

Recommended ReadingLatest update time:2024-11-16 13:31

The working principle of the microcontroller reset circuit and the difference from the set position
The setting and resetting of the microcontroller are both for initializing the circuit to a certain state. Generally speaking, the function of the microcontroller reset circuit is to initialize a state machine to an empty state, while inside the microcontroller, when resetting, the microcontroller loads some regis
[Microcontroller]
Study the operation of PIC microcontroller program under PICC compilation environment
PICC basically complies with the ANSI standard, but does not support recursive function calls. The main reason is the special stack structure of the PIC microcontroller. The stack in the PIC microcontroller is implemented by hardware, and its depth is fixed with the chip, so it is impossible to implement recursive alg
[Microcontroller]
Study the operation of PIC microcontroller program under PICC compilation environment
Software design for sending and receiving short messages by using single chip microcomputer to control GSM module
The GSM (Global System for Mobile communication) system is a relatively mature, complete and most widely used system in the current mobile communication system based on time division multiple access technology. The GSM digital cellular mobile communication network that has been built to cover the whole country is th
[Microcontroller]
Software design for sending and receiving short messages by using single chip microcomputer to control GSM module
Wall Street Journal: MCU leads the trend of chip price increase, and the price of electronic products can no longer be controlled
A global chip shortage is pushing up prices on products such as laptops and printers and threatens to have the same impact on other best-selling devices including smartphones, according to the Wall Street Journal. As the industry rushes to meet growing demand and fill supply gaps, price increases are snowballing th
[Semiconductor design/manufacturing]
Wall Street Journal: MCU leads the trend of chip price increase, and the price of electronic products can no longer be controlled
What is stored in the STM32 microcontroller flash memory?
First look at rom, which is flash (0x0800 0000-0x0807 ffff) 51 2k . This space is where users store programs. When users write their own boot loader in the future, they will also store it in this space. The system memory space is 2k in size. It is the ISP code that ST company has solidified when the film is produced
[Microcontroller]
PIC microcontroller CCS C language (#IF, #ENDIF usage)
 #IF expr #ELSE #ELIF #ENDIF Syntax: #if expr code #elif expr code #else code #endif expr is a constant expression, a standard operator or a preprocessor identifier; Code is any standard C source program. Purpose: The preprocessor evaluates the constant expression and, if the value is non-zero,
[Microcontroller]
MFRC522 circuit schematic and MCU test program
MFRC522 circuit schematic diagram:   Antenna part:   MCU + MFRC522 test source program is as follows: /**********************RC522 experimental development board routine************************ * CPU: STC89C52RC * Crystal oscillator: 11.0592MHZ ********************************************************************
[Microcontroller]
MFRC522 circuit schematic and MCU test program
Design of non-invasive visual pulse oximeter based on MSP430 series MCU
A pulse oximeter is a medical device used to monitor a patient's blood oxygen levels. The device measures blood oxygen levels and heart rate and generates an alarm when levels drop below a predetermined threshold. This type of monitoring is extremely useful for newborn babies and during surgical procedures. The
[Microcontroller]
Design of non-invasive visual pulse oximeter based on MSP430 series MCU
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号