做了一个四相五线步进电机的正反转程序,不小心源文件找不到了,只有hex文件,但是不知道按键和脉冲输出接在那个脚,试了好久都没成功,小弟用网上的hex反汇编形成了汇编文件,请高手帮忙看看电机和按键应该接在那些个脚上!!
单片机是stc89052rc。感激不尽!!
;标签 指令 数据 程序大小:2213B BY:CINZY'LAB
ORG 0000H
LJMP L0899
ORG 0800H
L0800: MOV 08H,#040H
DB 08H,040H,020H,0b2H,011H,0e4H,0f9H,0e9H
DB 0c3H,095H,08H,050H,0f5H,012H,08H,04eH
DB 030H,0b4H,0efH,09H,080H,0f1H,020H,0b3H
DB 011H,0e4H,0f9H,0e9H,0c3H,095H,08H,050H
DB 0e1H,012H,08H,064H,030H,0b4H,0dbH,09H
DB 080H,0f1H,075H,0a0H,0f0H,080H,0d3H,0ebH
DB 093H,0f5H,0a0H,07fH,0aH,07eH,00H,0efH
DB 01fH,0aaH,06H,070H,01H,01eH,04aH,060H
DB 0bH,0e4H,0fdH,0edH,0c3H,094H,073H,050H
DB 0eeH,0dH,080H,0f7H,022H,0e4H,0fcH,030H
DB 0b4H,010H,0e4H,0fbH,090H,08H,07aH,012H
DB 08H,030H,0bH,0bbH,08H,0f6H,0cH,0bcH
DB 08H,0edH,022H,0e4H,0fcH,030H,0b4H,010H
DB 0e4H,0fbH,090H,08H,082H,012H,08H,030H
DB 0bH,0bbH,08H,0f6H,0cH,0bcH,08H,0edH
DB 022H,08H,0cH,04H,06H,02H,03H,01H
DB 09H,09H,01H,03H,02H,06H,04H,0cH
DB 08H,0e4H,0ffH,0feH,0fH,0bfH,00H,01H
DB 0eH,0efH,064H,039H,04eH,070H,0f5H,022H
L0899: MOV R0,#07fH
CLR A
L089c: MOV @R0,A
DJNZ R0,L089c
MOV SP,#08H
LJMP L0800
END
一周热门 更多>