搜索资源列表
scon
- 单片机与上位机(电脑)通信的简单程序,波特率为12
scon
- 串口与PC机通讯通信(波特率为:1200)
RS-232
- void UART_init() { //初始化串行口和波特率发生器 SCON =0x58 //选择串口工作方式,打开接收允许 TMOD =0x21 //定时器1工作在方式2,定时器0工作在方式1 TH1 =0xfd //实现波特率9600(系统时钟11.0592MHZ) TR1 =1 //启动定时器T1 ET1 =0 ES=1 //允许串行口中断 PS=1 //设计串行口中断优先级 EA =1 //单片机中断允许 }-void UART_init
scon
- 一系列芯片的驱动代码,这是一个很完整的工程-A series of chip-driven code, this is a very complete works
chip1
- VB遥控播放器红外遥控解码 #include <regX52.h> #define c(x) (x*110592/120000) sbit Ir_Pin=P3^2 sbit beep=P2^1 //sbit RELAY=P2^0 #define INBUF_LEN 4 //数据长度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 } //发送缓冲区 unsigned char inb
SCON
- 单片机开发汇编基础,学会使用SCON从这里开始-Compilation of basic single-chip development and learn to use the SCON from here
8051f
- 80c51的一些代码, 希望对初学者有一定的帮助,此程序一运行。-SCON = 0x50 /* SCON: mode 1, 8-bit UART, enable rcvr */ TMOD |= 0x20 /* TMOD: timer 1, mode 2, 8-bit reload */ TH1 = 221 /* TH1: reload value for 1200
scon
- 多机通信,运行结果:从机对主机发来的从机地址进行比较,控制对对应的从机数据通信,-Multi-machine communication, the results: the host machine sent from the slave address comparison, the corresponding slave control data communications
scon
- C51的一个很典型的串口通信程序,可发送字符串!-C51, a typical serial communication program can send strings!
scon
- 利用STC单片机和PC进行串口接收和发送数据功能-STC microcontroller and a PC serial port to receive and send data function
scon
- 单片机初始化串口,与计算机通信习作,计算机发送串口数据,点亮led灯-Microcontroller to initialize the serial port, communicating with the computer exercises
COM_PRINT
- 基于单片机串口打印的程序调试方法。需要设置串行口控制寄存器SCON。-Single-chip serial debugging method based printing. Need to set the serial port control register SCON.
PC-1
- 用PC机与多个51单片机通过RS232进行通讯。在多机通讯中,要保证主机与所选择的从机实现可靠的通信,必须保证串口具有识别的功能。在串行口控制寄存器SCON中 有一位叫做SM2,就是为了多机通讯而设置的控制位-Using a PC and a number of 51 single-chip RS232 communication. In multi-machine communication, to ensure that the host and the selected slave t