Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 14th January 2009, 06:19 AM   #16
Default

I no that but people are using the serial cable from the phone that you hook to your pc with a max 232 hooked to the pic not needed but done. pick 3/5volts and pc is 12 but not all of them lol now most don't even have a serial port or a floppy drive
Understand? fully
be80be is offline  
Old 14th January 2009, 01:46 PM   #17
Default

To send it hello the hex you send would be 68656c6c6f
be80be is offline  
Old 14th January 2009, 11:56 PM   #18
Default

Quote:
Originally Posted by be80be View Post
Is this what your wanting to do use the lcd if so check this out
Nokia 3310 LCD Library
thanks for the very useful guide Sir's! and for uploading the PDF i'll read it when i get home. partly yes.. but i need to use the cellphone itself (3310).. something like this... using F/M-Bus


Last edited by cyb3rfreak; 15th January 2009 at 12:03 AM.
cyb3rfreak is offline  
Old 15th January 2009, 12:20 AM   #19
Default

That's it plug it in hook it to your computer open hyper terminal try that first then try it with the pic
be80be is offline  
Old 15th January 2009, 02:06 AM   #20
Default

i would like to clarify about something, is this correct...
Max232 pin 11:RC6/TX, pin12:RC7/RX
Max232 pin 14:3310-RX, pin pin13: 3310-TX



Quote:
To send it hello the hex you send would be 68656c6c6f
i'd like to use 'hello' as my example data to send it to the cellphone, but actually i only need to send NUMBERS and a COLON w/o space between characters and this data are acquired from different ports of 877 (e.g 33:153:58). 'coz someone told me that i need to pack it into 7bits, blah, blah... i dont really understand what he meant.
cyb3rfreak is offline  
Old 15th January 2009, 02:47 AM   #21
Default

You have the max right But there is a lot more to it
Quote:
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 PIC Tutorial* Seven - RS232
It's by Nigel Goodwin it has code you can look at and It is very well done.
be80be is offline  
Old 17th January 2009, 04:23 AM   #22
Default

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 (http://rpu6.nm.ru/doc/0338-700.pdf 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...?
cyb3rfreak is offline  
Old 17th January 2009, 06:39 AM   #23
Default

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 by be80be; 18th January 2009 at 08:18 PM.
be80be is offline  
Old 17th January 2009, 08:25 AM   #24
Default

Quote:
Originally Posted by be80be View Post
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 by cyb3rfreak; 17th January 2009 at 08:25 AM.
cyb3rfreak is offline  
Old 17th January 2009, 02:20 PM   #25
Default

Read this book
Programming PIC Microcontrollers in BASIC - mikroElektronika
be80be is offline  
Old 18th January 2009, 07:00 AM   #26
Default

thnx for posting the manual...
Quote:
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.
cyb3rfreak is offline  
Old 18th January 2009, 03:04 PM   #27
Default

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.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 18th January 2009, 08:17 PM   #28
Default

Quote:
That's for 2 sets of 8 bits I would of did it for all 4 but your set 3 has only 7 bits
One part for each set of 8 bits.
be80be is offline  
Reply

Tags
877, bout, max232

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
ask bout TX-2B seesy123 General Electronics Chat 3 3rd June 2008 01:14 PM
can i know bout AC and DC motor... rohaan General Electronics Chat 7 13th April 2008 02:45 AM
Wow nice site, bout time.... Sparky_Tony Chit-Chat 4 25th March 2007 06:09 AM
where do i learn bout PIC ? kupikupi Micro Controllers 130 4th September 2005 04:34 PM
any idea bout steeper motor...... maybskie Electronic Projects Design/Ideas/Reviews 1 22nd April 2003 12:19 PM



All times are GMT. The time now is 11:19 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker