单片机智能小车控制系统(原理图+设计方案)
程序清单
limiw equ 30h ;厘米位
miao equ 31h ;秒位
fenmi equ 32h ;分米位
fmiao equ 33h ;分秒位
meter equ 34h ;米位
fenzh equ 35h ;分位
point equ 36h ;小数点位
shimi equ 37h ;十米位
shifn equ 38h ;十分位
sudu equ 39h ;速度控制
jishk equ 3ah ;记时开始
zhond equ 3bh
zhodu equ 3ch
zhon equ 3eh
maicho equ 3fh
jinweb equ 40h
bhcs equ 41h
dpan equ 42h
fenchu equ 43h
fencun equ 44h
pand equ 45h
fenmc equ 51h
org 0000h
ajmp main
org 000bh
ajmp st0
org 001bh
ajmp st1
org 0100h
main:
mov limiw,#00h
mov miao,#00h
mov fenmi,#00h
mov fmiao,#00h
mov meter,#00h
mov fenzh,#00h
mov point,#0bh
mov shimi,#00h
mov shifn,#00h
mov jishk,#00h
mov zhond,#00h
mov zhodu,#00h
mov zhon,#00h
mov maicho,#00h
mov jinweb,#03h
mov bhcs,#00h
mov sp,#6fh
mov tmod,#21h
mov th0,#3ch
mov tl0,#0b0h
mov th1,#9ch
mov tl1,#9ch
setb ea
setb et0
setb et1
mov p1,#0aah
www.751com.cn
jb p0.0,qidong
mov sudu,#03h
clr p2.6
clr p2.7
setb tr1
start:
jnb p2.3,start
acall delay
jnb p2.3,start
mov sudu,#07h
setb tr0
mov jishk,#01h
call delaa
call delaa
call delaa
call delaa
call delaa
jiance:
mov c,p2.0
mov 22h,c
mov c,p2.1
mov 23h,c
mov c,p2.2
mov 24h,c
mov c,p2.3
mov 25h,c
mov c,p2.4
mov 26h,c
zhangai:
jb 25h,stop
jnb 22h,youzhuan
jnb 23h,youzhuan
jnb 24h,zuozhuan
jnb 26h,zuozhuan
ajmp jiance
zuozhuan:
clr p0.5
clr p0.4
mov sudu,#05h 1006
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>