代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.inc
;------------------------------------------------------------------------------
;- ATMEL Microcontroller Software Support - ROUSSET -
;----------------------------------------------------
usart.h
/*
Copyright (c) 2007 Michael P. Thompson
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated document
usart.c
/*
Copyright (c) 2007 Michael P. Thompson
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated document
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