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
Questions:
Comments:
addlw -(9+1) addlw -4 skpnc goto $-2 subwf PCL,f nop ;(this line never run) nop nop nop return+
file: /Techref/microchip/delay/8b1cr15m-rb.htm, 1KB, , updated: 2013/3/4 14:59, local time: 2024/12/17 21:09,
3.144.7.216:LOG IN
|
©2024 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? <A HREF="http://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! |
Welcome to massmind.org! |
.