free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2 3
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Izzal
Fri Nov 21 2008, 03:39AM
 User Offline
Registered Member #5690
Joined: Sat Jan 26 2008, 01:59AM

Posts: 12
Thanked 0 times in 0 posts
Hello I have been trying to interface PIC16F877 with Sony Ericsson T610 but i cant. For a start up Iam just sending AT to the phone but i dont receive "OK" Iam using the serial data cable for the phone directly connected to the serial of the PIC



Izzal
sheikhizzal@gmail.com
(679)9211622
Back to top


Ajay
Sat Nov 22 2008, 11:03AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4049
Thanked 754 times in 713 posts
Hi Izzal, Please provide the code will be easy to help..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


ExperimenterUK
Sat Nov 22 2008, 05:29PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 207
Thanked 38 times in 37 posts
According to Wikipedia and others,the 610 has Bluetooth ,Infrared and USB.
None of which are practical to connect to a PIC16F877.

I have seen no mention of a serial connection able to connect to a PC's serial port.


[ Edited Sat Nov 22 2008, 05:38PM ]

Learning all the time
Back to top


Ajay
Sun Nov 23 2008, 12:52PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4049
Thanked 754 times in 713 posts
ExperimenterUK, PC has got all that where as a tiny 8051 has just got a serial port so thats the only available option

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


Izzal
Sun Nov 23 2008, 01:06PM
 User Offline
Registered Member #5690
Joined: Sat Jan 26 2008, 01:59AM

Posts: 12
Thanked 0 times in 0 posts
Hello Ajay thanks for your reply

I have attached the code

Izzal
sheikhizzal@gmail.com
(679)9211622
Back to top


Izzal
Sun Nov 23 2008, 01:06PM
 User Offline
Registered Member #5690
Joined: Sat Jan 26 2008, 01:59AM

Posts: 12
Thanked 0 times in 0 posts
Sorry the code is as follows

CODE:
#include <16F877.h>#device *=16 // This allows auto variables over location 0xFF and set
#use delay(clock=4000000)
#fuses XT,NoWDT
#use rs232 (baud = 9600, BITS = 8, parity = N, rcv = PIN_c6, xmit = PIN_c7)
#opt 9
#include "lcd_driver.c"
#include<string.h>main (){

char str[3], okay[10];
char c[2];
int i;

 lcd_init();  // Initialise the LCD
 lcd_putc('\f');  // clear the screen

  lcd_putc("WELCOME"); // to test for LCD
  delay_ms(2000);
  lcd_putc('\f');

printf("AT");
putc(13);
putc(10);


for (i=0 ; i<4 ; i++)
{   c[i] = getc();
    delay_ms(5);

}


delay_ms(100);

 for(i=0; i < 4 ; i++)
    {
     lcd_putc(c[i]);     // Show what the phone sends on LCD
     delay_ms(100);
    }
}
 


[ Edited Sun Nov 23 2008, 11:17PM ]

Izzal
sheikhizzal@gmail.com
(679)9211622
Back to top


ExperimenterUK
Sun Nov 23 2008, 01:09PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 207
Thanked 38 times in 37 posts
Ajay wrote ...

ExperimenterUK, PC has got all that where as a tiny 8051 has just got a serial port so thats the only available option

I meant was that as far as I can see this phone has no serial port meant for AT command
type communication.
It may have a serial link for flashing and special purposes, but that is not clear from what I have seen.

Of course Izzal's method may be fine, but it is worth checking before going further.




[ Edited Sun Nov 23 2008, 01:23PM ]

Learning all the time
Back to top


Ajay
Sun Nov 23 2008, 11:15PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4049
Thanked 754 times in 713 posts
Pinouts says it has serial output, and my friends have used that phone in a project. Also people on forum like Abbas has used it too. So probably it has serial output

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


Izzal
Mon Nov 24 2008, 02:37AM
 User Offline
Registered Member #5690
Joined: Sat Jan 26 2008, 01:59AM

Posts: 12
Thanked 0 times in 0 posts
The Phone has serial output. I have already tested the AT-Commands using PC (Tera Term software) and it works fine. So after that I tried it with PIC16F877 but i could not communicate. I used MAX232 between the phone and PIC communication when it didnt work I used Transistor circuit but both methods failed.

Izzal
sheikhizzal@gmail.com
(679)9211622
Back to top


ExperimenterUK
Mon Nov 24 2008, 01:28PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 207
Thanked 38 times in 37 posts
OK I'm convinced

A couple of points to consider, (actually three).
The 610 interface is 3 volts so may need a low voltage MAX232.
The data bits may need to be inverted.
I have seen the baud rate for the 610 given as 9600 and 115200.
An XP "9600" baud modem actually defaults to a com port speed of 115200.



Learning all the time
Back to top


Go to page  [1] 2 3  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems