代码搜索结果
找到约 5,134 项符合
USART 的代码
usart.mp
NOTE: AVR Code addresses are word addresses
All other addresses (including ones in FLASH) are byte addresses
Area Addr Size Decimal Bytes (Attributes)
----------
test_7135.src
[Files]
t0_250k.c
test_int0.c
test_t1.c
test_7135.c
usart.c
test_usart.c
zong.c
7135_finish.c
[Headers]
lib.h
[Documents]
usart.c
#include "msp430x42x.h"
#include "Global.h"
#include "USART.h"
#include "Measure.h" // 测量值
// 串口检查定时器周期(最小4个字节长度时间)
#define TIMER_INTERVAL (15729) // 15ms @
usart串口通讯例子.prj
[Project]
Toolset=AVR
FormatVersion=2
Files=1
OpenedFiles=1
Top0=202
Left0=5
Height0=330
Width0=489
Active0=0
State0=1
OF1=usart串口通讯例子.c
Top1=-23
Left1=-4
Height1=799
Width1=1039
Row1=
usart串口通讯例子.pr~
[Project]
Toolset=AVR
FormatVersion=2
Files=1
OpenedFiles=1
Top0=202
Left0=5
Height0=330
Width0=489
Active0=0
State0=1
OF1=usart串口通讯例子.c
Top1=-23
Left1=-4
Height1=799
Width1=1039
Row1=
usart串口通讯例子.prj
[Project]
Toolset=AVR
FormatVersion=2
Files=1
OpenedFiles=1
Top0=202
Left0=5
Height0=330
Width0=489
Active0=0
State0=1
OF1=usart串口通讯例子.c
Top1=-30
Left1=-4
Height1=577
Width1=724
Row1=2
usart串口通讯例子.pr~
[Project]
Toolset=AVR
FormatVersion=2
Files=1
OpenedFiles=1
Top0=202
Left0=5
Height0=330
Width0=489
Active0=0
State0=1
OF1=usart串口通讯例子.c
Top1=-30
Left1=-4
Height1=577
Width1=724
Row1=2
main.c
#include "main.h"
#include "usart.h"
int main(void)
{
device_init();
//////////////////add you code here
usart_example();
//////////////////
while(1)
{
};
ret
usart.c
#include "usart.h"
//这些数据若在myusart.h里面定义则会出错,原因是main.c包含了头文件myusart.h,头文件
//被包含,然后myusart.c则无法包含这些数据了
unsigned char data_00[]={"北京东控开发板\n\r"};
unsigned char data_01[]={"ATmega128主芯片:128K Flash
uart.c
#include "uart.h"
/*********************************************/
/*----Chon Baudrate cho cong USART + set Frame: 8 data bit+ 1 Stop bit----*/
void UART_Init(unsigned int baud)
{
/* Set baud r