当前位置:网站首页>51 single chip microcomputer: D / a digital to analog conversion experiment
51 single chip microcomputer: D / a digital to analog conversion experiment
2022-04-23 03:33:00 【Li Xingye】
51 Single chip microcomputer :D/A Digital to analog conversion experiment
One 、 Experimental content
utilize 0832 D/A Digital to analog conversion output square wave .
Two 、 Simulation diagram

3、 ... and 、 Code
C Language implementation :
Assembly implementation :
CS0832 EQU 0FFE8H
ORG 0000H
LJMP START
ORG 0030H
START: MOV SP,#60H
MOV DPTR,#CS0832
SETB P1.0
CLR P1.1
SETB P1.2
MLOOP: MOV A,#00H ; square wave
MOVX @DPTR,A
LCALL DELAY
MOV A,#0FFH
MOVX @DPTR,A
LCALL DELAY
SJMP MLOOP
DELAY: MOV R6,#020H
DELAY1: MOV R5,#000H
DJNZ R5,$
DJNZ R6,DELAY1 ; ff*ff
RET
END
Square wave pattern

版权声明
本文为[Li Xingye]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220605386872.html
边栏推荐
- WinForm allows the form form to switch between the front and active states
- Design and implementation of redis (4): what is the event driver of redis
- 7-2 Tushare
- JS calculates the display date according to the time
- Node configuration environment CMD does not take effect
- Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer
- mui. Plusready does not take effect
- Three types of cyclic structure
- Notes sur l'apprentissage profond (Ⅱ) - - Principe et mise en oeuvre de la fonction d'activation
- Problem a: face recognition
猜你喜欢

Design and implementation of redis (1): understand data structures and objects

The art of concurrent programming (3): an in-depth understanding of the principle of synchronized

Code forces round # 784 (DIV. 4) solution (First AK CF (XD)

you need to be root to perform this command

Redis (17) -- redis cache related problem solving

MySql关键字GROUP_CONCAT,组合连接查询

JS - accuracy issues

C set

浅学一下I/O流和File类文件操作

Notes sur l'apprentissage profond (Ⅱ) - - Principe et mise en oeuvre de la fonction d'activation
随机推荐
Problem C: realize Joseph Ring with linked list
Laboratory safety examination
The principle and solution of not allowing pasting in an English Network
Visual programming - Experiment 2
Notes sur l'apprentissage profond (Ⅱ) - - Principe et mise en oeuvre de la fonction d'activation
集合之List接口
Un aperçu des flux d'E / s et des opérations de fichiers de classe de fichiers
Applet - more than two pieces of folding and expansion logic
Translation of l1-7 matrix columns in 2022 group programming ladder Simulation Competition (20 points)
移植tslib时ts_setup: No such file or directory、ts_open: No such file or director
Unity knowledge points (ugui 2)
C-11 problem h: treasure chest 2
C interface
Chapter 8 exception handling, string handling and file operation
Definition format of array
Idempotency practice operation, explaining idempotency based on business
Visual programming - drawing assignment
Unity games and related interview questions
Oracle JDK vs OpenJDK
New ORM framework -- Introduction to beetlsql