Hi ive used HSEROUT in my code but dont work, im new at this for other person my be very simple but not for

Please can you explain me in a beginer mode?

Is how i used the HSEROUT


Code:

DEFINE LOADER_USED 1
@ device hs_osc
define osc 20
Include "modedefs.bas" ' Include serial modes

DEFINE HSER_BAUD 9600 'Hser baud rate
DEFINE HSER_SPBRG 129 'Hser spbrg init
DEFINE HSER_RCSTA 90h 'Hser receive status init
DEFINE HSER_TXSTA 24h 'Hser transmit status init
DEFINE HSER_CLROERR 1

TrisB.5=0
TrisC.6=0
TrisC.7=1
B0 var byte

High portb.5
Pause 500
Low portb.5
Pause 500
High portb.5
Pause 500
Low portb.5
Pause 500




serout2 portc.6, 32, ["AT", 13]
serout2 portc.6, 84, ["AT+CMGF=1", 13]
serout2 portc.6, 84, ["AT+CSCA=+351xxxxx000", 13]
serout2 portc.6, 84, ["AT+CSCA=+3xxxxxxxxx0", 13]
serout2 portc.6, 84, ["ola", 13]
end



Thanks,


By By