store_Ah:
mov16 dd+2,AmpHours
[B][COLOR="Red"]call Serial_sent[/COLOR][/B]
Serial_sent:
banksel SPBRG
movlw .25 ; 9.6kbps
movwf SPBRG
movlw b'00100100' ; brgh = high (2)
movwf TXSTA ; enable Async Transmission, set brgh
; Provide a settling time for startup
banksel tmp1
clrf tmp1
settle
decfsz tmp1, f
goto settle
; Send a character through the UART
loop
movf AmpHours, w
[B][COLOR="Red"]call Send[/COLOR][/B] ;error here
movf AmpHours+1, w
[COLOR="Red"][B]call Send[/B][/COLOR] ;error here
goto $
;----------------------
; SEND function
;----------------------
send
banksel TXREG
movwf TXREG ; Send data which has been stored in W
trans_wt
banksel TXSTA
btfss TXSTA, TRMT ; Loop until data is sent
goto trans_wt
return