代码搜索结果

找到约 10,000 项符合 UART 的代码

uart.h

/* Environment: WinAVR 20060421*/ /* This program is designed for standard io stream */ /* It use the function fdevopen(int*,int*) */ #ifndef __UART_H__ #define __UART_H__ #include #i

uart.c

#include"UART.h" //#include int USART_putchar(char CH) { /* Wait for empty transmit buffer */ while ( !( UCSRA & (1

uart.h

//UART.H代码 #include "REG51.h" #define BAUD_RATE 2400 #define RELOAD(TIMER,SVALUE) TIMER+=SVALUE+1 sbit tTXD=P3^7; sbit rRXD=P3^2; bit tTI; bit rRI; data unsigned char rSBUF; data unsigned

uart.c

////////////////////////////////////////uart.c////////////////////////////// /////////////////////////////////file name :okiml674000//////////////////// ////////////////////////////////data:2005nia\

uart.vhd

library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity uart is port ( uartclk : IN STD_LOGIC; reset : IN

uart.h

void InitUART(void); void InitUART(void) { SCON = 0x50; // SCON: mode 1, 8-bit UART, enable rcvr BDRCON = 0x1e; //BRR=1,TBCK=1,RBCK=1,SPD=1,M0SRC=0 BRL = 223; // bound rate 38400

uart.lis

.module UART.c .area lit(rom, con, rel) 0000 L2: 0000 00 .byte 0 0001 00000000000000 .byte 0,0,0,0,0,0,0

uart._c

#include #include void put(unsigned int i) { char d[8]={0}; Int_to_Char(i,d); puts(d); } void Int_to_Char(unsigned int i,char *p) {p[0]=i/1000+48; p[1]=(i/100)%