osamarizwan
New Member
hi guys i am working on a project"gsm controlled robot car" on at89s52 and here is the program
org 0010h
mov p1,#0000h ;Make P1 as i/p port
mov p2,#0000h
L1: mov a,p1
cjne a,#0b0h,L2 ;DTMF o/p=2
mov p2,#08ah ; M1 & M2 both forward
ljmp L1
L2: cjne a,#0e0h,L3 ;DTMF o/p=8
mov p2,#85h ;M1 & M2 both reverse
ljmp L1
L3: cjne a,#50h,L4 ;DTMF o/p=5
mov p2,#80h ;M1 & M2 both off
ljmp L1
L4: cjne a,#0d0h,L5 ;DTMF o/p=4
mov p2,#86h ;M1 --reverse, M2--forward
ljmp L1
L5: cjne a,#90h,L1 ;DTMF o/p=6
mov p2,#89h ;M1 --forward, M2--resverse
ljmp L1
end
but i dont know why is it not working .it is working on protues but i think my mt8870 dtmf decoder is not working can any one help me in this
here is the diagram
View attachment 64651
org 0010h
mov p1,#0000h ;Make P1 as i/p port
mov p2,#0000h
L1: mov a,p1
cjne a,#0b0h,L2 ;DTMF o/p=2
mov p2,#08ah ; M1 & M2 both forward
ljmp L1
L2: cjne a,#0e0h,L3 ;DTMF o/p=8
mov p2,#85h ;M1 & M2 both reverse
ljmp L1
L3: cjne a,#50h,L4 ;DTMF o/p=5
mov p2,#80h ;M1 & M2 both off
ljmp L1
L4: cjne a,#0d0h,L5 ;DTMF o/p=4
mov p2,#86h ;M1 --reverse, M2--forward
ljmp L1
L5: cjne a,#90h,L1 ;DTMF o/p=6
mov p2,#89h ;M1 --forward, M2--resverse
ljmp L1
end
but i dont know why is it not working .it is working on protues but i think my mt8870 dtmf decoder is not working can any one help me in this
here is the diagram
View attachment 64651