代码搜索结果
找到约 10,000 项符合
USART 的代码
usart使用.s
.module USART使用.c
.area data(ram, con, rel)
_f::
.blkb 2
.area idata
.byte 1,2
.area data(ram, con, rel)
.blkb 2
.area idata
.byte 3,4
.area data(ram, con, rel)
.blkb 2
.area i
usart.c
#define USART_C
#include "includes.h"
void UsartInit(void)
{
// 晶振频率 : 4.0MHz
// 通信参数: 8 Data, 1 Stop, No Parity
// 波特率:
// UBRRL= 0x0C 19200;
// UBRRL= 0x19 9600;
usart.dbg
IMAGECRAFT DEBUG FORMAT
VERSION 1.1
CPU AVR
DIR C:\DOCUME~1\Administrator\桌面\maga8练习\USART\
FILE USART使用.c
FUNC port_init 6C fV
BLOCK 10 6C
LINE 10 6C
LINE 11 6C
LINE 12 70
LINE 13 74
LINE
usart.lst
__text_start:
__start:
0016 E5CF LDI R28,0x5F
0017 E0D4 LDI R29,4
0018 BFCD OUT 0x3D,R28
0019 BFDE OUT 0x3E,R29
001A 51C0 SUBI R28,0x10
001B 40D
usart.h
#ifndef USART_H
#define USART_H
#ifdef USART_C
void UsartInit(void);
int PutChar(char c);
void SendNbyte(unsigned char *p,unsigned char L);
void PutStr(unsigned char *Str);
#else
extern void U
usart.c
#include
#include
#include
#define uchar unsigned char
#define uint unsigned int
#define ulonglong unsigned long long
void Usart_init(void)
usart.c
#include "USART.h"
#include "main.h"
volatile INT8U rx_enable=0;
volatile INT8U rx_buffer[RX_BUFFER_SIZE]; // USART0 Receiver buffer
volatile INT8U rx_wr_index=0;
volatile INT8U rx_rd_inde
usart.h
#ifndef __USART_H__
#define __USART_H__
#include "main.h"
#define RXB8 1
#define TXB8 0
#define UPE 2
#define OVR 3
#define FE 4
#define UDRE 5
#define RXC 7
#define FRAMING_ERROR (1
usart.c
#include "USART.h"
#include "main.h"
volatile INT8U rx_enable=0;
volatile INT8U rx_buffer[RX_BUFFER_SIZE]; // USART0 Receiver buffer
volatile INT8U rx_wr_index=0;
volatile INT8U rx_rd_inde
usart.h
#ifndef __USART_H__
#define __USART_H__
#include "main.h"
#define RXB8 1
#define TXB8 0
#define UPE 2
#define OVR 3
#define FE 4
#define UDRE 5
#define RXC 7
#define FRAMING_ERROR (1