登录
首页 » SCM » 功能: 1、作为主机通讯采集两路下位机数据并将此数据通过8255送出(十路水位值) 并计算水头送STC板 2、采集数据为BCD码制,先转换成二进制...

功能: 1、作为主机通讯采集两路下位机数据并将此数据通过8255送出(十路水位值) 并计算水头送STC板 2、采集数据为BCD码制,先转换成二进制...

于 2023-07-17 发布 文件大小:3.27 kB
0 163
下载积分: 2 下载次数: 1

代码说明:

功能: 1、作为主机通讯采集两路下位机数据并将此数据通过8255送出(十路水位值) 并计算水头送STC板 2、采集数据为BCD码制,先转换成二进制,处理后再转换成BCD 3、通讯采用方式3,多机通讯,上位机发地址时TB8=1,其他TB8=0 下位机SM2=1,RB8=1时产生中断后使SM2=0收发数据,结束后SM2=1 在此系统中本机硬件地址要设为0-Features: 1, as the host of two-way communication acquisition of data-bit machine and send this data through 8255 (the road level 10 value) and calculate the head sent to STC board 2, for BCD code data collection system, the first converted into binary, and then deal with the conversion into BCD 3, communication using methods 3, multi-machine communications, address PC made TB8 = 1, other TB8 = 0 under the digital machine SM2 = 1, RB8 = 1 when the failure to make SM2 = 0 to send and receive data, after the end of SM2 = 1 in this system to the local hardware address set to 0

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ARM LPC21XX AD模块源码与仿真实验
    ARM LPC21XX AD模块源码与仿真实验-ARM LPC21XX AD module source code and simulation results
    2023-08-31 00:45:03下载
    积分:1
  • AVR读写1302源程序,非常好用
    AVR读写1302源程序,非常好用-AVR ?列
    2022-04-26 22:07:15下载
    积分:1
  • 2812驱动128 * 64液晶,文件添加到工程中,主要功能…
    2812驱动128*64液晶,把该文件加到工程中,在主函数中初始化液晶既可用了.-2812 driver 128* 64 LCD, the document added to the project, in the main function can be used to initialize LCD.
    2022-03-05 16:48:46下载
    积分:1
  • 8051单
    8051单片机系统中对DISKONCHIP的操作-8051 single-chip microcomputer system for the operation of DiskOnChip
    2023-06-14 10:25:06下载
    积分:1
  • 由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15...
    由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15-A8即高8位地址,P3口用作第二功能,只有P1口通常用作I/0口。P1口是8位准双向口,它的每一位都可独立地定义为输入或输出,因此既可作为8位的并行I/O口,也可作为8位的输入输出端。当工作在输入方式时,对应位的锁存器必须先置1,才能正确地读到引脚上的信号,否则,执行读引脚指令时,若对应位的锁存器的值为0,读的结果永远为0。-By 8051, composed of single-chip microcomputer system under normal circumstances, P0 timeshare I reuse as address, data bus, P2 I provide A15-A8 high eight address, P3 mouth for the second function, I usually only P1 for I/0 I. P1 I was eight quasi-two-way port, it can be independent of each and every defined as input or output, it can be used as 8-bit parallel I/O port, can also be used as 8-bit input and output side. When the work in the input, the corresponding bit latch must first buy one in order to correctly read the signal pin, or pin the implementation of reading instruction, if the corresponding bit latch the value of 0, Reading the results of Forever to 0.
    2023-08-10 04:55:03下载
    积分:1
  • 基于51的单片机的PPP协议实现,源代码
    基于51的单片机的PPP协议实现,源代码-51 Based on the SCM PPP protocol, the source code
    2022-07-18 22:44:15下载
    积分:1
  • 基于mips CPU,uboot下flash读与LCD显示程序。
    基于mips CPU,uboot下flash读与LCD显示程序。-Based on the mips CPU, uboot Reading under the flash and LCD display program.
    2023-06-03 13:50:03下载
    积分:1
  • c8051f020的应用程序,主要为对ADC0的应用,使用其内置的温度传感器读取其片内温度值,并可以设置模拟输入口检测电压值...
    c8051f020的应用程序,主要为对ADC0的应用,使用其内置的温度传感器读取其片内温度值,并可以设置模拟输入口检测电压值-C8051F020 applications, mainly for ADC0 applications, using its built-in temperature sensor to read the chip temperature, and can set the analog input voltage value detection
    2022-05-14 20:15:53下载
    积分:1
  • C8051F020 based on the basic procedures, and on this basis can make a lot of you...
    基于c8051f020的基本程序,在此基础上可以做很多你想做的事情,只要你看懂该程序,再稍加改动。-C8051F020 based on the basic procedures, and on this basis can make a lot of you want to do, as long as you understand the program, and then modified.
    2022-08-15 10:20:28下载
    积分:1
  • 单片机51,C语言,病房呼叫系统,课程设计作业,希望对有些人有帮做...
    单片机51,C语言,病房呼叫系统,课程设计作业,希望对有些人有帮做-Single-chip 51, C language, ward call system, curriculum design operation, in the hope that some people have done to help
    2022-02-26 14:09:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载