资源简介
arduino软串口库文件SoftwareSerial
代码片段和文件信息
/*
SoftwareSerial.cpp (formerly NewSoftSerial.cpp) -
Multi-instance software serial library for Arduino/Wiring
-- Interrupt-driven receive and other improvements by ladyada
(http://ladyada.net)
-- Tuning circular buffer derivation from class Print/Stream
multi-instance support porting to 8MHz processors
various optimizations PROGMEM delay tables inverse logic and
direct port writing by Mikal Hart (http://www.arduiniana.org)
-- Pin change interrupt macros by Paul Stoffregen (http://www.pjrc.com)
-- 20MHz processor support by Garrett Mace (http://www.macetech.com)
-- ATmega1280/2560 support by Brett Hagman (http://www.roguerobotics.com/)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License or (at your option) any later version.
This library is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not write to the Free Software
Foundation Inc. 51 Franklin St Fifth Floor Boston MA 02110-1301 USA
The latest version of this library can always be found at
http://arduiniana.org.
*/
// When set _DEBUG co-opts pins 11 and 13 for debugging with an
// oscilloscope or logic analyzer. Beware: it also slightly modifies
// the bit times so don‘t rely on it too much at high baud rates
#define _DEBUG 0
#define _DEBUG_PIN1 11
#define _DEBUG_PIN2 13
//
// Includes
//
#include
#include
#include
#include
//
// Lookup table
//
typedef struct _DELAY_TABLE
{
long baud;
unsigned short rx_delay_centering;
unsigned short rx_delay_intrabit;
unsigned short rx_delay_stopbit;
unsigned short tx_delay;
} DELAY_TABLE;
#if F_CPU == 16000000
static const DELAY_TABLE PROGMEM table[] =
{
// baud rxcenter rxintra rxstop tx
{ 115200 1 17 17 12 }
{ 57600 10 37 37 33 }
{ 38400 25 57 57 54 }
{ 31250 31 70 70 68 }
{ 28800 34 77 77 74 }
{ 19200 54 117 117 114 }
{ 14400 74 156 156 153 }
{ 9600 114 236 236 233 }
{ 4800 233 474 474 471 }
{ 2400 471 950 950 947 }
{ 1200 947 1902 1902 1899 }
{ 600 1902 3804 3804 3800 }
{ 300 3804 7617 7617 7614 }
};
const int XMIT_START
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1363 2013-05-17 22:25 SoftwareSerial\examples\SoftwareSerialExample\SoftwareSerialExample.ino
文件 2562 2013-05-17 22:25 SoftwareSerial\examples\TwoPortReceive\TwoPortReceive.ino
文件 601 2013-05-17 22:25 SoftwareSerial\keywords.txt
文件 13606 2013-05-17 22:25 SoftwareSerial\SoftwareSerial.cpp
文件 3566 2013-05-17 22:25 SoftwareSerial\SoftwareSerial.h
目录 0 2016-12-08 22:23 SoftwareSerial\examples\SoftwareSerialExample
目录 0 2016-12-08 22:23 SoftwareSerial\examples\TwoPortReceive
目录 0 2016-12-08 22:23 SoftwareSerial\examples
目录 0 2016-12-08 22:23 SoftwareSerial
----------- --------- ---------- ----- ----
21698 9
- 上一篇:sscom42串口调试
- 下一篇:算术编码包括编码解码
相关资源
- 开源图像库leptonica头文件和库文件
- QT生成DLL库文件的方法和使用方法详解
- DOS下的TCP-IP协议库文件原代码.rar
- dll文件全集(473个).rar
- 最新整理 盘古分词 dct词库文件 7205
- STC库文件 STC.CDB
- ps2手柄arduino库文件
- hidapi进行USB通讯必备的库文件和头文
- DHT11 21 22库文件
- PrintShare破解版+打印机驱动、PDF库文件
- HMC5883L罗盘指南针模块库文件及中英文
- simsun.ttf、simheittf.ttf 字体库文件
- TMS320F28335系列头文件、库文件、cmd等
-
Tinyxm
l库文件 - F2833x TI官方库文件
- caffe图片资源转换数据库文件
- 基于web的二手交易系统的设计与实现
- 200SMART库文件
- 嘉立创元器件标准库文件
- GDI+头文件以及库文件
- 兼容TC1782库文件
- Arduino所有库.zip
- 2020版fortify的规则库文件
- 高校人事管理系统含源代码及设计文
- windows安装需要的Hadoop库文件
- Struts2 (登陆+增删改查+数据库文件
- vfp6运行库文件
- vue-2.5.17 js 源码库文件等
- CTK编译库文件
- 学生成绩管理系统项目源代码 和 数据
评论
共有 条评论