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

33 lines
337 B
C
Raw Normal View History

2022-04-28 02:00:04 +00:00
#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