Wait for a string on a serial port


Results 1 to 20 of 20

Threaded View

  1. #14
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Re: Wait for a string on a serial port

    Quote Originally Posted by flotulopex View Post
    Sayzer,

    Sorry, i don't understand what I have done wrong with the OSC settings. I'm using an external 8MHz crystal; maybe I should have mentioned it.

    I'll give Richard's suggestion (post #10) a try in a little moment and see what it does
    Hi Roger,


    I know you are using external 8Mhz crystal, that is why you need to tell the chip about it.
    In your code, there is no OSC setting. You have it in fuse.
    Default OSC setting is internal 4Mhz.

    You need to manually choose the OSC value for external source by OSCCON.0 = 0
    Otherwise, chip will not know you have selected external HS.

    To make sure you are running on the correct speed, have a flip flop on a pin for say 5000ms.
    Code:
    
    FlipFlop:
    
    TX_ON = TX_ON ^ 1
    PAUSE 5000
    
    Goto FlipFLop
    Then, you can see the speed.
    Last edited by sayzer; - 15th August 2017 at 09:06.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. How to Serial comm. wait for a string?
    By elcrcp in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 29th December 2015, 11:25
  2. wait for a string
    By sahin5002 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 3rd April 2009, 00:27
  3. grabbing a serial string and passing it
    By cpayne in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2006, 00:39
  4. Serial String parsing
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th June 2005, 19:11
  5. serial string parsing
    By billybobbins in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th September 2004, 22:34

Members who have read this thread : 2

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