Heres my code, (values taken from the PBPro manual to try and make it work)

s_const VAR WORD
v_raw VAR WORD

.
.
.
s_const = 500*1000 's_const should equal 500000 internally
v_raw = DIV32 100 'v_raw should equal 5000
SEROUT2 s_pin, baud, [DEC5 v_raw] 'should display 5000 on my serial LCD

instead of 5000 being displayed, I get 65535.

I'm not using interrupts, but I tried this with DISABLE/ENABLE with the same result.

I know I'm missing something obvious, but can anyone help? I really did read the manual!