Hi
I have a problem when trying to use the HSERIN2 command on a 18F23k22. It simply doesnt work. HSERIN works perfectly.
In the code below I am sending one Byte from my PC and would like to read the same byte sent back.
It works on HSERIN but not on HSERIN2!

CM1CON0 = $00 ;Comparator disabled
CM2CON0 = $00 ;Comparator disabled
ANSELA = $00 ;Analog input disabled
ANSELB = $00 ;Analog input disabled
ANSELC = $00 ;Analog input disabled

include "modedefs.bas"
Define OSC 16
Define HSER_RCSTA 90h
Define HSER_BAUD 9600
Define HSER2_RCSTA 90h
Define HSER2_BAUD 9600

Define HSER_CLROERR
Define HSER2_CLROERR
OSCCON = $70 ;FOSC 16MHz
;OSCTUNE = $40 ;PLL Enabled


input portc.7 ;HSERIN1
input portb.7 ;HSERIN2

RXByte1 var Byte
RXByte2 var Byte

mainloop:

HSERIN2 [RXByte1]
Serout Porta.5, T9600, [RXByte1]
Goto mainloop
End