View Full Version : defines values for 2nd / 3rd serial ports
longpole001
- 28th January 2015, 22:17
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
Tabsoft
- 28th January 2015, 23:08
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.
longpole001
- 29th January 2015, 00:31
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
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
Tabsoft
- 29th January 2015, 01:45
Yes, well it helps if you're given the correct number. Oops.
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.