-
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
-
JASK1000-CC1100(STC89C52)
说明: 51单片机控制cc1100模块发送数据,单片机信号89c52(SCM cc1100 module 51 to send data signals 89c52 microcontroller)
- 2011-03-01 13:12:10下载
- 积分:1
-
main
本项目是基于Cortex-M3 的地沟油快速检测装置,旨在实现“地沟油”快速,现场检测。MCU控制可编程的直接数字频率合成器(DDS)产生正弦激励信号,经过可变增益放大器(VGA)和低通滤波器(LPF)作用于食用油阻抗传感器(实验室制作)信号经过仪器放大器送入微控制器(MCU)的模数转化(ADC)通道,MCU对采集的信号通过快速傅里叶变换(DFT)处理,实现食用油阻抗与相角的检测;USB和以太网接口,可与计算机通讯,以便对采集的数据进行存储和分析。(The project is based on the Cortex-M3 waste oil rapid detection device designed to achieve " waste oil" rapid, on-site testing. MCU control programmable direct digital frequency synthesizer (DDS) generates sinusoidal excitation signal through a variable gain amplifier (VGA) and a low-pass filter (LPF) acting on the oil-impedance sensor (lab produced) to send signals through the instrumentation amplifier into the microcontroller (MCU) modulo conversion (ADC) channels, MCU signal acquisition via Fast Fourier Transform (DFT) processing, oil resistance and phase angle detection USB and Ethernet interfaces, and computer communication, in order to collect data for storage and analysis.)
- 2020-07-01 17:20:01下载
- 积分:1
-
智能温度控制器
当温控开关打开时,若测得环境温度大于设定温度,则继电器吸合
启动电机工作;若测得环境温度小于设定温度,则继电器释放,
电机停止工作;(When the temperature control switch is turned on, if the measured ambient temperature is higher than the set temperature, the relay will suck in.
Start the motor; if the measured ambient temperature is less than the set temperature, the relay will be released.
The motor stopped working.)
- 2019-03-29 11:44:31下载
- 积分:1
-
24C256
24C256的C51程序 包括IIC程序(24C256 IIC procedures, including procedures for the C51)
- 2011-11-08 10:25:28下载
- 积分:1
-
实验17:定时器0中断
51单片机中重要的内容:定时器中断0。定时器中断0的程序。(51 MCU important content: timer interrupt 0.)
- 2020-06-19 10:40:02下载
- 积分:1
-
Microcontroller-C-program
说明: TLC5615产生各种波形,dac处理芯片,精度为十位的DAC,产生方波 正弦波 三角波等(TLC5615Produce various waveform形)
- 2011-03-29 16:06:18下载
- 积分:1
-
CRC-16
循环冗余校验16位的,c语言编程环境,能够正常运行,程序详细注释(16 bit cyclic redundancy check, C language programming environment, normal operation, procedures detailed notes)
- 2015-04-17 14:06:10下载
- 积分:1
-
Meter
国家电网智能表源程序,使用C写的可移植性非常强,是做智能电表开发者有很大的帮助,甚至可以直接用,是很成熟的程序。(National Grid smart meter source, written in C portability is very strong, smart meter developers are doing a great help, and even can be directly used, is very mature program.)
- 2014-11-17 10:55:56下载
- 积分:1
-
DAC
基于MSP430定时器实现的DAC设计源代码(Based on MSP430 timer realize the design of the source code of the DAC)
- 2008-05-12 14:15:50下载
- 积分:1