Quote Originally Posted by amgen
if serout2 was inverted, HSER is not inverted. 16416 in table shows inverted.
Sorry, I don't understand what you want me to do?! I don't have any problems with SEROUT2 at this time.


Quote Originally Posted by Charles Linquis
I was referring to you trying to run 19200...
I did try this at all available baudrates; never worked. Before you ask, yes, I tried with another PIC

I do use a PIC16F690 and modified the code with your suggestion as it is herunder:
Code:
' HSEROUT

' PIC 16F690 Fuses
@ __Config _FCMEN_OFF &_IESO_OFF &_BOR_OFF &_CPD_OFF &_CP_OFF &_MCLRE_OFF &_PWRTE_OFF &_WDT_OFF &_HS_OSC

OPTION_REG = %10000000 'PORT A&B Pull-Ups (look WPUA & WPUB)
ADCON0     = %00000000 'A/D Module
ANSEL      = %00000000 'Select analog inputs Channels 0 to 7
ANSELH     = %00000000 'Select analog inputs Channels 8 to 11
INTCON     = %00000000 'INTERRUPT Control
'WPUA       = %00000000 'Select PORTA weak pull-ups
'IOCA       = %00000000 'Interrupt On Change selection
CM1CON0    = %00000000 'Comparator1 Module
CM2CON0    = %00000000 'Comparator2 Module
TRISA      = %00000000 'Set Input/Output (0 to 5)
PORTA      = %00000000 'Ports High/Low (0 to 5)
TRISB      = %00000000 'Set Input/Output (4 to 7)
PORTB      = %00000000 'Ports High/Low (4 to 7)
TRISC      = %00000000 'Set Input/Output (0 to 7)
PORTC      = %00000000 'Ports High/Low (0 to 7)

'-------------------------------------------------------------------------------
' DEFINEs
DEFINE OSC 20
RCSTA = $90 ' Enable serial port & continuous receive
TXSTA = $24 ' Enable transmit, BRGH = 1
SPBRG = 42 ' 115200 Baud @ 20MHz, 0.94%
BAUDCTL.3 = 1 'for PIC16F690 - BAUDCON1.3 = 1 ' Enable 16 bit baudrate generator 

'-------------------------------------------------------------------------------
LED1    var PORTA.2
Counter var word
Counter = 0

TEST:
  Toggle led1
  HSEROUT [dec counter,13,10]
  pause 500
  Counter = counter + 1
  goto test
  
  end
As said, I tried also the lowest selectable baudrate 300bps; even so, I can't see any "good" data in the terminal.