Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

gsm controlled robot car

89s52 working same as 89c52??

  • yes

    Votes: 0 0.0%
  • no

    Votes: 0 0.0%

  • Total voters
    0
Status
Not open for further replies.

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
 
hi can i have complete data of your project............i also want to try this project...........And i m also looking for my final project.
thanx in advance
 
Code:
      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

Hi,
Use the "#" posting your codes. This will be helpful in maintaining spacing.
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top