代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/*************************************************/
/**************串行口控制********************/
/*************2003年1月24日*********************/
/************WROTE BY WANGSW********************/
uart.h
//-----------------------------------------------------------------------------
// Software that is described herein is for illustrative purposes only
// which provides customers with programming
uart.c
//-----------------------------------------------------------------------------
// Software that is described herein is for illustrative purposes only
// which provides customers with programming
uart.lst
HI-TECH Software PICC Macro Assembler V8.05PL2
Serial number: HCPIC-88888 Thu Apr 23 16:52:09 2009
Licensed to: ONE TWO
1 processor
uart.h
#ifndef __UART_H
#define __UART_H
extern void UART_Init(void);
extern void UART_SendByte(unsigned char TxBuf);
extern void DMX512_SendData(uchar TxBuf);
#endif
uart.c
#include
#include "..\inc\include.h"
#define MAX_ADDR 210 //定义最大的需发送数据次数
#define TXD RC6
extern void Delay10us(uchar t);
void UART_Init(void)
{
//Fosc = 4MHz
SPEN = 1;
uart.sdb
[p GLOBOPT AUTOSTATIC PIC14 PICMIDHI PICLOMID CANREADCODE ]
"14 C:\Program Files\HI-TECH Software\PICC\Demo\INCLUDE\pic16f7x7.h
[v _TMR0 `Vuc 1 s 1 @1 ]
"15
[v _PCL `Vuc 1 s 1 @2 ]
"16
[v _STA