defines values for 2nd / 3rd serial ports


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default defines values for 2nd / 3rd serial ports

    hi guys ,

    was wondering what the define values would be for the 2nd and 3rd serial port , only ever seen for port A

    DEFINE HSER_RCSTA 90h ' Hser receive status init
    DEFINE HSER_TXSTA 24h ' Hser transmit status init
    DEFINE HSER_BAUD 38400 ' Hser baud rate

    regards

    Sheldon

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: defines values for 2nd / 3rd serial ports

    In section 8.1 of the PBP manual it shows the HSER defines. There are defines for HSER (port1) and HSER2 (port2).

    I don't see anything about port3.
    Regards,
    TABSoft

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: defines values for 2nd / 3rd serial ports

    thanks , always good to rtfm with a number to go look for
    for those looking for the defines in the manual its
    section 8.7 , with the other details of the serial ports options within section 8.x



    Code:
    DEFINE HSER_PORT 1 'HSER port to use on devices
    with more than one
    DEFINE HSER2_BAUD 2400 'HSER2 baud rate
    DEFINE HSER2_SPBRG 25 'HSER2 SPBRG2 init
    DEFINE HSER2_SPBRGH 0 'HSER2 SPBRGH2 init
    DEFINE HSER2_RCSTA 90h 'HSER2 receive status init
    DEFINE HSER2_TXSTA 20h 'HSER2 transmit status init
    DEFINE HSER2_EVEN 1 'HSER2 If even parity desired
    DEFINE HSER2_ODD 1 'HSER2 If odd parity desired
    DEFINE HSER2_BITS 9 'HSER2 Use for 8 bits + parity
    DEFINE HSER2_CLROERR 1 'Automatically clear HSERIN2
    overflow errors

  4. #4
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: defines values for 2nd / 3rd serial ports

    Yes, well it helps if you're given the correct number. Oops.
    Regards,
    TABSoft

Similar Threads

  1. how to store received values in serial communication ?
    By engasm in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 25th June 2012, 00:42
  2. DT Instant Interupt with a 2nd serial port
    By ecoli-557 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th January 2012, 06:09
  3. Serial Port Complete 2nd Edition
    By Bruce in forum Serial
    Replies: 4
    Last Post: - 8th November 2007, 15:28
  4. multipal serial ports
    By Andre_Pretorius in forum Serial
    Replies: 2
    Last Post: - 11th September 2007, 14:53
  5. TTL input - 3rd states possible?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st March 2007, 16:04

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