calc time
This commit is contained in:
		
							parent
							
								
									0341fc6170
								
							
						
					
					
						commit
						db55ca4bf7
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -9,6 +9,9 @@ loop:
 | 
			
		|||
	cbi PORTB, 1
 | 
			
		||||
 | 
			
		||||
; wait
 | 
			
		||||
; takes roughly ((2+2)*(256*256))/(9.6*1000*1000/8) ~ .218 seconds.
 | 
			
		||||
; 2 cycles SBIW + 2 cycles BRNE for 256*256 subtractions
 | 
			
		||||
; 9.6 MHz (CKSEL[1..0] = 10) with CKDIV=8
 | 
			
		||||
loop1:
 | 
			
		||||
 	sbiw ZL, 1
 | 
			
		||||
	brne loop1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue