please dont rip this site

NEW201905

 

ON 20190501@10:20:36 AM at page:
On a web page you were interested in at:
http://techref.massmind.org/Techref/other/newtons/ps01/ps01_063.htm#
James Newton[JMN-EFP-786] edited the page. Difference:
http://techref.massmind.org/techref/diff.asp?url=\Techref\other\newtons\ps01\ps01_063.htm&version=0



ON 20190501@11:30:13 AM at page:
On a web page you were interested in at:
http://www.massmind.org/Techref/io/stepper/THB6064/index.htm#43586.2674189815
James Newton[JMN-EFP-786] removed post 43586.2674189815

|Delete '

  <LI>'



ON 20190501@11:31:09 AM at page:
On a web page you were interested in at:
http://ecomorder.com/Techref/ecommerce/index.htm#43586.076712963
James Newton[JMN-EFP-786] removed post 43586.076712963

|Delete '

   <LI>'



ON 20190501@11:31:16 AM at page:
On a web page you were interested in at:
http://ecomorder.com/Techref/ecommerce/index.htm#43585.2891319444
James Newton[JMN-EFP-786] removed post 43585.2891319444

|Delete '
</UL>'



ON 20190501@11:31:32 AM at page:
On a web page you were interested in at:
http://massmind.org/Techref/idea/websites.htm#43585.809224537
James Newton[JMN-EFP-786] removed post 43585.809224537

|Delete '

   <LI>'



ON 20190501@11:31:42 AM at page:
On a web page you were interested in at:
http://massmind.org/Techref/idea/websites.htm#43585.7403819444
James Newton[JMN-EFP-786] removed post 43585.7403819444

|Delete '

   <LI>'



ON 20190501@11:32:13 AM at page:
On a web page you were interested in at:
http://www.massmind.org/Techref/idea/websites.htm#43585.6258796296
James Newton[JMN-EFP-786] removed post 43585.6258796296

|Delete '

   <LI>'



ON 20190501@11:33:00 AM at page:
On a web page you were interested in at:
http://www.massmind.org/Techref/io/steppers.htm#43585.252337963
James Newton[JMN-EFP-786] removed post 43585.252337963

|Delete '

  <LI>'



ON 20190501@11:34:06 AM at page:
On a web page you were interested in at:
http://www.massmind.org/Techref/other/newtons/wc_toc.htm#43584.6837268519
James Newton[JMN-EFP-786] removed post 43584.6837268519

|Delete '

   <LI>'



ON 20190501@11:34:17 AM at page:
On a web page you were interested in at:
http://piclist.com/Techref/member/jwn-hotmail-f41/TIMER_TUTORIAL.htm#43584.5985185185
James Newton[JMN-EFP-786] removed post 43584.5985185185

|Delete '

   <LI>'



ON 20190501@11:35:06 AM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/piclist/index.htm#43583.7724884259
James Newton[JMN-EFP-786] removed post 43583.7724884259

|Delete '
</UL>'



ON 20190501@11:35:30 AM at page:
On a web page you were interested in at:
http://ecomorder.com/Techref/ecommerce/contactmgmt.htm#43583.7470717593
James Newton[JMN-EFP-786] removed post 43583.7470717593

|Delete '

   <LI>'



ON 20190501@11:39:22 AM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/piclist/jal/drivingbipolarsteppermotors.htm#43583.4076273148
James Newton[JMN-EFP-786] removed post 43583.4076273148

|Delete '
</UL>'



ON 20190504@2:54:12 PM at page:
On a web page you were interested in at:
http://piclist.com/Techref/member/jwn-hotmail-f41/TIMER_TUTORIAL.htm#43587.518599537
James Newton[JMN-EFP-786] removed post 43587.518599537

|Delete '

   <LI>'



ON 20190504@2:54:44 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/io/SERVO/BOBPID.htm#43587.0665393519
James Newton[JMN-EFP-786] removed post 43587.0665393519

