News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Transmitting SDWORD through RSOut

Started by shantanu@india, Dec 02, 2021, 08:46 AM

Previous topic - Next topic

shantanu@india

Hi,
Just got confused a bit since I always use Dec modifier to transmit ASCII characters.
Does RSOut SDWORD transmit the four bytes sequentially from highest to lowest?
Thanks.
Regards
Shantanu

shantanu@india

Got my answer in the assembly code...it is LS byte first & MS byte last

F1_001265 equ $ ; in [CONTROLLER_08.BAS] Rsout "#",last_reading,"%"
    movlw 35
    call __rsout_
    movf last_reading,W,1
    call __rsout_
    movf last_readingH,W,1
    call __rsout_
    movf last_readingHH,W,1
    call __rsout_
    movf last_readingHHH,W,1
    call __rsout_
    movlw 37
    call __rsout_
Regards
Shantanu