代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.c
/*----------------------------------------------------------------------------
Copyright: Radig Ulrich mailto: mail@ulrichradig.de
Author: Radig Ulrich
Remarks:
known Pro
usart.h
/*****************************************************
* 功能: USART串口接收传送功能模块
* 版本: V0.0
* 设计时间: 2007/12/25
* 设计人: cht
* 修改时间: 2007/12/25
* 修改人:
* 说明:
*****************************************
usart.c
/*
********************************************************
* 文件: usart.c
* 功能: 用于单片机与计算机串口通讯
* 工具: (WINAVR-GCC)
* 作者: cht
* 日期: 2/5/2007
* 版本: 0.1
* 声明:
**
usart.c
//异步串口初始化
//SYNC=0,异步,BRGH=1,高速,SPBRG=Fosc/(16*波特率)-1
//4MHz晶振
#include
#include
extern void delay(unsigned char);
void usart_init(void)
{
//RC6/7 设置为输入状态
SPEN =
usart.c
#define USART_C
#include "includes.h"
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA&(1
usart.c
#define USART_C
#include "includes.h"
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA&(1
usart.dep
0
Debug
$PROJ_DIR$\cfile\main.c
usart.eww
$WS_DIR$\usart.ewp
usart.fmt
[struct types]
Count=_ 0
[watch formats]
Count=_ 0