TB025 Microchip Technology, TB025 Datasheet - Page 6
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
TB025
Manufacturer Part Number
TB025
Description
Microcontrollers
Manufacturer
Microchip Technology
Datasheet
1.TB025.pdf
(8 pages)
www.DataSheet4U.com
TB025
ASCII2Hex
ASCIIOut
DS91025A-page 6
movwf
movlw
subwf
movlw
andwf
btfsc
goto
movlw
subwf
movf
return
end
Temp1
'0'
Temp1,F
0xf0
Temp1,W
STATUS,Z
ASCIIOut
'A'-'0'-0x0a
Temp1,F
Temp1,W
;Convert value to binary
;Subtract ASCII 0 from number
;If number is 0-9 result, upper nibble
; should be zero
;Otherwise, number is A - F, so
;subtract off additional amount
;Value should be 0 - 15
1998 Microchip Technology Inc.