TC35i GSM With PIC 16F690 help


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Question

    Thanks for the info but since I am fairly new to this field, can you guide me as to where I can read about TTL & RS-232 type signals and difference between them.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    On google or wiki
    RS232 standard:
    logic "1" is -3 to -15V
    logic "0" is 3 to 15v
    -3 to 3 is not defined
    TTL standard:
    logic "1" is 2 to Vcc (usually Vcc=5V)
    logic "0" is 0 to 0.8V
    Edit:
    0.8 to 2V isn't defied
    Last edited by pedja089; - 28th September 2009 at 22:35.

  4. #4


    Did you find this post helpful? Yes | No

    Red face

    Quote Originally Posted by pedja089 View Post
    On google or wiki
    RS232 standard:
    logic "1" is -3 to -15V
    logic "0" is 3 to 15v
    -3 to 3 is not defined
    TTL standard:
    logic "1" is 2 to Vcc (usually Vcc=5V)
    logic "0" is 0 to 0.8V
    Edit:
    0.8 to 2V isn't defied
    Thanks. I am trying to send an SMS using TC35i & 16F690. I tried to replicate the schematic at this link: http://techni.caliti.es/blog/2008/12...ontroller.html
    I used the pins 10 & 12 of 16f690 instead of 17 & 18 of 16F873. Hope it will work

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


    Did you find this post helpful? Yes | No

    Default

    I used the pins 10 & 12 of 16f690 instead of 17 & 18 of 16F873. Hope it will work
    If you have in mind to use the downloaded software, the answer is IT WILL NOT WORK.

    If you will write your own software the answer is YES IT WILL WORK.

    Al.
    All progress began with an idea

  6. #6


    Did you find this post helpful? Yes | No

    Red face

    Quote Originally Posted by aratti View Post
    If you have in mind to use the downloaded software, the answer is IT WILL NOT WORK.

    If you will write your own software the answer is YES IT WILL WORK.

    Al.
    Hi Aratti, your project has inspired me to do one by myself. I wont be connecting to the computer (as it does not have an serial port) neither I can get 16F873 that easily. So I am using 16F690.

    Any advise as to how to set up the registers, correctly for 690?

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


    Did you find this post helpful? Yes | No

    Default

    Any advise as to how to set up the registers, correctly for 690?
    With pic 16F690 you need to turn off analog port to make them digital. You will accomplish this with the following instruction:

    Code:
    ANSEL = 0 : ANSELH = 0
    In my project I have used 8 ports as inputs and 8 ports as output. 690 doesn't have all these ports available, so you will decide how many inputs and how many outputs to use. Remember to set the TrisA; TrisB and TrisC registers accordingly.


    Al.
    All progress began with an idea

  8. #8


    Did you find this post helpful? Yes | No

    Exclamation

    Here is my code:

    OSCTUNE=%01111 ' Oscillator 8MHz
    intcon=0 ' Interrupts disabled
    cm1con0=0 ' Comparator 1 disabled
    cm2con0=0 ' Comparator 2 disabled
    ansel=0 ' Pins to be Digital
    anselh=0 ' Pins to be Digital
    baud con 16468 ' baud rate = 9600 Inverted
    trisc=%00000000 ' Port C I/O
    trisb=%01111111 ' Port B I/O
    trisa=%000000 ' Port A I/O
    portc=0 ' Setting port c Low
    portb=0 ' Setting port b Low
    porta=0 ' Setting port a Low
    i var byte ' Declaring variable
    c var byte ' Declaring variable
    tx var Portb.7 ' Declaring tx pin
    rx var Portb.5 ' Declaring rx pin

    Include "modedefs.bas"

    main:
    Serout2 tx,baud,["AT+CMGF=1",13]
    gosub one
    Serin2 rx,baud,5000,main,[wait("OK"),i]
    gosub two
    goto main

    one:
    for c=1 to 5
    portc=255
    pause 20
    portc=0
    pause 20
    next c
    return
    two:
    for c=1 to 5
    portc=255
    pause 400
    portc=0
    pause 400
    next c
    return

    My Problems:

    1) My led connected to portc only goes high ONCE in label one though it should enter label one every 5000mS.

    2) It never enters label two as I assume there is somthign wrong in the communication part of PIC with the modem.

    Please help me find out what am I doing wrong here?

Similar Threads

  1. Want to learn GSM & PIC programming
    By financecatalyst in forum GSM
    Replies: 5
    Last Post: - 25th February 2014, 09:22
  2. GSM With PIC?
    By financecatalyst in forum General
    Replies: 1
    Last Post: - 19th September 2009, 23:12
  3. SERIN AND SEROUT PROBELM USING 16f690 PIC
    By Charles in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th January 2007, 03:59
  4. gsm card reader using pic
    By ninebarmaximus in forum General
    Replies: 0
    Last Post: - 6th December 2005, 18:08
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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