Serout2 HELP


Closed Thread
Results 1 to 3 of 3

Thread: Serout2 HELP

  1. #1
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79

    Default Serout2 HELP

    Hello
    I currently use serout to send characters to a one wire lcd display. I would like to use serout2 instead because of some of it added features. I'm using N9600 for my serial out using serout. This mode has always worked for me without any problems. Correct me if I am wrong but using N9600 with serout does the following. 9600 baud, Driven Inverted, 8N1, not open.
    So then in order to set my mode for serout2 Bit 15 = 0, bit 14 = 1, bit 13 = 0, and the lower 13 bits = 84 for 9600 baud. So my mode should be 16084. Am I close I've messing around with this off and on for a week with no resolve. What am I missing.

    Please Help

    This is working.

    Define OSC 20

    Pause 1000 ' let lcd startup

    Serout2 Portc.3,6,["help"]

    END

    This does not

    Define OSC 20

    Pause 1000 ' let lcd startup

    Serout2 Portc.3,16084,["help"]

    END

    Thanks
    Shawn

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shawn View Post
    I currently use serout to send characters to a one wire lcd display. I would like to use serout2 instead because of some of it added features. I'm using N9600 for my serial out using serout. This mode has always worked for me without any problems. Correct me if I am wrong but using N9600 with serout does the following. 9600 baud, Driven Inverted, 8N1, not open.
    So then in order to set my mode for serout2 Bit 15 = 0, bit 14 = 1, bit 13 = 0, and the lower 13 bits = 84 for 9600 baud. So my mode should be 16084. Am I close I've messing around with this off and on for a week with no resolve. What am I missing.
    Shawn
    Need to bone up on your binary math....

    Bit 15 = 0
    Bit 14 = 1
    Bit 13 = 0
    Bit 12-0 = 0 0000 0101 0100

    Bit 14 = 2^14 = 16384
    Bit 6 = 2^6 = 64
    Bit 4 = 2^4 = 16
    Bit 2 = 2^2 = 4
    Total = 16,468

    Back of the manual has all sorts of SerIn2/SerOut2 mode examples.

  3. #3
    Join Date
    Dec 2004
    Location
    nebraska
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    skimask
    Thank You I'm not sure what I was thinking, but my binarry was wrong
    thanks again shawn.

Similar Threads

  1. Serout and 18F87J50
    By Glenn_Webber in forum Serial
    Replies: 8
    Last Post: - 20th November 2009, 14:26
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. SLOW Serin2 and Serout2
    By dragons_fire in forum General
    Replies: 3
    Last Post: - 26th June 2009, 02:38
  4. Gps with 16f628
    By dragons_fire in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th June 2006, 03:38
  5. TMR1 interrupt question
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th February 2006, 03:02

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