|Delete '

  <LI>'



ON 20190504@2:55:03 PM at page:
On a web page you were interested in at:
http://www.ecomorder.com/Techref/ecommerce/contactmgmt.htm#43586.7440972222
James Newton[JMN-EFP-786] removed post 43586.7440972222

|Delete '

   <LI>'



ON 20190509@4:14:18 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/piclist/index.htm#43593.7107291667
James Newton[JMN-EFP-786] removed post 43593.7107291667

|Delete '

   <LI>'



ON 20190509@4:14:27 PM at page:
On a web page you were interested in at:
http://techref.massmind.org/Techref/piclist/index.htm#43593.7108449074
James Newton[JMN-EFP-786] removed post 43593.7108449074

|Delete '

   <LI>'



ON 20190509@4:20:10 PM at page:
On a web page you were interested in at:
http://techref.massmind.org/Techref/io/stepper/linistep/halfstep.htm#43591.5295138889
James Newton[JMN-EFP-786] published post 43591.5295138889

   <LI>'



ON 20190509@4:21:12 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/piclist/index.htm#43590.1886689815
James Newton[JMN-EFP-786] removed post 43590.1886689815

|Delete '
</UL>'



ON 20190509@4:21:16 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/io/stepper/linistep/LiniV3_bld.htm#43590.2431481481
James Newton[JMN-EFP-786] removed post 43590.2431481481

|Delete '

  <LI>'



ON 20190509@4:21:30 PM at page:
On a web page you were interested in at:
http://www.massmind.org/Techref/idea/websites.htm#43575.6519791667
James Newton[JMN-EFP-786] removed post 43575.6519791667

|Delete '

   <LI>'



ON 20190509@4:21:56 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/piclist/listfaq.htm#43589.9332523148
James Newton[JMN-EFP-786] removed post 43589.9332523148

|Delete '

   <LI>'



ON 20190509@4:22:58 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/piclist/listfaq.htm#
James Newton[JMN-EFP-786] edited the page. Difference:
http://www.piclist.com/techref/diff.asp?url=\Techref\piclist\listfaq.htm&version=14



ON 20190509@4:24:11 PM at page:
On a web page you were interested in at:
http://www.piclist.com/Techref/microchip/math/radix/index.htm#43594.6834606482
James Newton[JMN-EFP-786] Code:

<PRE>Compact and fast 10bit to BCD conversion for converting 
small / midrange PIC 10bit ADC ADRSH and ADRSL 	
 
