please dont rip this site

PIC Microcontoller Radix Math Method

ASCII hexadecimal to Binary

spampaulsworkspam at ~NOSPAM~hotmail.com

here are a couple of BIN to ASCII converters I wrote, might be useful.
;**********************************************************************
; Routine:ASCIItoBIN
; Input Registers:ASCII_MSW, ASCII_LSW
; Output Registers: BUFFER
; Internal Registers:None
; CALLS:None
; Function: Receives two ASCII bytes in ASCII_MSW and ASCII_LSW registers.
; These two bytes are converted into 1 byte binary, returned from this 
; routine in register BUFFER
;**********************************************************************
ASCIItoBIN	MOVLW 	65		;convert ascii into MSW address 
		SUBWF 	ASCII_MSW,W
		MOVLW 	48
		BTFSC 	StatusREG,C
		MOVLW 	55
		SUBWF 	ASCII_MSW,W
		ANDLW 	b'00001111'
		MOVWF 	BUFFER		;Save result of the upper nibble
		SWAPF 	BUFFER,1
		MOVLW 	65		;convert ascii into LSW address 
		SUBWF 	ASCII_LSW,W
		MOVLW 	48
		BTFSC 	StatusREG,C
		MOVLW 	55
		SUBWF 	ASCII_LSW,W
		ANDLW 	b'00001111'	;Get result of lower nibble
		IORWF 	BUFFER,1	;and put final result in BUFFER for output
		retlw 0

See also:


file: /Techref/microchip/math/radix/a2b-2d8b-pw.htm, 1KB, , updated: 2003/10/21 17:36, local time: 2017/11/21 19:44,
TOP NEW HELP FIND: 
54.158.214.111:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/microchip/math/radix/a2b-2d8b-pw.htm"> PIC Microcontoller Radix Math Method ASCII hexadecimal to Binary</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171121 RussellMc, Van Horn, David, James Cameron, Sean Breheny, alan.b.pearce, IVP, Neil, David C Brown, Bob Blick, Denny Esterline,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .