Serin with Hyperterminal


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    74

    Default Serin with Hyperterminal

    I have just started experementing with the pic 16f84a and I am having problems with serin.
    when I use the following code only approx 16% of the time do I get the correct character outputed. the debug output works fine. I am using a max 232 and I have tried both normal and inverted modes but had even less sucess with inverted mode. I have looped back my serial and it woks ok. can someone please help?

    ' SERIN & SEROUT Commands
    '


    INCLUDE "modedefs.bas" ' Include serial modes
    DEFINE OSC 4
    DEFINE DEBUG_REG PORTA
    DEFINE DEBUG_BIT 3
    DEFINE DEBUG_BAUD 1200
    DEFINE DEBUG_MODE 0

    SI CON 9 ' Define serial in pin

    B0 VAR BYTE

    loop: SerIn SI,t1200,B0 ' B0 = input character

    Debug "B0= ",B0


    GoTo loop ' Forever

  2. #2
    Join Date
    Mar 2004
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Have changed the serin to debug in and it is working fine.

    Can serin be used with hyperterminal? or have I maybe missed somthing in its setup?

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  2. serin question?
    By sachymo in forum General
    Replies: 5
    Last Post: - 27th July 2008, 10:04
  3. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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