-
Uart_receive
STM32F4系列串口接收函数,,程序已测试通过。(void USART1_IRQHandler(void) //串口1中断服务程序
{
u8 Res
#ifdef OS_TICKS_PER_SEC //如果时钟节拍数定义了,说明要使用ucosII了.
OSIntEnter()
#endif
if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET) //接收中断(接收到的数据必须是0x0d 0x0a结尾)
{
Res =USART_ReceiveData(USART1) //(USART1->DR) //读取接收到的数据
if((USART_RX_STA&0x8000)==0)//接收未完成
{
if(USART_RX_STA&0x4000)//接收到了0x0d
{
if(Res!=0x0a)
USART_RX_STA=0 //接收错误,重新开始
else
USART_RX_STA|=0x8000 //接收完成了
}
else //还没收到0X0D
{
if(Res==0x0d)USART_RX_STA|=0x4000
else
{
USART_RX_BUF[USART_RX_STA&0X3FFF]=Res
USART_RX_STA++
if(USART_RX_STA>(USART_REC_LEN-1))USART_RX_STA=0 //接收数据错误,重新开始接收
}
}
}
}
#ifdef OS_TICKS_PER_SEC //如果时钟节拍数定义了,说明要使用ucosII了.
OSIntExit()
#endif
} )
- 2016-01-21 17:04:30下载
- 积分:1
-
iam
http gams cam nist gov acmd Staff RPozo sparselib++ html(http gams cam nist gov acmd Staff RPozo sparselib html)
- 2018-11-17 23:59:15下载
- 积分:1
-
DS130218B201602
1、万年历,2、时间,3、星期,4、温度显示,(1, million years 历, 2, hours, 3, star period, 4, temperature 显示,)
- 2015-01-02 15:16:30下载
- 积分:1
-
usb-hid
发现usb_hid网上可参考的资源少,基于C#源码的就更少了,尤其是能通过验证的资源简直是没有,本usb hid源码在两三个银行用外部标准接口的硬件设备(如柜外清,条码识别,及指纹识别)测试通过了,关键是已经封装成了一个C#控件,使用时只需调用UsbLibrary.dll文件就行了,别再用那writefile了(Found usb_hid fewer resources available online reference, based on C# source code and even less, especially through the resources simply do not verify the source usb hid in two or three banks with an external standard hardware interfaces (such as outside the cabinet cleared , barcode recognition, and fingerprint recognition) test, the key is already packaged into a C# controls, just call UsbLibrary.dll file when using the line, do not use that writefile the)
- 2014-04-08 15:03:35下载
- 积分:1
-
SHT30_Example实例教程
SHT30温湿度传感器在stm32上使用的代码(Code for SHT30 Temperature and Humidity Sensor on stm32)
- 2021-02-02 23:19:59下载
- 积分:1
-
ADC
说明: This is ADC code. Its language is in C++. It is useful for both computer engineers or electrical engineers or any other types of majors.
- 2019-03-26 16:48:09下载
- 积分:1
-
DLT645-07-97
说明: 本软件包用于 DL/T 645 协议的采集与数据处理。在硬件层的移植(主要针对于串口收发数据)完成之后, 用户仅需调用一个API即可完成针对于特定协议(DL/T 1997 或 DL/T 2007)的标识符数据读取、处理与存储。使用户无需关注请求数据的封包与接收数据的解包等复杂的协议内部操作,真正做到 一键采集。(This software package is used for DL / T 645 protocol acquisition and data processing. After the porting of hardware layer (mainly for serial port receiving and sending data), users only need to call an API to complete the reading, processing and storage of identifier data for specific protocols (DL / T 1997 or DL / T 2007). Users do not need to pay attention to the complex internal operation of the protocol such as the packet of the request data and the unpacking of the received data, so as to realize the one key acquisition.)
- 2020-12-09 15:19:18下载
- 积分:1
-
ez-ipupdate-3.0.11b7.tar
EZ-IPUPDATE的LIB7版本,极有参考价值,与3322的QDNS不完全相同(ez-ipupdate is a small utility for updating your host name for the any of the dynamic DNS service offered at:
* http://www.ez-ip.net
* http://www.justlinux.com
* http://www.dhs.org
* http://www.dyndns.org
* http://www.ods.org
* http://gnudip.cheapnet.net (GNUDip)
* http://www.dyn.ca (GNUDip)
* http://www.tzo.com
* http://www.easydns.com
* http://www.dyns.cx
* http://www.hn.org
* http://www.zoneedit.com
)
- 2009-06-09 18:21:19下载
- 积分:1
-
max1202
说明: 这是本人自己写的max1202程序,经过在51上调试一切正常,希望给大家帮助!(This is my own written procedures max1202, after the commissioning of the 51 all normal, we hope to help!)
- 2009-08-13 18:42:31下载
- 积分:1
-
Dleifd
有关d类音频功率放大的资料,供大家参考。望对大家有点帮助。(D audio power amplifier for information for your reference. We hope for a little help.)
- 2011-07-16 23:29:17下载
- 积分:1