Pic16f690 Hserin


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    20

    Question Pic16f690 Hserin

    HI
    I'm experiencing a problem with HSERIN command using Pic16F690 a sample PBP code, does not receive any character, but the sending of characters it work fine ( Hello World ).
    If I use PIC16F877 OR PIC16F627A the code works fine, any help?
    Im use hyper terminal on PC side.

    ' PicBasic Pro program to send and receive from
    ' the hardware serial port

    DEFINE HSER_BAUD 2400 ' Select the baud rate
    char var byte ' Storage for serial character

    start:
    Hserout ["Hello World", 13, 10] ' Send text followed by carriage return and linefeed

    loop:
    Hserin 10000, start, [char] ' Get a char from serial port
    Hserout [char] ' Send char out serial port
    Goto loop ' Do it all over again

    End

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

    Default

    Add ANSELH=0 to the top section of your code. P.S. you can get answers without multiple posts on the same subject..;o}
    Regards,

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

Similar Threads

  1. Hserin with Instant Interrupts.
    By ronjodu in forum Serial
    Replies: 17
    Last Post: - 30th December 2014, 20:17
  2. Instant Interrupts and HSERIN
    By Rob in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st January 2009, 05:13
  3. Pic16f690 Hserin
    By MARGARITA in forum Serial
    Replies: 9
    Last Post: - 27th May 2008, 04:19
  4. 16F877a Interupt driven Hserin
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2006, 00:38
  5. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42

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