;****************************************************
;*	10bit BINARY to BCD		*
;****************************************************
;
;An implimentation of the 'Shift and add-3' Algorithm
;		for small MicroChip 'PIC' microcomputers
;
;ALGORITHM
;
;1)Shift binary number one bit left (into a BCD 'result'
;  (initially empty)
;2)If any 4 bit BCD column is greater than 5[hex] add 3[hex]
;3)Goto 1) {until the LSB binary bit is shifted out}
;
;&lt;------MSB				LSB-----&amp;gt;
;------------- BCD ------------]  [------ binary -----
;					
;	   TENS		  UNITS
;	BCD column	BCD column	MSB	bit	bit	
;	0  0  0  0	0  0  0  0	 1	 0	 1	 
;
;				&lt;------	/  &lt;---/    &lt;---/ 
;Inalisation
;**************

Processor 16F818
include &lt;p16f818.inc&gt;


cblock	0x020	;Define variable block starting at $020

binH		;bin is the 8bit binary value to be converted
bin		;The 2bit binary MSB's to be converted
bcdH		;Thousands (always blank)/ Hundreds nybbles
bcdL		;Tens / Units nybbles
counter
temp
	
endc


	

_bin2bcd	  movlw    	d'8'

	movwf   counter

        clrf    bcdL		
        clrf    bcdH
			
;Save time by not shifting in first 6 bits  (always '0's)
;--------------------------------------------------------
	swapf	binH,1	;Chop off first nybble (TEN THOUSANDS)
	rlf	binH,1	;Shift out first 2 MSB's(always '0's)
	rlf	binH,1

;Ssave more ime by no test and add +3' for first TWO shifts
;---------------------------------------------------------------------
			
	 rlf    binH,F	;Shifting 'binH' left through carry into BCD nybbles
         rlf    bcdL,F	
         rlf    binH,F
         rlf   	bcdL,F	;binH (pic ADC register ADRESH) done with!

           
;Iteration loop shifts the 4 'columns' (10TH, THO, HUN, TEN, UNT) 1 bit left
;Tests each coulmn (4bit nybble) if &gt; 5, adds '3' 
;Shifts in the next MSB of the binary for conversion on the right. 
;(for remaining EIGHT shifts)

Next_bit movfw   bcdL
         addlw   0x33	 ;Add 3 to both nybbles (T/U) in 'temp'
         movwf   temp
         movfw   bcdL
         btfsc   temp,3  ;Test MSB of Units+3 nybble in 'temp 
         addlw   0x03	  ;Add 3 to U nybble if units+3 MSB = 1 
         btfsc   temp,7  ;Test MSB of Tens+3nybble in 'temp'
         addlw   0x30	 ;Add 3 to T nybbleiftens+3 MSB=1 (&gt;5)	
         movwf   bcdL
		
	 movfw	 bcdH
	 addlw	 0x33	 ;Add 3 to both nybbles (T/H) in temp
	 mmovfw	 bcdH
	 btfsc   temp,3  ;Test MSB of Hundreds+3 nybble in temp 
         addlw   0x03	  ;Add 3 to H nybble if units+3 MSB=1
         btfsc   temp,7  ;Test MSB of Thousand+3 nybble in temp
         addlw   0x30	 ;Add 3 to TH nybble if tens+3 MSB=1
	 movwf	 bcdH

 	 rlf     bin,F	 ;Shift in next MSB from bin into T/UNITS
  	 rlf	 bcdL,F  ;Shift next MSB from TENS/UNITS to TH/H
         rlf     bcdH,F  ;Shift up 

         decfsz  counter,F
         goto    Next_bit
         return



end
</PRE>



ON 20190515@9:17:22 AM at page:
On a web page you were interested in at:
http://sxlist.com/Techref/scenix/index.htm#43598.8961226852
James Newton[JMN-EFP-786] removed post 43598.8961226852

|Delete '

   <LI>'



ON 20190515@9:17:30 AM at page:
On a web page you were interested in at:
http://massmind.org/Techref/idea/websites.htm#43597.0956134259
James Newton[JMN-EFP-786] removed post 43597.0956134259

|Delete '

   <LI>'



ON 20190515@9:18:00 AM at page:
On a web page you were interested in at:
http://ecomorder.com/Techref/ecommerce/index.htm#43596.562025463
James Newton[JMN-EFP-786] removed post 43596.562025463

|Delete '

   <LI>'



ON 20190515@9:18:27 AM at page:
On a web page you were interested in at:
http://piclist.com/Techref/member/jwn-hotmail-f41/TIMER_TUTORIAL.htm#43595.6654513889
James Newton[JMN-EFP-786] removed post 43595.6654513889

|Delete '

   <LI>'



ON 20190516@2:31:02 PM at page:
On a web page you were interested in at:
http://piclist.com/Techref/member/jwn-hotmail-f41/TIMER_TUTORIAL.htm#43600.7196643519
James Newton[JMN-EFP-786] removed post 43600.7196643519

|Delete '

   <LI>'



file: /Techref/new201905.txt, 34KB, , updated: 2019/5/16 14:31, local time: 2019/5/19 14:29,
TOP NEW HELP FIND: 
34.207.82.217:LOG IN

 ©2019 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.massmind.org/techref/new201905.txt"> new201905</A>

Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to www.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .