Problems with SERIN2 using PIC16F689


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    2

    Default Problems with SERIN2 using PIC16F689

    Dear Sirs,Madams:

    I am having problems to implement Serin2 in a pic16f689.

    This is the code I am using:

    MainLoop:
    SERIN2 Rxpin,84,[STR test8/8]
    'instructions to process incoming data and reply with data (i.e. serout2)
    Goto Mainloop


    Where

    Rxpin: Rx pin (PORTB.5 in PIC16F689 and PORTC.7 in PIC16F877A)
    84: 9600,8,n,1
    test8 declared as var byte[8]


    This code works fine with PIC16F877, waiting for 8 characters to be received before processing incoming data but it does not work with PIC16F689.

    When I run it in PIC16F689, it does not wait incoming data to arrive and executes instructions to process incoming data.

    Your help will be greatly appreciated

    Thanks

    Sincerely,

    Jesús Baez

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    PORTB.5 on the 16F689 is analog at power up. Place ANSELH=0 in the top section of your
    code to disable A/D on this pin.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Feb 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default thanks

    Dear Bruce

    Thanks for your help!

    Regards,

    Jesús Baez

Similar Threads

  1. GPS $GPRMC to PIC16F684. Need help with SERIN2
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th November 2009, 09:47
  2. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 20:10
  3. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 02:38
  4. SERIN2 digit parsing
    By skimask in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th January 2007, 23:15
  5. SEROUT2 and SERIN2 commands
    By bangunprayogi in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th August 2005, 09: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