-
IO_SOFT_UART_USE_TIMER
说明: 1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双工通讯。收、发波特率相同。
4. 应把定时器中断优先级设置为最高级。
5. 本程序每接收一个字节后就把它放到一个队列缓冲区中(也可使用环行缓冲区),
待缓冲区满后,将缓冲区中的内容原样发回。这是为了测试多字节连续收发的
能力和简化程序。实际应用中应防止缓冲区溢出。
6. 由接收转换到发送时要先调用 soft_send_enable ();
由发送转换到接收时要先调用 soft_receive_enable ()。
7. 发送最后一个字节后如果要立刻转为接收,必须等待最后一个字节后发送完毕
while ( rs_f_TI == 0) // 等待最后一个字节发送完毕(err)
- 2008-09-16 13:37:34下载
- 积分:1
-
红外遥控器
使用STM32F103 32位芯片配置红外遥控器以及控制红外遥控器(Configuration of Infrared Remote Controller and Control of Infrared Remote Controller with STM32F103 32 Bit Chip)
- 2020-06-23 17:00:02下载
- 积分:1
-
DS18B20
单总线温度DS18b20程序,适用于AVR单片机。(Single-bus temperature DS18b20 procedures applicable to the AVR microcontroller.)
- 2013-12-20 17:00:36下载
- 积分:1
-
gf_spwm
用mage128产生spwm驱动ir21094构成的逆变电源,小功率时波形正常。(Switching power supply system procedures mage128 parallel development board to achieve two-way current pro rata, the regulator output.)
- 2013-08-09 11:35:31下载
- 积分:1
-
MPU6050
stc12c5a60s2读取mpu6050六轴原始数据(stc12c5a60s2 read mpu6050 six-axis raw data)
- 2013-08-04 00:11:20下载
- 积分:1
-
reliability-of-distribution-network
加入分布式电源后,配电网可靠性的研究,从知网上下的文章哦,挺有用的(After the addition of distributed power supply with the reliability of the grid research, top to bottom of article HowNet Oh, quite useless)
- 2015-04-29 21:33:24下载
- 积分:1
-
heartrate_monitor_all
小护士脉搏监护仪全套系统,包括程序,电路图,波形,参考资料等,还有和PC的matlab通信部分,一应俱全。(Small nurses monitor the pulse of a full set of systems, including procedures, circuit diagrams, waveform, reference materials, as well as and the PC part of matlab communication services.)
- 2008-06-27 10:41:47下载
- 积分:1
-
MPU6050
本程序实现如下功能:开机后,先初始化MPU6050等外设,然后利用DMP库,初始化MPU6050及使能DMP,最后,在死循环里面不停读取:温度传感器、加速度传感器、陀螺仪、DMP姿态解算后的欧拉角等数据,通过串口上报给上位机(温度不上报),利用上位机软件(ANO_Tech匿名四轴上位机_V2.6.exe),可以实时显示MPU6050的传感器状态曲线,并显示3D姿态,可以通过KEY0按键开启/关闭数据上传功能。同时,在LCD模块上面显示温度和欧拉角等信息。DS0来指示程序正在运行。(This program implements the following functions: boot, first initialize MPU6050 and other peripherals, and then use the DMP library initialization MPU6050 and enable DMP, finally, in an endless loop which constantly reads: temperature sensors, acceleration sensors, gyroscopes, DMP attitude Euler angles and other data solver after reporting to the host computer through the serial port (temperature does not report) using PC software (ANO_Tech anonymous axis PC _V2.6.exe), it can display MPU6050 sensor status in real-time curve, and displaying 3D gesture by KEY0 button on/off data uploading. Meanwhile, in the LCD display above the module temperature and other information Euler angles. DS0 to indicate that the program is running.)
- 2016-03-17 17:55:43下载
- 积分:1
-
14-I2C
STM8内部I2C控制程序,供初学人员参考(The STM8 internal I2C control, for beginners to reference)
- 2012-06-20 09:25:18下载
- 积分:1
-
Broadcaster
Sign up for notifications about something.
- 2013-11-19 10:48:40下载
- 积分:1