当前位置:网站首页>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
边栏推荐
- 你真的懂hashCode和equals吗???
- QT uses drag and drop picture to control and mouse to move picture
- Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]
- Wechat payment iframe sub page has no response
- Common exceptions
- Design and implementation of redis (2): how to handle expired keys
- Redis(17) -- Redis缓存相关问题解决
- Codeforces round 784 (Div. 4) (AK CF (XD) for the first time)
- Idea debug debugging tutorial
- Three types of cyclic structure
猜你喜欢

C interface

2022 group programming ladder simulation match 1-8 are prime numbers (20 points)

The principle and solution of not allowing pasting in an English Network

. net 5 Web custom middleware implementation returns the default picture

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

Utgard connection opcserver reported an error caused by: org jinterop. dcom. common. JIRuntimeException: Access is denied. [0x800

Romantic silhouette of L2-3 of 2022 group programming ladder Simulation Competition (25 points)

MySQL之explain关键字详解

Unity basics 2

The art of concurrent programming (2): synchronized usage scenarios
随机推荐
Redis (17) -- redis cache related problem solving
Definition format of array
集合之List接口
Commonly used classes
2021-08-31
7-2 Tushare
【微服务】(十)—— 统一网关Gateway
. NETCORE sets the API post mode, which can accept parameters directly in parentheses
Explanation keyword of MySQL
2022 团体程序设计天梯赛 模拟赛 L2-3 浪漫侧影 (25 分)
Translation of l1-7 matrix columns in 2022 group programming ladder Simulation Competition (20 points)
Redis(17) -- Redis缓存相关问题解决
C set
Idempotency practice operation, explaining idempotency based on business
New ORM framework -- Introduction to beetlsql
PWA I'm here
The art of concurrent programming (6): explain the principle of reentrantlock in detail
Problem B: small challenge
[microservices] (x) -- Unified gateway
Idea view history [file history and project history]