From Regulus Berdin
;**********************************************************************
; Adjustable delay from 11-256 cycles (for 14 bit core)
; W = count, cycle count excludes loading of W
; by Regulus Berdin
delay:
addlw -(.10+1) ;2+1 remove 1 count more for carry correction
addlw -4 ; 1
skpnc ; 1/2
goto $-2 ; 2
sublw 0xFF ; 1
addwf PCL,f ; 2
delay7 nop ; delay adjuster
delay6 nop ;
delay5 nop ;
delay4 return ;2
| file: /techref/microchip/delay/8b1cr15m-rb.htm, 0KB, , updated: 2000/9/11 11:30, local time: 2008/12/3 00:57,
38.103.63.57:LOG IN
|
| ©2008 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! <A HREF="http://techref.massmind.org/techref/microchip/delay/8b1cr15m-rb.htm"> PIC Microcontoller Delay Method - Delay X cycles (11-256) exclusive</A> |
| Did you find what you needed? |
Welcome to massmind.org! |
|
.