; XP version 232 communication program, 9600 bit rate, 11.0592 crystal
;*******************************************************************************
ORG 0000H
AJMP main0
ORG 0030H
main0: MOV 20H,#00H
MOV TMOD,#22H ;Set timer working mode
MOV SCON,#40H
MOV TH1,#0FAH ;Speed 9600
MOV PCON,#80H
SETB TR1
SETB REN ;Allow receiving
ajmp start
start: mov dptr,#ok ;Look up
table senda: clr a ;
movc a,@a+dptr
cjne a,#'$',senda_0
ajmp $ ;Stop when encountering $.
senda_0:mov sbuf,a
JNB TI,$ ;Is the serial transmission of one frame finished?
CLR TI ;
inc dptr ; pointer plus one
Ljmp senda
ok: db 0dh,0ah,0dh,0ah,"If I have one more day to live, I will be your girlfriend that day. Do I have one more day to live? .. No. So, it's a pity. I am still not your girlfriend in this life. If I had wings, I would fly down from heaven to see you. Do I have wings? .. No. So, it's a pity. I can no longer see you from now on.",0dh,0ah,'$'
end
Previous article:MCU serial communication application program
Next article:Serial port automatic baud rate setting program
Recommended ReadingLatest update time:2024-11-17 00:34
- Popular Resources
- Popular amplifiers
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Teach you to learn 51 single chip microcomputer-C language version (Second Edition) (Song Xuefeng)
- The authoritative guide to AR development: Based on AR Foundation (Wang Xiangchun)
- Deep Learning Made Easy: Core Algorithms and Visual Practice (Feng Chao)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Submit your IoT application ideas and win multimeters, Bluetooth headsets, Xiaomi power strips, JD.com cards and other gifts!
- [Evaluation of Anxinke Bluetooth Development Board PB-02-Kit] First Look
- Can the lower tube in the transistor pair structure have a smaller power?
- [AutoChips AC7801x motor demo board review] + Different PWM configurations for motor control
- Senior FPGA engineers tell beginners...
- In just three steps, we will teach you how to quickly use a multimeter to determine the polarity and type of a transistor!
- Today's Live Broadcast: ON Semiconductor's Advanced Image Sensor Solutions for the Internet of Things
- [Experience] Namisoft reviews the measurement methods of motor torque
- Recruiting electronic, mechanical and communications engineers! ! ! ! ! ! ! ! ! ! !
- Happy People's Day~