• AVR Freaks

Hot!SIM800L - Assembly Code Issue

Author
Designer
Super Member
  • Total Posts : 521
  • Reward points : 0
  • Joined: 2007/11/20 20:28:41
  • Location: 0
  • Status: offline
2020/10/21 02:53:31 (permalink)
1 (1)

SIM800L - Assembly Code Issue

I use PIC16F627A to send some SMS to a mobile when some button pressed. The code work sometimes. I also have enable ISR to receive incoming SMS strings as well.
 
Below is the transmitting part.
 
My question is In below string after sending the ".13" carriage return will the PIC goto ISR & make corrupt the sending string? Because the module is sending  ">" mark to type the SMS.
 
Send_SMS_Format movlw 'A'
    call TX_232
    movlw 'T'
    call TX_232
    movlw '+'
    call TX_232
    movlw 'C'
    call TX_232
    movlw 'M'
    call TX_232
    movlw 'G'
    call TX_232
    movlw 'S'
    call TX_232
    movlw '='
    call TX_232
    ;
    movlw '"'
    call TX_232
    movlw '+'
    call TX_232
    movlw '4'
    call TX_232
    movlw '4'
    call TX_232
    movlw '1'
    call TX_232
    movlw '2'
    call TX_232
    movlw '3'
    call TX_232
    movlw '4'
    call TX_232
    movlw '5'
    call TX_232
    movlw '6'
    call TX_232
    movlw '7'
    call TX_232
    movlw '8'
    call TX_232
    movlw '9'
    call TX_232
    movlw '"'
    call TX_232
    movlw .13 ; CR
    call TX_232
    call Del_1Sec
    call Del_1Sec
    ;
    movlw 'Z'
    call TX_232
    movlw 'O'
    call TX_232
    movlw 'N'
    call TX_232
    movlw 'E'
    call TX_232
    movlw '='
    call TX_232
    movf Zone_Number,W
    call TX_232
    ;
    movlw .26 ; CTRL + Z
    call TX_232
    ;
    call Del_1Sec
    return

post edited by Designer - 2020/10/21 02:55:32

Attached Image(s)

#1

4 Replies Related Threads

    1and0
    Access is Denied
    • Total Posts : 11501
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: SIM800L - Assembly Code Issue 2020/10/21 06:47:07 (permalink)
    +1 (1)
    Designer
    My question is In below string after sending the ".13" carriage return will the PIC goto ISR & make corrupt the sending string? Because the module is sending  ">" mark to type the SMS.

    It's line 42 in your code. ;)
    #2
    ric
    Super Member
    • Total Posts : 28951
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: SIM800L - Assembly Code Issue 2020/10/21 12:23:24 (permalink)
    0
    Designer
    My question is In below string after sending the ".13" carriage return will the PIC goto ISR & make corrupt the sending string? Because the module is sending  ">" mark to type the SMS.

    Not if the ISR is written correctly, but how would we know, as you did not post the ISR code.
     
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    Designer
    Super Member
    • Total Posts : 521
    • Reward points : 0
    • Joined: 2007/11/20 20:28:41
    • Location: 0
    • Status: offline
    Re: SIM800L - Assembly Code Issue 2020/10/21 23:15:33 (permalink)
    +1 (1)
    1and0
    It's line 42 in your code. ;)

    You mean what line? movlw .13 command?
    #4
    ric
    Super Member
    • Total Posts : 28951
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: SIM800L - Assembly Code Issue 2020/10/22 00:25:47 (permalink)
    0
    It's a joke, pointing out that we can't comment on code you haven't posted.
    Just a small snippet is pointless when the problem is usually elsewhere.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5