代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.eep
:00000001FF
usart.h
#ifndef _USART_ZHENGZUOWEI_H_
#define _USART_ZHENGZUOWEI_H_
/******************************************************
数据帧格式 BB 20 08 12 23 00 14 15 10 EE
BB 起始字节
20 年高位
08 年低位
12 月份
23 日期
00 空字
usart.c~
#include "usart.h"
void UsartInit(void)
{
UBRRH = (unsigned char)(((unsigned int)((unsigned long)CRYSTAL/(16*(unsigned long)BAUD)-1)) >> 8); //
UBRRL = (unsigned char)((uns
usart.c
#include "usart.h"
/******************************************************
函数void UsartInit(void)用于初始化USART
******************************************************/
void UsartInit(void)
{
UBRR
usart.h
/*******************************************************************
*
*
*
*
*
********************************************************************/
#ifndef __usart_h__
#define __usart_h__
usart.c
/******************************************************
*工程名称:Mega16与PC机的串口通信
*创建日期:2007年6月25日
*创 建 人:朱海峰
*修改日期:
*修 改 人:
*版 本 号:
*其 他:QQ:543376422 E-mail:ntzhf100@163.com
* 淘宝网店:h
usart.h
/* Interface an Atmel AVR MCU with Freescales MC1319x ZigBee chip */
/*
* Author: johan@anteeo.se
*
* Copyright (C) 2005 by Anteeo Systems HB, Sweden
*
* This program is free softwar
usart.c
/* Interface an Atmel AVR MCU with Freescales MC1319x ZigBee chip */
/*
* Author: johan@anteeo.se
*
* Copyright (C) 2005 by Anteeo Systems HB, Sweden
*
* This program is free softwar
usart.c
#define USART_C
#include "includes.h"
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA&(1