MOV LED_0,#00H MOV LED_1,#00H MOV LED_2,#00H MOV LED_3,#00H MOV DPTR,#TABLE ;送段码表首地址 DISP: MOV A,LED_2 MOVC A,@A+DPTR ORL A,#80H ;显示小数点 MOV BUFFER+2,A ;送显示缓存 CLR P2.1 MOV P0,A LCALL DELAY SETB P2.1 SETB P2.0 MOV A,LED_1 MOVC A,@A+DPTR CLR P2.0 MOV P0,A LCALL DELAY RET DELAY: MOV R6,#10 ;延时5ms 怎么转换成C语言程序呀 求大佬教一下
|