代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.dp2
Uart.o: G:/ICC/include/iom8v.h G:/ICC/include/macros.h
uart.c.bak
/*
串口通信模块,使用之前,应该在Main 函数中对串口进行初始化,
串口数据接收方式采用中断进行
*/
#include
#include
#define fosc 8000000 //晶振8MHZ
#define baud 19200 //波特率
extern void adc_init(void);
extern unsigne
uart.dp2
Uart.o: g:/ICC/include/iom8v.h g:/ICC/include/macros.h
uart.c.bak
/*串口通信模块,使用之前,应该在Main 函数中对串口进行初始化,
串口数据接收方式采用中断进行,振荡频率修正参数不在EEPROM的
0x1ff0中,使用PonyProg可以测试得OSCCAL=0xA1*/
#include
#include
extern void rom_write(unsigned int Address,unsign
int_uart.c
/****************************
*** RS232 中断模式的通信程序
****************************/
#include
#include
#define Fosc 4096000 //系统晶振频率 4.096MHz
#define BAUD
uart_tx.c
#include "global.h"
interrupt [UART0TX_VECTOR] void UART_TX(void)
{
if(avr_flag==1)
{
for(i=0;i>4)&0X00FF);
while((UTCTL0&0X01)==0);
}
}
uart_receiver.bsf
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to
uart_transmitter.bsf
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to
uart1.lst
UART1 PAGE 1
1 ;==================================================
uart2.lst
UART2 PAGE 1
1 ;==================================================