代码搜索结果
找到约 5,134 项符合
USART 的代码
fet440_spi0_016x.c
//******************************************************************************
// MSP-FET430P440 Demo - USART0, SPI Interface with HC165/164 Shift Registers
//
// Description: Demonstrate USART
at91_usart.h
/*
* AT91RM9200 USART driver for use for high speed packet sending/receiving
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Pub
at91sam9260_usart.h
/* linux/include/asm-arm/arch-at91sam9260/at91sam9260_usart.h
*
* Hardware definition for the usart peripheral in the ATMEL at91sam9260 processor
*
* Generated 01/16/2006 (17:06:46) AT91 SW
usart.h
#ifndef __USART_H
#define __USART_H
/* PIC18 USART peripheral libraries. */
/* There are three library modules, corresponding to register names:
* USART1 (TXSTA1, RCSTA1, etc.)
* USART2
软件模拟usart.txt
转:软件模拟<mark>USART</mark>
在用单片机开发各种嵌入式应用系统时,异步串行通信是经常要用到的一种通信模式,很多应用中还要求实现多路异步串行通信。大家平时熟悉的各种厂家的单片机,绝大部分片上只提供一个硬件UART模块,利用它可以方便实现一路串行通讯。PIC系列单片机也不例外,在其丰富的产品家族成员中,除高端系列(PIC17/18)一些型号片上带有两路硬件UART模块外,其它大部分型号 ...
usart.h
//usart.h
// BIT DEFINES
#define BIT0 0x00000001
#define BIT1 0x00000002
#define BIT2 0x00000004
#define BIT3 0x00000008
#define BIT4 0x00000010
#
usart.c
//usart.c
#include "usart.h"
#include "AT91SAM7S64.h"
// Pointers
AT91PS_PIO u_pPio = AT91C_BASE_PIOA;
AT91PS_PMC u_pPMC = AT91C_BASE_PMC;
AT91PS_USART u_pUSART0 = AT91C_BASE_US0;
usart.c
//
//Atmel AVR Design Contest 2006 Registration Number AT3221
//
//***************************************************************************
//
// File........: usart.c
//
// Author(s)...: ATMEL
includes.h
#include "main.h"
#include "delay.h"
//#include "horse.h"
//#include "lcd.h"
//#include "ad.h"
#include "init.h"
#include "number.h"
//#include "usart.h"
#include
//#include
usart.c
#define USART_C
#include "includes.h"
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA&(1