Description: PC and single-chip two-way communication smart temperature control procedures# Include <AT89X51.H># Include <intrins.h># Define Key_UP P1_0# Define Key_DOWN P1_1# Define Key_SET P1_2# Define RelayOutPort P2_0# Define LEDPort P0# define DELPort P2_1# define LEDTwoC P3_6# define LEDThreeC P3_7# define TMPort P2_7# define INBUF_LEN 5// data length unsigned char inbuf1 [INBUF_LEN] = (0, 0, 0, 0, 0)// Send buffer unsigned char inbuf2 [50]// receive buffer unsigned char count3 void init_serialcomm (void) (SCON = 0x50// SCON: serail mode 1, 8-bit UART, enable ucvrTMOD | = 0x20// TMOD: timer 1 , mode 2, 8-bit reloadPCON | = 0x80// SMOD = 1 TH1 = 0xFA// Baud: 4800 fosc = 11.0592MHzIE | = 0x90// Enable Serial InterruptTR1 = 1// timer 1 run)// to the serial port to send a character void send_char_com (unsigned char ch) (SBUF = ch while (TI == 0) TI = 0
- [C51bus] - 51 Singlechip various interface bus pack
- [mp3] - Fiberxon MP3 to produce their own inform
- [PC-Serial-Communication] - The program for the PC and MCU through t
- [send-reveive] - Single-chip AT89S52 serial send receive
- [wenshidu] - This a single-chip microcomputer-based m
- [control] - control
- [123] - Magnetic compass interface of the host c
- [hdl] - Image data acquisition and processing, a
- [shuangxiangwenkong] - PC and MCU intelligent temperature contr
- [SERIAL] - vc serial comunication code
File list (Check if you may need any files):
本站原创 PC与单片机双向通讯智能温控程序
.......................................\STARTUP.lst
.......................................\STARTUP.obj
.......................................\STARTUP._ia
.......................................\TC
.......................................\TC.hex
.......................................\TC.lnp
.......................................\TC.M51
.......................................\TC.Opt
.......................................\TC.plg
.......................................\TC.Uv2
.......................................\TCMain.c
.......................................\TCMain.I
.......................................\TCMain.ls1
.......................................\TCMain.LST
.......................................\TCMain.OBJ
.......................................\TCMain.SRC
.......................................\TCMain.__i
.......................................\TC_Opt.Bak
.......................................\TC_Uv2.Bak
.......................................\上位机程序
.......................................\..........\ALARM1.WAV
.......................................\..........\ALARM2.WAV
.......................................\..........\ALARM3.WAV
.......................................\..........\ALARM4.WAV
.......................................\..........\ALARM5.WAV
.......................................\..........\ALARM6.WAV
.......................................\..........\ALARM7.WAV
.......................................\..........\ALARM8.WAV
.......................................\..........\ALARM9.WAV
.......................................\..........\BASE.WAV
.......................................\..........\BEEP1.WAV
.......................................\..........\BEEP2.WAV
.......................................\..........\BEEP3.WAV
.......................................\..........\BEOP.WAV
.......................................\..........\BLEEP1_S.WAV
.......................................\..........\BUZZ1.WAV
.......................................\..........\BUZZ2.WAV
.......................................\..........\BUZZ3.WAV
.......................................\..........\BUZZ4.WAV
.......................................\..........\BUZZ5.WAV
.......................................\..........\CHOOCHOO.WAV
.......................................\..........\Cls_linediagram.cls
.......................................\..........\ENGACK.WAV
.......................................\..........\FERYHORN.WAV
.......................................\..........\frmMain.frm
.......................................\..........\frmMain.frx
.......................................\..........\hifans.ini
.......................................\..........\HONK.WAV
.......................................\..........\HOOK1.WAV
.......................................\..........\LUNADPLY.WAV
.......................................\..........\Module_main.bas
.......................................\..........\MorphLCD.ctl
.......................................\..........\MorphLCD.ctx
.......................................\..........\MorphLCD.log
.......................................\..........\MSCOMM32.OCX
.......................................\..........\MSSCCPRJ.SCC
.......................................\..........\OBNOWHS1.WAV
.......................................\..........\OK.wav
.......................................\..........\prjBarcodeReader.exe
.......................................\..........\prjBarcodeReader.vbp
.......................................\..........\prjBarcodeReader.vbw
.......................................\..........\SIREN1.WAV
.......................................\..........\SIREN2.WAV
.......................................\..........\SIREN3.WAV
.......................................\..........\SIREN4.WAV
.......................................\..........\STANDIN.WAV
.......................................\..........\STEAMBLO.WAV
.......................................\..........\Tiles.bmp
.......................................\...