登录
首页 » SCM » 单片机RS232/RS485串行发送实验(双机通讯)。 实验步骤: (1),准备两台598K实验机,确定1号机为发送,2号机为接收;...

单片机RS232/RS485串行发送实验(双机通讯)。 实验步骤: (1),准备两台598K实验机,确定1号机为发送,2号机为接收;...

于 2022-02-28 发布 文件大小:4.50 kB
0 80
下载积分: 2 下载次数: 1

代码说明:

单片机RS232/RS485串行发送实验(双机通讯)。 实验步骤: (1),准备两台598K实验机,确定1号机为发送,2号机为接收; (2),当作RS232接口实验时,1号机和2号机的P3.0和P3.1交叉相连,且两机共地; (3),当作RS485接口实验时,1号机和2号机的A、B作对应连接,同时1,2号机的R/TEN接P1.0, P3.0接R0, P3.1接DI。 (4),先运行2号机,键入[27]-->[EV]使2号机处于接收状态P。,后运行1号机[26]-->[EV]使1号机处于发送状态,P。会闪烁,在1号机键盘上按动数字键,在2号机的数码管上应显示对应的数字键值。-Send Singlechip RS232/RS485 serial experiment (two-plane communications). Experimental steps: (1), prepare two sets of experiments 598K machine, determined on the 1st machine to send, on the 2nd machine to receive (2), as a RS232 interface experiment, on the 1st and the 2nd machine and P3.0 P3.1 cross-linked, and the two planes were to (3), as a RS485 interface experiment, on the 1st and the 2nd machine A, B for the corresponding connection, while 1,2 No. of R/TEN then P1 .0, P3.0 access R0, P3.1 then DI. (4), first run on the 2nd machine, type [27]

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

发表评论

0 个回复

  • 696521资源总数
  • 104077会员总数
  • 0今日下载