代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.h
//波特率9600/9个数据位/1个停止位/奇校验/收发开启/接收中断
void USARTinit(void)
{
UCSR0B=0x9C;
UCSR0C=0x36;
UBRR0L=0x2F;
PORTD.4=0; //MAX485平时工作在接收状态
DDR
usart.h~
//波特率9600/9个数据位/1个停止位/奇校验/收发开启/接收中断
void USARTinit(void)
{
UCSR0B=0x9C;
UCSR0C=0x36;
UBRR0L=0x2F;
PORTD.4=0; //MAX485平时工作在接收状态
DDR
usart.h
#ifndef _SERIAL_H_
#define _SERIAL_H_
#define BAUD 9600
#define FOSC 4000000L
#define NINE 0 /* Use 9bit communication? FALSE=8bit */
#define DIVIDER ((int)(FOSC/(16UL * BAUD) -1))
usart.sdb
[p GLOBOPT AUTOSTATIC PIC14 PICMIDHI PICLOMID ]
"20 C:\Program Files\HI-TECH Software\PICC\9.50\include\pic16f7x.h
[v _TMR0 `Vuc 1 s 1 @1 ]
"21
[v _PCL `Vuc 1 s 1 @2 ]
"22
[v _STATUS `Vuc 1 s
usart.lst
HI-TECH Software PICC Macro Assembler V9.50PL2
Sat Sep 16 09:34:47 2006
1 processor 16F73
2
usart.cce
Advisory[1207] : some of the command line options you are using are now obsolete
Advisory[1208] : use --help option or refer to the user manual for option details
usart.c
#include
#include
#include "usart.h"
void
putch(unsigned char byte)
{
/* output one byte */
while(!TXIF) /* set when register is empty */
continue;
TXREG = byte;
}
usart.c
//USART.C IS THE USART ROUTINE FILE FOR MICROCHIP C18 COMPILER
// FUNCTIONS EXPLANATION
//
//USART_INIT:
// THIS FUNCTION IS USED TO CONFIGURE THE USART MODULE FOR
// USART COMMUNICATION
//