debug_com.c
来自「AVR系列的单片机MEGA16读写24系列的程序」· C语言 代码 · 共 22 行
C
22 行
#include<iom16v.h> //在此设定avr类MCU的头文件
#include<macros.h>
#include"xd.h"
#include"xdprj.h"
//参数:1)为要发送数据的起始地址, 2)a为数据长度
void txdpo(uchar *txdbuf, uchar a)
{
for(;a>0;a--)
{ UDR=*txdbuf;
txdbuf++;
while(!(UCSRA & BIT(UDRE)));
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?