当前位置:网站首页>Proteus simulation based on 51 MCU ADC0808
Proteus simulation based on 51 MCU ADC0808
2022-07-29 08:11:00 【Half life fireworks I blurred】
Use ADC0808 Of IN0 passageway , Input CLOCK by 500KHZ, use AT89C51 Single chip microcomputer
ADC0808 Of ADDA、ADDB、ADDC by 000 Corresponding channel IN0
ADC0808 Of ADDA、ADDB、ADDC by 001 Corresponding channel IN1
ADC0808 Of ADDA、ADDB、ADDC by 010 Corresponding channel IN2 Push in .
START and ALE You can share one I/O mouth , They are synchronized .
In this paper IN0 Channel so ADDA、ADDB、ADDC Direct ground .
Nixie tube displays some codes , Digital tube adopts common cathode display
#include <REGX52.H>
#include "Delay.h"
sbit we1=P3^0;
sbit we2=P3^1;
sbit we3=P3^2;
sbit we4=P3^3;
// Common cathode nixie tube segment code table
unsigned char NixieTable[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};
// Nixie tube display sub function
void Nixie(float num)
{
unsigned int x,y,z,f;
x=num/1000;// Take out every bit value of voltage
y=(unsigned int)num%1000/100;//(unsigned int) Floating point cast to integer data display
z=(unsigned int)num%100/10;
f=(unsigned int)num%10;
we1=0;
P0=NixieTable[x]+0x80; // Show decimal point and 1 v
Delay(1);
we1=1;
P0=0x00;
we2=0;
P0=NixieTable[y]; // Segment code output
Delay(1); // Show for a period of time
we2=1;
P0=0x00; // Segment code clear 0, Shadow elimination
we3=0;
P0=NixieTable[z]; // Segment code output
Delay(1); // Show for a period of time
we3=1;
P0=0x00; // Segment code clear 0, Shadow elimination
we4=0;
P0=NixieTable[f]; // Segment code output
Delay(1); // Show for a period of time
we4=1;
P0=0x00; // Segment code clear 0, Shadow elimination
}
ADC0808 Convert code
#include <REGX52.H>
#include <Delay.h>
sbit ST=P2^0;
sbit EOC=P2^1;
sbit OE=P2^2;
unsigned int readDAC0808()
{
unsigned int ADC_NUM;
ST=1;// Empty ADC0808 Internal register value of
Delay(1);
ST=0;// The falling edge begins AD transformation
while(EOC==0);// Judge whether the conversion is over
OE=1;
ADC_NUM=P1;// receive data
return ADC_NUM;
}Main function code
#include <REGX52.H>
#include <Delay.h>
#include <Nixie.h>
#include <DAC0808.h>
void main()
{
float num;
while(1)
{
num=readDAC0808()*(5.0/255)*1000;// Read DAC0808 The conversion value of , And convert binary numbers into voltage values
Nixie(num);// The nixie tube shows
}
}As it is the first time to create, I am not proficient yet. It is only for beginners' reference

边栏推荐
- Simplefoc parameter adjustment 3-pid parameter setting strategy
- [cryoelectron microscope | paper reading] interpretation of sub fault average m software: multi particle cryo EM refining with M
- Unity Shader学习(六)实现雷达扫描效果
- 阿里巴巴政委体系-第三章、阿里政委与文化对接
- Some simple uses of crawler requests Library
- In an SQL file, a test table and data are defined above, and you can select* from the test table below
- 阿里巴巴政委体系-第四章、政委建在连队上
- Tb6600+stm32f407 test
- Limitations of push down analysis
- Dp4301-sub-1g highly integrated wireless transceiver chip
猜你喜欢
![[academic related] why can't many domestic scholars' AI papers be reproduced?](/img/1a/7b162741aa7ef09538355001bf45e7.png)
[academic related] why can't many domestic scholars' AI papers be reproduced?
![[cryoelectron microscope | paper reading] a feature guided, focused 3D signal permutation method for subtogram averaging](/img/50/594dfc9affbcca97166d475fe09ad3.png)
[cryoelectron microscope | paper reading] a feature guided, focused 3D signal permutation method for subtogram averaging

Simplefoc parameter adjustment 3-pid parameter setting strategy

Security baseline of network security

Arduinoide + stm32link burning debugging

简易计算器微信小程序项目源码

数字人民币时代隐私更安全

Qt/pyqt window type and window flag

Unity beginner 4 - frame animation and protagonist attack (2D)

亚马逊测评自养号是什么,卖家应该怎么做?
随机推荐
Preparation of SQL judgment statement
STM32 serial port garbled
Crawl expression bag
[beauty of software engineering - column notes] 24 | technical debt: continue to make do with it, or overthrow it and start over?
Mqtt server setup and mqtt.fx testing
Detailed explanation of two modes of FTP
Compatible with cc1101/cmt2300-dp4301 sub-1g wireless transceiver chip
Alibaba political commissar system - Chapter 1: political commissars are built on companies
华为无线设备配置利用WDS技术部署WLAN业务
[beauty of software engineering - column notes] 23 | Architect: programmers who don't want to be architects are not good programmers
[skill accumulation] presentation practical skill accumulation, common sentence patterns
Domestic application of ft232 replacing gp232rl usb-rs232 converter chip
Nrf52832-qfaa Bluetooth wireless chip
Compare three clock circuit schemes of single chip microcomputer
[beauty of software engineering - column notes] 27 | what is the core competitiveness of software engineers? (top)
[密码学实验] 0x00 安装NTL库
Tcp/ip five layer reference model and corresponding typical devices and IPv6
[cryoelectron microscope | paper reading] interpretation of sub fault average m software: multi particle cryo EM refining with M
An optimal buffer management scheme with dynamic thresholds paper summary
CentOS deploy PostgreSQL 13