用单片机实现温度远程显示 第10页

用单片机实现温度远程显示 第10页

clr ri

     jb ri_f,rec_0     

     mov a,sbuf

     cjne a,#'@',rec_out    ;无效命令过滤处理

     setb ri_f              ;置接收中标志

     mov rec_buf_z,#rec_buf ;接收缓冲区首地址给接收指针

     mov rec_err,#73        ;设置最大接收字节数

     ajmp rec_1

rec_0:   mov a,sbuf

     cjne a,#0dh,rec_1

     clr ri_f

rec_1:   mov r0,rec_buf_z

     mov @r0,a

     inc rec_buf_z

     djnz rec_err,rec_out   ;接收溢出清接收标志

     clr ri_f

rec_out:pop acc

     pop ar0

     POP PSW

     reti

    end

6、巡回/定点转换检测子模块(rand_key.a51

;-----------6----rand_key.a51

name key

EXTRN CODE(START)

extrn bit(key_work,key_f)

EXTRN DATA(DISP_buf,disp_wc,time_20ms,wdt)

PUBLIC KEY

prog SEGMENT CODE      ;定义代码段

 

     RSEG PROG

;-------------------------------------

KEY: mov a,#2

     add a,time_20ms

     cjne a,time_20ms,$

key_1:   mov wdt,#0

     orl 96h,#0e1h

     jnb key_f,key_1

     mov a,#2

     add a,time_20ms

     cjne a,time_20ms,$

     jnb key_f,key_1

     clr ea

     clr ex1

     cpl key_work

;--------------------------------------

key_out:mov dptr,#start

     push dpl

     push dph

     reti

     end


6、            rand_js.hex


 

:100026007582087823760008D582FA75824878406A

:10003600760008D582FA75220775F00AC395F07521

:10004600F008A49000D07822790A08C0E093F6A3BD

:10005600D0E0B60DF5D2B278220886993099FDC265

:1000660099B60DF5781ED8FED2ACC2B27404252F0F

:10007600200907B52FFA744E0193740A252F30090B

:1000860005B52FFAC2097844B62A07742AD522C5BF

:1000960001C97887B60DF67886E6C3943A500224ED

:1000A600072403F618E6C3943A500224072403C42F

:1000B60008D618C608760D7841E6086608B60DFB20

:1000C600B40003C2AC22740101934030415244365D

:1000D600370D403042524436340D40304352443698

:1000E600350D403044524436320D40304552443688

:0A00F600330D403046524436300D01

:10010000C0E0C000C083C082C0D0758CFC758A6B13

:100110009001CDD53902B2040530A830B8010CA247

:1001200000E5317590FF7580FE218CB8020ED280FB

:10013000A201E5327590FF7580FD218CB8030CA2F9

:1001400002E5337590FF7580FB218CB8040CA20387

:10015000E5347590FF7580F7218CB8050AE5357593

:1001600090FF7580EF218CB8060AE5367590FF7513

:1001700080DF218CB8070AE5377590FF7580BF21B5

:100180008CB80808E5387590FF75807F31BEA830BF

:10019000B80A20753000052EE52EB40216752E0023

:1001A000052F052DE52DB4640A752D007400C0E0FF

:1001B000C0E032D0D0D082D083D000D0E03250081E

:1001C0003004057590FF21CC93F4F590223F065B37

:1001D0004F666D7D077F6F777C395E7971BF86DBF7

:1001E000CFE6EDFD87FFEF408000375C1C5874DCE4

:0101F00046C8

:1001F1007402252FB52FFD752D004396E130B3F71D

:100201007402252FB52FFD30B3EDC2AFC2AAB208DB

:08021100900257C082C0833245

:03000000020219E0

:0100030032CA

:03000B00020100EF

:040013000201F132C3

:01001B0032B2

:0300230002039E37

:100219004396E17580FF78207400F608B880FBD218

:100229000875B0FF75A0FF75200075B81275985054

:10023900758921758CFC758A6B758DFD758BFD75BE

:10024900A882758700D28ED28C7179439602C2AF8B

:10025900758107D2AFC209C2B2300857D2AA753D1B

:100269000A753C005320F0752D00439602E53D12B6

:1002790000267033853D36E53C1203D3701F853C5B

:10028900357170752D00439602744B252FB52FFDDE

:10029900752D00439602744B252FB52FFD053CE5BE

:1002A9003CB408C0753C00053DE53DB410B6753D4C

:1002B9000A416DD2AA432001752D0043960220B44C

:1002C900457402252FB52FFD20B43B752D004396AB

:1002D9000230B4F7E53CB4070F753C00053DE53D38

:1002E900B41007753D0A41F3053CE53D120026703F

:1002F900EB853D36E53C1203D370D9853C357170E9

:100309007464252F41C120B5457402252FB52FFDF1

:1003190020B5A5752D0043960230B5F7E53CB4002C

:100329000F753C07153DE53DB40907753D0F613B68

:10033900153CE53D12002670EB853D36E53C120380

:10034900D370D9853C3571707464252F41C1B52F9F

:1003590014E53D120026700DE53C1203D3700671B9

:10036900707464252F41C189318A328B338C3422D0

:10037900791E7A227B217C1F753521753620717093

:10038900744B252FB52FFD752D00439602744B250F

:050399002FB52FFD222D

:10039E00C0D0C000C0E0309825C29820090FE59962

:1003AE00B4401BD209753E40753F4961C2E599B410

:1003BE000D02C209A83EF6053ED53F02C209D0E0A5

:0503CE00D000D0D03288

:1003D30075F008A42405784028F5F0F8915AE5F063

:1003E3002407F891A8FEED6043E582F4C304F58287

:1003F300E583F43400F5837011E58214700C790FF2

:100403007A0F7B0F7C0F740F813CA982AA839163BF

:10041300E5F02407F891A8FE913DEC1470047C23C9

:1004230081317C237B097A197909813B913DEC70F9

:10043300077C1CEB70027B1CE422EB540FF9EB549A

:10044300F0C4FAEC540FFBEC54F0C4FCEE60072448

:1004530001F8E62410F622918889828A8391632227

:10046300C0E0C0D07B007C007D007E10C3E933F97F

:10047300EA33FA78037F03E636D4F608DFF9DEEDD4

:10048300D0D0D0E022C0E091A8540FC4F90891A8BD

:10049300540F42010891A8540FC4FA0891A8540FAD

:1004A3004202D0E022E6C3943A50022407240322F6

:00000001f

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有