代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
/*
Uart.h
标准80C51单片机串行口通用收发程序
说明:
RXD = P3.0
TXD = P3.1
晶振:11.0592MHz(缺省值)
用定时器T1作为波特率发生器
波特率:9600(缺省值)
起始位:1
数据位:8
停止位:1
校验位:无
用法:
1、根据实际情况,修改参数配置
2、在主程序中包含本头文件
3、在main(
uart.lst
C51 COMPILER V7.06 UART 07/01/2007 16:03:04 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN ua
uart.h
#ifndef __UART_H__
#define __UART_H__
void Test_Uart0(void);
void Test_Uart0Fifo(void);
void Test_Uart1(void);
void Test_Uart1Fifo(void);
void Test_Uart0Range(void);
void Test_Uart1Max(void);
uart.c
#include
#include
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\def.h"
#include "..\inc\rtc.h"
#define KEY_BUFLEN 100
#define AFC_BUFLEN 0x100
c
uart.h
void UARTInit(void);
void UARTPutChar(unsigned char sign);
unsigned char UARTGetChar(void);
void UARTWrite(char* msg);
unsigned char AsciiToHex(unsigned char high,unsigned char low);
void SendHex(un
uart.c
#include
#include
#include "uart.h"
void UARTInit(void)
{
//UCSRB |= (1
uart.h
extern void uart_send_byte(unsigned char dat);
uart.lst
HI-TECH Software PICC Macro Assembler V8.05PL1
Mon Jan 23 11:53:00 2006
1 processor 16F877A
2
uart.sdb
[p AUTOSTATIC PIC14 PICMIDHI PICLOMID CANREADCODE ]
"14 C:\HT-PIC\INCLUDE\pic168xa.h
[v _INDF `Vuc 1 s 1 @0 ]
"15
[v _TMR0 `Vuc 1 s 1 @1 ]
"16
[v _PCL `Vuc 1 s 1 @2 ]
"17
[v _STATUS `Vuc 1