16F88 7 data bits


Closed Thread
Results 1 to 13 of 13

Hybrid View

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


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by skimask View Post
    I thought the DEFINE for SERIN/SEROUT stuck constant for the whole program...like you can't re-DEFINE it.
    They do - that is why I suggested using SEROUT for one and SEROUT2 for the other. They are not related by the defines
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    They do - that is why I suggested using SEROUT for one and SEROUT2 for the other. They are not related by the defines
    AHA! Missed that!

  3. #3
    Join Date
    Oct 2005
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    In the software serial routines, MELabs must be looking at the settings in order to determine how to send the data bits and set the parity right? Problem is it's a define and not a variable or it most likely could be changed on the fly.

    I sure hate to bit bang this but I may have to.

    Richard

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


    Did you find this post helpful? Yes | No

    Default

    >>I sure hate to bit bang this but I may have to.

    you do not have to, PBP has done the work for you.

    >>two adjacent pins connected together

    another thought - no need for adjacent pins - use SEROUT for 8N1 and SEROUT2 for 7N1 ... using the same output port pin.

    If PORTA.1 = 1 then ; check jumper
    SEROUT PORTB.0, .... ; need 8N1
    else
    SEROUT2 PORTB.0, ... ; need 7N1
    ENDIF

    will that work?

    Also, I do not see why you keep mentioning CCS??? We are taking PBP here
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  5. #5
    Join Date
    Oct 2005
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I'll give it a shot this morning. It "should" work.

    Why do I keep mentioning CCS? I only mentioned it once in an effort to show it is possible to do it But upon closer examination, it also only handles it in software only.

    Quote Originally Posted by paul borgmeier View Post
    >>>>two adjacent pins connected together
    another thought - no need for adjacent pins - use SEROUT for 8N1 and SEROUT2 for 7N1 ... using the same output port pin.

    Also, I do not see why you keep mentioning CCS??? We are taking PBP here

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


    Did you find this post helpful? Yes | No

    Default

    Hi Richard,

    I hope this approach works for you.

    Best of the Day,
    Last edited by paul borgmeier; - 12th February 2008 at 17:50. Reason: grammar
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  7. #7
    Join Date
    Oct 2005
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    Hi Richard,
    I this approach works for you.
    Best of the Day,
    I ended up using SER2 for the 7,N,1 Stuff then
    using HSER for the 8,N,1 Stuff.

    Check the Dip switch, Configure TXSTA, RCSTA, SPBRG to the values needed or Zero if not needed. This worked great and allowed me to still use the modifiers like in SER2.

    Thanks for the ideas.

    Richard

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  3. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  4. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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