代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/************************************************************************
;* 公 司: xx
;* 模 块: serial.c
;* 功 能: 串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理;
;* 出入均设有缓冲区,大小可任意设置
;* 芯 片: AMEGA16
uart.asm
;清单40
.ORG 0 ;8535UART串行通讯程序,晶振4MHZ
.EQU DTPINT=$180 ;UBRR=12 波特率19200(REL.ERR.=0.16%)
.EQU DRPINT=$1D0
STRT30: RJMP RST30
.ORG $00B
uart.o
XL
H 5 areas 14 global symbols
M Uart.c
S push_gset1 Ref0000
S push_gset5 Ref0000
S _ExtendRomVal Ref0000
S div16u Ref0000
S _adc_mux Ref0000
S pop_lset Ref0000
S _ExtendRomAddr Ref0000
S po
uart.s
.module Uart.c
.area text(rom, con, rel)
.dbfile G:\Mega8程序\TCXO评估板\Main\Uart.c
.dbfunc e getchar _getchar fc
.even
_getchar::
.dbline -1
.dbline 19
L2:
.dbline 19
L3:
.dbline 19
uart.lis
.module Uart.c
.area text(rom, con, rel)
0000 .dbfile G:\Mega8程序\TCXO评估板\Main\Uart.c
0000 .dbfunc e getchar _ge
uart.c
/*
串口通信模块,使用之前,应该在Main 函数中对串口进行初始化,
串口数据接收方式采用中断进行
*/
#include
#include
#define fosc 8000000 //晶振8MHZ
#define baud 19200 //波特率
extern void adc_init(void);
extern unsigne
uart.o
XL
H 4 areas B global symbols
M Uart.c
S push_gset1 Ref0000
S _rom_write Ref0000
S pop_lset Ref0000
S pop_gset1 Ref0000
S push_lset Ref0000
A text size 66 flags 0
dbfile G:\Mega8程序\测试MegaOSCC
uart.s
.module Uart.c
.area vector(rom, abs)
.org 22
rjmp _UartGet
.area data(ram, con, rel)
_charInput::
.blkb 1
.area idata
.byte 0
.area data(ram, con, rel)
.dbfile G:\Mega8程序\测试MegaOS