;********定时器程序 **********************************
ORG 0000H
JMP MAIN
ORG 000BH
JMP TT0
ORG 001BH
JMP TT1
MOV SP,70H
MOV 20H,#10
; MOV 21H,#10
;=========================================
MAIN:
MOV TMOD,#01100000B
MOV TH1,#0F6H
MOV TL1,#0F6H
MOV IE,#10001010B
MOV TH0,#00H
MOV TL0,#00H
SETB TR0
SETB TR1
LOOP4: JMP LOOP4
;=========================================
TT1:; DJNZ 21H,LOOP2
MOV 21H,#10
CPL P1.3
RETI
;============================================
TT0: DJNZ 20H,LOOP1
MOV 20H,#10
MOV TH0,#00H
MOV TL0,#00H
CPL P1.4
LOOP1: RARE
;===========================================
END
Previous article:How to write interrupt programs for various microcontrollers
Next article:Counting the number of pulses with a single-chip microcomputer - digital tube display assembly program
- 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
- 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)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- McQueen programming car trial article summary
- How to train your programming thinking
- Fast multiplexing within and between boards
- vl813 schematic diagram solution sharing
- Metal detector circuit diagram design
- Design of scalable modular multiplication operator with base 4.pdf
- Package size issue
- What are the changes in the maximum output current and load limit of a differential output amplifier when it is single-ended output?
- Get a sneak peek at the practical white paper "Harnessing the Power of 5G"!
- How to write C/C++ code in DSP?