Home > other >  Dynamic display of digital tube 0 f should be how to write
Dynamic display of digital tube 0 f should be how to write

Time:09-17

ORG 0000 h
AJMP MAIN
ORG 000 bh
ORG 0030 h
MAIN: MOV R1, # 01
MOV R4, # 20
MOV DROP, # TAB
MOV TMOC, # 1 h
MOV TH0, # 3 ch
MOV TL0 b0h # 0; Timing 100 ms
SETB EA
SETB ET0
SETB TR0
LP: MOVC A, @ A + DROP
MOV P1, A
The CLR EA
SJMP $
TAB: DB 3 fh, 6 h, 5 bh, 4 fh, 66 h, 6 dh, 7 dh, 7 h, 7 fh, 6 fh
END

How to write the program

CodePudding user response:

Will be converted to the C language?

CodePudding user response:

It should be a 51 MCU assembly language program, the compiler should be written in C language can also be written in assembly, so inserted the this language in the C language should also can,

CodePudding user response:

Suggest using C language to write more convenient, if is 7 segment LED digital tube display (anode), to define shows 0 pin mouth what low potential, what are the low potential shows pin 1 mouth, to push the definition according to 2, 3,,,
  • Related