Pic16f690 Hserin


Closed Thread
Results 1 to 10 of 10

Hybrid View

  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?

    ' 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
    skimask's Avatar
    skimask Guest

    Default

    Which version of PBP are you compiling with?

  3. #3
    Join Date
    May 2008
    Posts
    20

    Default Pic16f690 Hserin

    Hello Skymask, Is Pbpro 2.46

  4. #4
    Join Date
    May 2008
    Posts
    20

    Smile Pic16f690 Hserin

    Hello Skimask, Pbp Version Is 2.46 Thanks In Advance For Your Help.

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

    Default

    Make sure you have the latest patch http://www.microengineeringlabs.com/support/patches.htm
    Regards,

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

  6. #6
    Join Date
    May 2008
    Posts
    20

    Unhappy Pic16f690 Hserin

    Thanks Bruce Yes I Have Already Done, Sorry Everybody But English Is Not Mi Natal Language, The Curious Is With Pic 16f877 And Pic16f627a Work Without Any Changes, Of Course I Select The Apropiate Microcontroller In My Programmer And Microcode Studio.

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

    Default

    Datasheet page 8. RX pin is also AN11, you should disable it.

    Datasheet page 120, table 9-2

    ANSELH=0
    Steve

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

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: 1
    Last Post: - 26th May 2008, 22:13
  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