This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/MCU/MCU_6 _UART/main.h
2022-04-28 10:00:04 +08:00

33 lines
No EOL
337 B
C

#ifndef _MAIN_H_
#define _MAIN_H_
#include <reg52.h>
#include <intrins.h>
#include <absacc.h>
#include "display.h"
#define RELOAD (5000)
unsigned int TH, TL;
unsigned long int count = 0;
void setConfig()
{
SCON=0X50;
TMOD=0X20;
PCON=0X80;
TH1 = 0XFA;
TL1 = 0XFA;
TR1=1;
SCON=0X50;
XBYTE[0x8000]=0x00;
}
#endif