单片机控制无线跳频传输实验设计重12.83%附件2.docxVIP

  • 0
  • 0
  • 约2.21万字
  • 约 35页
  • 2026-07-15 发布于云南
  • 举报

单片机控制无线跳频传输实验设计重12.83%附件2.docx

PAGEII

附录

接收板主程序

#include?reg52.h

#include?IndeUart2.h

#include?OLED12864.h

#include?Timer0.h

#include?UartA_Recive.h

void?main()

{

OLED_Init();

OLED_FontView(0,0,温度:);

Uart2_Init();

Timer0_Init();

UartA_ReceiveInit();

while(1)

{

if(UartA_Receive_Complete)

{

UartA_Receive_Complete=0;

OLED_FontView(72,0,UartA_Receive_Data);

UartA_ReceiveInit();

}

}

}

/*

??功能描述:?定时器0中断函数

??函数参数:?无

??返回说明:?无

*/

void?Timer0_Interrupt(void)?interrupt?1//定时器0中断函数

{

TH0?=?0xDC;//重置定时时间,如果初始化使用的是定时方式2则不需要重置

TL0?=?0x00;

??UartA_Receive_Interval_Count();

}

OLED12864.h

#includeOLED12864.h

#definePF16X16_Num3

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档