代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.dbg
IMAGECRAFT DEBUG FORMAT
VERSION 1.1
CPU AVR
DIR G:\猛\avr实践\UART\
FILE UART.c
FUNC main F6 fV
BLOCK 86 F6
DEFREG i 22 c
LINE 86 F6
LINE 89 F6
LINE 90 F8
LINE 91 FA
LINE 93 FC
LINE 94 FC
L
uart.c
#include
#include
//LED 开关定义
#define Red_LED_on PORTB&~BIT(0)
#define Red_LED_off PORTB|(1
uart.s
.module UART.c
.area data(ram, con, rel)
_Rx_counter::
.blkb 1
.area idata
.byte 0
.area data(ram, con, rel)
.dbfile G:\猛\avr实践\UART\UART.c
.dbsym e Rx_counter _Rx_counter c
_Tx_count
uart.src
[Files]
UART.c
[Headers]
[Documents]
uart.mak
CC = iccavr
CFLAGS = -IC:\icc\include\ -e -DATMEGA -l -g -Mavr_enhanced
ASFLAGS = $(CFLAGS) -Wa-g
LFLAGS = -LC:\icc\lib\ -g -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x10ff -bdata:0x100.
uart.mp
NOTE: AVR Code addresses are word addresses
All other addresses (including ones in FLASH) are byte addresses
Area Addr Size Decimal Bytes (Attributes)
----------
uart.h
void Uart_Init(void);
unsigned char Uart_Receive(void);
void Uart_Transmit(unsigned char i);
uart.lis
.module uart.c
.area text(rom, con, rel)
0000 .dbfile E:\ICCAVR\project\AVRMEG~2\icc\019-TEST\uart.c
0000 .dbfu
uart.c
#include "iom16v.h"
/*串口初始化函数*/
void Uart_Init(void) {
UCSRA = 0x02; /*倍速*/
UCSRB = 0x18; /*允许接收和发送*/
UCSRC = 0x06; /*8位数据*/
UBRRH = 0x00;
UBRRL = 12; /*9600*/
}
/*数据发送,查询方式*/
v