代码搜索:bps
找到约 1,356 项符合「bps」的源代码
代码结果 1,356
www.eeworm.com/read/335267/12542783
asm test938ad.asm
//*******************************************************************************************
//文件:TEST938AD.ASM
//功能:对通道AD0 进行AD 转换,结果通过UART 发送到PC,通信波特率为9600BPS
;每路AD转换的结果寄存器需要2个,故8路ADC有16个结果寄存器。以
www.eeworm.com/read/135714/13909366
v receive.v
module receive(rxd,clock,sbuf);
//9600BPS,8位数据,1位停止位
input rxd;
input clock;
output [7:0] sbuf;
reg [3:0] count_reg; //RXD数据状态计数器
reg [9:0] uart_buf; //串行数据接收缓冲区
reg [3:0] bit_
www.eeworm.com/read/365885/9842034
txt linux1.txt
设置这个结构体很复杂,我这里就只说说常见的一些设置:
波特率设置
下面是修改波特率的代码:
struct termios Opt;tcgetattr(fd, &Opt);cfsetispeed(&Opt,B19200); /*设置为19200Bps*/cfsetospeed(&Opt,B19200);tcsetattr(fd,TCANOW,&Opt);
设置波特率
www.eeworm.com/read/355424/10266813
asm sms_alam.asm
;CPU(LPC932) 1200,9600BPS ADDR(13003330666)
;外部复位,看门狗
$include (REG932.INC)
RST_TIME EQU 4AH ;GSM断电计数
SEND_TIME EQU 4BH ;发送重复次数
msg_len equ 4ch ;短消息长度
num_type equ 4eh ;
www.eeworm.com/read/455740/7367070
c init8051.c
#include
extern Init8051(void)
{
SCON=0x50; //Set the serial port working mode.
TMOD=0x21;
TCON=0x05;
PCON=0x00;
IP = 0x00;
TH1=0xfa; //Set baud rate to 9600BPS at 22.1184MHz c
www.eeworm.com/read/455740/7367289
c init8051.c
#include
extern Init8051(void)
{
SCON=0x50; //Set the serial port working mode.
TMOD=0x21;
TCON=0x05;
PCON=0x00;
IP = 0x00;
TH1=0xfa; //Set baud rate to 9600BPS at 22.1184MHz c
www.eeworm.com/read/251395/12348031
c target.c
#include "config.h"
void SPI_Init(void)
{
S0SPCCR=0x52;
S0SPCR=0x30;
}
void UART0_Init(uint32 UART_BPS)
{uint16 Fdiv;
U0LCR = 0x83; // DLAB=1,允许设置波特率
Fdiv = (Fpclk / 16)
www.eeworm.com/read/233560/14146958
asm sms_alam.asm
;CPU(LPC932) 1200,9600BPS ADDR(13003330666)
;外部复位,看门狗
$include (REG932.INC)
RST_TIME EQU 4AH ;GSM断电计数
SEND_TIME EQU 4BH ;发送重复次数
msg_len equ 4ch ;短消息长度
num_type equ 4eh ;
www.eeworm.com/read/229284/14346534
c sci3.c
#include "sci3.h"
#include "iodefine.h"
void sci3_init(void)
{
SCI3.SMR.BYTE=0x00; //初始化串口
SCI3.BRR=51; //baudrate 9600bps
IO.PMR1.BIT.TXD=1;
SCI3.SCR3.BYTE=0x30;
}
char sci3_cha
www.eeworm.com/read/41257/919553
c prot30.c
/*--------------------------------------
芯片 :STC12C5A60S2芯片
硬件: :15入15出继电器控制板子
晶振 :11.0592MHZ
开发平台:KEIL
功能 :串口一或者串口二都可以通过上位机控制30路继电器
波特率 :9600BPS
日期 :2012.4.19
编者 :yang
QQ