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.

bout max232 & 877

Status
Not open for further replies.
You have the max right But there is a lot more to it
7bits, blah, blah... i dont really understand what he meant
you have program the pic with the code you want to send or add a key pad and program your pic to send what you input with the key pad. Any way you need to read the site I posted it tells how to talk to your phone. Read this
It's by Nigel Goodwin it has code you can look at and It is very well done.
 
from the tutorial, meaning i can send data to the cellphone using 0V / +5V and a 104uS delay interval for each data bit? let say i will send a data of "2.2:" (w/o the quotes) the binary equivalent of this from the Gsm 03.38 alphabets and language specific information (**broken link removed** page 16) is
0000010 0101110 0000010 0111010

my problem is on how to set RC6/TX and RC7/RX to transmit and receive data. after setting the pins, do i just simply declare PORTC.6 = 0000010 0101110 0000010 0111010??? or i need something else...?
 
It take's a lot more then that what are you using mplab assembler
Code:
TX_RS232  MOVWF   TX_Byte             ;move W to TX_Byte
            MOVLW   0x2                  ;set 8 bits out
            MOVWF   Bit_count
            BCF     PORTB, 6
            CALL    Bit_Delay
TX_RS232  MOVWF   TX_Byte             ;move W to TX_Byte
            MOVLW   0x2E                  ;set 8 bits out
            MOVWF   Bit_count
            BCF     PORTB, 6
            CALL    Bit_Delay
Thats for 2 sets of 8 bits I would of did it for all 4 but your set 3 has only 7 bits
you can also do it like this
Code:
TX_RS232  MOVWF   TX_Byte             ;move W to TX_Byte
            MOVLW   b'00000010'                ;set 8 bits out
            MOVWF   Bit_count
            BCF     PORTB, 6
            CALL    Bit_Delay
 
Last edited:
It take's a lot more then that what are you using mplab assembler
Code:
TX_RS232  MOVWF   TX_Byte             ;move W to TX_Byte
            MOVLW   0x2                  ;set 8 bits out
            MOVWF   Bit_count
            BCF     PORTB, 6
            CALL    Bit_Delay
TX_RS232  MOVWF   TX_Byte             ;move W to TX_Byte
            MOVLW   0x2E                  ;set 8 bits out
            MOVWF   Bit_count
            BCF     PORTB, 6
            CALL    Bit_Delay
Thats for 2 sets of 8 bits I would of did it for all 4 but your set 3 has only 7 bits
you can also do it like this
Code:
TX_RS232  MOVWF   TX_Byte             ;move W to TX_Byte
            MOVLW   b'0000010'                ;set 8 bits out
            MOVWF   Bit_count
            BCF     PORTB, 6
            CALL    Bit_Delay

can you translate it to basic? 'coz i'm having a hard time in understanding assembly language :(
 
Last edited:
thnx for posting the manual...
TX_RS232 MOVWF TX_Byte ;move W to TX_Byte
MOVLW 0x2E ;set 8 bits out
MOVWF Bit_count
BCF PORTB, 6
CALL Bit_Delay

just want to clear things out, this code only send 1 set of 8bits code? from my ex. of 2.2 which has the equivalent bcd of 0000010 0101110 0000010 0111010.. the bold one will be first send to the cellphone right? therefore, will it display the value '2' ? or i do i need to do additional codes..?

thnx for the tips/help/guide i really i appreciate it. i'm beginning to understand basic language and little bit of assembly.
 
Of course it only send one code, you call the routine as many times as needed, with the code you want in the W register each time.

Check my tuorials for various examples.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top