当前位置:网站首页>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
边栏推荐
- Design and implementation of redis (1): understand data structures and objects
- Redis(17) -- Redis缓存相关问题解决
- Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
- Docker pulls MySQL and connects
- Learn about I / O flow and file operations
- Visual programming - Experiment 2
- Laboratory safety examination
- Application and definition of interface
- Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
- Redis (17) -- redis cache related problem solving
猜你喜欢
L3-011 direct attack Huanglong (30 points)
Super easy to use [general excel import function]
Visual programming - drawing assignment
2022 团体程序设计天梯赛 模拟赛 L2-3 浪漫侧影 (25 分)
Punch in: 4.22 C language chapter - (1) first knowledge of C language - (11) pointer
Build websocket server in. Net5 webapi
2022 group programming ladder simulation match 1-8 are prime numbers (20 points)
The art of concurrent programming (3): an in-depth understanding of the principle of synchronized
On the principle of concurrent programming and the art of notify / Park
深度學習筆記(二)——激活函數原理與實現
随机推荐
JS implementation of new
L3-011 direct attack Huanglong (30 points)
. NETCORE sets the API post mode, which can accept parameters directly in parentheses
Téléchargement en vrac de fichiers - téléchargement après compression
Database - MySQL -- Navicat import SQL error 1067 - invalid default value for 'paydate‘
Scenario Title: how does system a use the page of system B
Problem C: Hanoi Tower III
Three column layout (fixed width on both sides in the middle and fixed width on both sides in the middle)
浅学一下I/O流和File类文件操作
Mechanical design knowledge point planning
Problem C: realize Joseph Ring with linked list
QT learning summary
2022 团体程序设计天梯赛 模拟赛 L1-7 矩阵列平移 (20 分)
Build websocket server in. Net5 webapi
Commonly used classes
Three types of cyclic structure
Chapter 8 exception handling, string handling and file operation
Leetcode punch in diary day 01
Section 1 array and slicing in Chapter 6
Visual programming - Experiment 1