PIC12F675 comms issues


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Smile PIC12F675 comms issues

    Hi, I am trying to put the Melanies Comms program, designed for 16f628 in a PIC12f675.
    I set the osc to external and set all the required ports as gpio.
    I can see test tx signals from my pic, but apeear not to be able to send characters to it.
    suggestions, please ?
    Pete

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


    Did you find this post helpful? Yes | No

    Default

    Not familiar with the program. Did you include modedefs.bas?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

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


    Did you find this post helpful? Yes | No

    Default

    How about CMCON and ANSEL?
    Steve

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

  5. #5
    Join Date
    Feb 2005
    Posts
    67


    Did you find this post helpful? Yes | No

    Smile

    Thanks Mr E,
    ANSEL = 0 did the trick !
    One curious thing though,
    when I deleted the Transmit Defines, the program stopped working ?
    Can you shed any light on it.
    ' Debug (Communication) Defines (Transmit)
    ' ----------------------------------------
    DEFINE DEBUG_REG GPIO
    DEFINE DEBUG_BIT 1
    DEFINE DEBUG_BAUD 9600
    DEFINE DEBUG_MODE 1
    ' I remm'd out the above lines

    '
    '
    ' DEBUG (Communication) Defines (Receive)
    ' ----------------------------------------
    DEFINE DEBUGIN_REG GPIO
    DEFINE DEBUGIN_BIT 2
    DEFINE DEBUGIN_BAUD 9600
    DEFINE DEBUGIN_MODE 1
    Pete

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Peter1960 View Post
    Thanks Mr E,
    ANSEL = 0 did the trick !
    One curious thing though,
    when I deleted the Transmit Defines, the program stopped working ?
    Can you shed any light on it.
    ' Debug (Communication) Defines (Transmit)
    ' ----------------------------------------
    DEFINE DEBUG_REG GPIO
    DEFINE DEBUG_BIT 1
    DEFINE DEBUG_BAUD 9600
    DEFINE DEBUG_MODE 1
    ' I remm'd out the above lines

    '
    '
    ' DEBUG (Communication) Defines (Receive)
    ' ----------------------------------------
    DEFINE DEBUGIN_REG GPIO
    DEFINE DEBUGIN_BIT 2
    DEFINE DEBUGIN_BAUD 9600
    DEFINE DEBUGIN_MODE 1
    'cause the DEFINES are what makes the comm's work in the first place!

Similar Threads

  1. PIC12F675 problem with port 5
    By NL2TTL in forum mel PIC BASIC
    Replies: 2
    Last Post: - 5th June 2009, 01:23
  2. SERIN with a PIC12F675
    By ewandeur in forum Serial
    Replies: 4
    Last Post: - 30th July 2007, 15:04
  3. Remote comms
    By thirsty in forum Serial
    Replies: 1
    Last Post: - 23rd June 2006, 15:42
  4. PIC12F675 trouble
    By russman613 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th February 2006, 18:40
  5. Erratic PIC12F675 behavior
    By russman613 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th February 2006, 14:46

Members who have read this thread : 1

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