Why is this so hard? HSEROUT problems.


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,623


    Did you find this post helpful? Yes | No

    Default Hang in there!

    Hi Groston,
    The PIC is obviously sending the data out. You are running with the internal oscillator and it may be that it's not precise enough for the baud rate generator to produce the correct timing. Can you try it with a external crystal instead. (I think it should've worked when you tested at 300baud though, but you'll never know).

    Try to get the PIC to send data correctly first. (I know that's what your doing) but perhaps something even more simple, like:
    Code:
    i var byte
    Loop:
      i = i + 1
      HSEROUT [#i, 13]
      Toggle PortB.0
      Pause 1000
      Goto Loop
    Let us know.

    /Henrik Olsson.

  2. #2
    groston's Avatar
    groston Guest


    Did you find this post helpful? Yes | No

    Default

    Henrik,

    I will try your suggested code a bit later today.

    As for the intent of the section in red:
    I was simply looking to see if the program would recognize incoming serial data. By using the built-in serial communications window, my plan was to send a character every so often to see if the alternate message was outputted.

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 18:44
  2. HSEROUT and Commas, What? Help Me Understand
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2009, 20:12
  3. Is HSEROUT corrupting bit 7 ?????
    By Robert Wells in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2008, 17:26
  4. Problems with HSERIN HSEROUT
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2005, 18:24
  5. HSEROUT Problems
    By SergioRM in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th April 2005, 00:17

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