Modifing the 9th data bit to be 1 or 0


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    95

    Default Modifing the 9th data bit to be 1 or 0

    I need the 9th data bit to be 1 or 0 to signify end of data, the serial mode is 9600 9N1 can this be done on the fly in pic basic pro. Im using the serout2 command for my data.

    Thanks Sphere.

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Sphere View Post
    I need the 9th data bit to be 1 or 0 to signify end of data, the serial mode is 9600 9N1 can this be done on the fly in pic basic pro. Im using the serout2 command for my data.

    Thanks Sphere.
    Sounds like it might be time to 'bit-bang' your own serial routine. There's a bunch of them out there for the various flavors of the PIC. Shouldn't be too hard to rewrite them to handle 9 bits.

  3. #3
    Join Date
    Aug 2005
    Posts
    95

    Default Thanks for the reply

    Just done a quick search for a bit bang serial routine, the one I found seems quite simple.

    Thanks Sphere.

  4. #4
    Join Date
    Nov 2005
    Posts
    18

    Default

    Would you share the one you found? I need this same thing...

    Thanks,

    Gabriel

  5. #5
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517

    Smile

    Does your PIC have a UART? 9N1 is possible on most that do ... (see datasheet)
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  6. #6
    Join Date
    Nov 2005
    Posts
    18

    Default

    I was thinking on using an old f84A, but if it's easier with the USART, I would do that with one of the 18F's...

    Anyway, I would be intersted in the bit banged routine to learn how to do it.

    Thanks

  7. #7
    Join Date
    Aug 2005
    Posts
    95

    Default

    Quote Originally Posted by gabrielg74 View Post
    Would you share the one you found? I need this same thing...

    Thanks,

    Gabriel
    This is what I found.

    Sphere.

    http://www.picbasic.co.uk/forum/show...t=bang+routine

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 17:44
  2. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  5. New member
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 28th February 2004, 22:44

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