I'm trying to send a decimal number (0-999) from an arduino (mega2560, not important) to a pic 16f88 via serial.

I'm new to this, but the pic doesn't seem to be receiving and/or processing the data. I've already looked around the forums for details on this, but I can't find what I'm looking for.

Here's my pic code:


DEFINE OSC 8
OSCCON.4 = 1
OSCCON.5 = 1
OSCCON.6 = 1
ANSEL = 0

DEFINE hser_rcsta 90h 'set receive register to receiver enabled
define hser_txsta 20h 'set transmit register to transmitter enabled
define hser_baud 9600 'set baud rate
portb.0 = 0
portb.1 = 0
portb.3 = 0
portb.4 = 0
portb.6 = 0
portb.7 = 0
porta.0 = 0
porta.1 = 0

motor1 var portb.0 'assign main motor 1 to pin 6
motor2 var portb.1 'assign main motor 2 to pin 7
thr1 var portb.3 'assign thruster motor 1 to pin 9
thr2 var portb.4 'assign thruster motor 2 to pin 10
thr3 var portb.6 'assign thruster motor 3 to pin 12
thr4 var portb.7 'assign thruster motor 4 to pin 13
tempout var porta.0 'assign temperature sensor output to pin 17
voltout var porta.1 'assign control battery (not flight batteries) voltage sense output to pin 18


joy1v var word
joy1h var word
joy2v var word
joy2h var word

serial:
hserin [wait ("A"), dec joy1v]
hserin [wait ("B"), dec joy1h]
hserin [wait ("C"), dec joy2v]
hserin [wait ("D"), dec joy2h]
return

thrusters:
if (joy1v>600) then
high thr1
'Pauseus 500
'Low thr1
'Pauseus 1500
endif
if (joy1v<400) then
low thr1
endif
if (joy1v<400) then
high thr2
'Pauseus 500
'Low thr2
'Pauseus 1500
endif
if (joy1v>600) then
low thr2
endif
gosub serial
end


The serial data being sent to the pic looks like: A123B12C945D3. Am I using HSERIN correctly?

Thanks in advance.