ORG 0000H
AJMP MAIN
:
:
;********************
;* 8880 Initialization*
;********************
MAIN: MOV A, #90H
MOV P0, A ; Writing 8880CRA
MOV P0, A ; Writing 8880CRA
MOV A, #98H
MOV P0, A ; Writing 8880CRA
MOV A, #90H
MOV P0, A ; Writing 8880CRB
MOV A, #94H
MOV P0, A ; Write 8880CRA, 8880 Mode 1 is DTMF, IRQ
:
:
;****************
;* Receiver*
;****************
MOV R1, #0
MOV R0, #10H
LOOP1: MOV A, #0FFH
MOV P0, A
SETB P0.7
SETB P0.4
CLR P0.5
SETB P0.6
MOV A, P0 ; Read 8880 Status Register
JNB ACC.2, LOOP1
CLR P0.4
MOV A, P0 ; Read 8880 Receive Data Register
ANL A, #0FH ; Shield high four digits
MOV @R0, A
INC R0
INC R1
CJNE R1, #07H, LOOP1
:
:
;****************
;* Sending code program*
;****************
MOV R0, #10H
MOV R1, #7
MOV A, #9DH ; Write 8880CRA
MOV P0, A
MOV A, #90H
MOV P0, A ; Write 8880CRB, 8880 Mode 2 is TONE, DTMF, IRQ, BURST
LOOP2: MOV A, @R0
ORL A, #0F0H
ANL A, #8FH
MOV P0, A ; Send data
MOV A, #0FFH
MOV P0, A
SETB P0.7
SETB P0.4
CLR P0.5
SETB P0.6
Required by client, we've customized a device for them to monitor their Mowers, now based on that, we are developing updated devices and server to form a smart industrial equipment monitoring system which can be used to detect engine on/off and record working time, detect malfunctioning, detect bad operations and operators working time ETC. Most importantly, it is a many to one idea, lots of cheap son-devices answer to one mother-device, this system can save your cost and time in industry management.
Equipment Monitoring System,Equipment Working Hour Management,Equipment Remote Diagnostic System,Operator Monitoring Device,Equipment
eSky wireless Inc , https://www.eskygpsiot.com