Hello there Im working with a project and using the Hserin command is my final Step to finish it ( i need PC-MCU communication on background ).
Im using PIC18F26K22 it's kind new controller but so easy to work with and so good.
I have made C7 input and C6 output from TRISC register (C6/C7 = TX1/RX1)

Communication Configs on laptop are

Baud = 9600
Parity = No Parity
ByteSize = 8
StopBits = 1

Code:
DEFINE OSC 32
DEFINE HSER_BAUD 9600 'Hser baud rate 
DEFINE HSER_CLROERR 1 'Hser clear overflow automatically 
DEFINE HSER_SPBRG 25 'Hser spbrg init 
DEFINE HSER_RCSTA 90h 'Hser receive status init 
DEFINE HSER_BITS 9 'Hser Use 9th bit for parity

Main:
  hserin [str rec\10]
  for i=0 to 10
    hserout [rec[i],13,10]
  next i
  pause 1000
  
goto main
This is the part of the code that i use Hserin and Hserout (to see if what's pic is taking are correct )

Can you help me ?? Do i have wrong syntax ?? or Wrong Defines ?? I just got tired today for searching ways to make EUSART work