Read & Send SMS from a Mobile using PIC Microcontroller


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825

    Default

    Use a pic 18Fxxxx like 18F2585 for instance, with a 40 Mhz xtal oscillator.

    Here the setting for the EUSART @ 115200,n,8,2 (Obtained with Mister E PicMulticalc)

    Code:
    RCSTA = $90   ' Enable serial port & continuous receive
    TXSTA = $24   ' Enable transmit, BRGH = 1
    SPBRG = 86    ' 115200 Baud @ 40MHz, -0,22%
    SPBRGH = 0
    BAUDCON.3 = 1 ' Enable 16 bit baudrate generator
    Al.
    All progress began with an idea

  2. #2

    Default

    Quote Originally Posted by aratti View Post
    Use a pic 18Fxxxx like 18F2585 for instance, with a 40 Mhz xtal oscillator.

    Here the setting for the EUSART @ 115200,n,8,2 (Obtained with Mister E PicMulticalc)

    Code:
    RCSTA = $90   ' Enable serial port & continuous receive
    TXSTA = $24   ' Enable transmit, BRGH = 1
    SPBRG = 86    ' 115200 Baud @ 40MHz, -0,22%
    SPBRGH = 0
    BAUDCON.3 = 1 ' Enable 16 bit baudrate generator
    Al.
    hey dear atari, thanks for ur replay, but i need 115200 baudrate, 8 bit data, no parity and 1 stop bit.

    i don't need the high frequency for processing, but i need high baud rate to communicate with the nokia 3310, if i can do this with the PIC16f84A or other 16 series for example 16F877A(40 Pin)

    i need to reach this baud rate(115200) to do my project.

    i can't use the other PIC, because i need to complete my proj earliyer. and if i use the other pic, i need to learn about them, and i don't have enough time.

    Please help, if u can. thanks in advanced.

  3. #3

    Default

    Excuse me, i have some mistake about spelling your name, i'm so ashamed of this.

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825

    Default

    abbas.khodaeian, I am sorry but you cannot reach an acceptable boudrate of 115200 with 16F series even with a 20 Mhz oscillator.

    If you want to use the 16F84a, then you must change the phone type and use a brand with boudrate @ 9600 (siemens for instance. make sure they work in text mode)


    i don't need the high frequency for processing, but i need high baud rate to communicate with the nokia 3310
    The high frequency clock and the pic 18F are necessary to reach the high boudrate required by your nokia 3310.

    Al.
    All progress began with an idea

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    mostly right, but no cigar. You can reach a really decent baudrate accuracy, if you pick the right crystal. 11.059MHz, 14.745MHz and other Baudrate Vouched speed (you know those we often forget ) would do the trick with a regular USART (not with built-in bit banging solution.. even though 8 MHZ would probably work fine with DEBUG)

    No pain no gain, those crystal speed aren't "standard value", well not listed in PBP supported list, so you'll need to tweak you delay, if your application is timing sensitive.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6

    Default

    Hello, dear mister_e and aratti,
    thanks for your replay. I will test both of your expert and your idea, but i think the mister_e have been right, if i will select the right crystal, i can reach the desire boud rate, and can do it for my project, and use the right pin of USART madule in PIC16, i can connect and get data in 115200 bps of my nokia 3310.

    i will test it, and then i will replay the result to you.
    thanks.

Similar Threads

  1. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 22:04
  2. Can't read an sms Using TC35i & 16F690
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 4th October 2009, 22:41
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  4. pic to mobile
    By microkam in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2005, 18:26
  5. SMS decoding / encoding using PIC!
    By bitmaniac in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 19th March 2004, 07:03

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts