From: Dmitry Kiryashov
; for ( i = num_of_elements; i != 0; ) { i--; b[i] = a[i]; }
movlw num_of_elements
movwf i
loop:
decf i, W
addlw a
movwf FSR ; (a+i)
movfw INDF
movwf temp
movlw (b-a)
addwf FSR, F ; (b+i)
movfw temp
movwf INDF
decfsz i, F
goto loop
Questions:
Any suggestion about how to use the methods for writing data in FLASH memory on a PIC 18F2480 and its special function for the 64 bytes block minimum requirement?+
Isaac Marino Bavaresco Says: " I wrote an assembly 'memcpy' routine for use with Hi-Tech PICC Compiler/Assembler. It was tested and work OK, but may have bugs yet. " +
| file: /techref/microchip/memmove.htm, 1KB, , updated: 2008/10/16 11:56, local time: 2009/11/21 00:51,
38.107.191.102:LOG IN
|
| ©2009 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://www.piclist.com/techref/microchip/memmove.htm"> Moving data blocks</A> |
| Did you find what you needed? |
|
The PICList shop now offers mugs, steins and... T-Shirts!!! |
Robotics nuts!Check out http://www.verinet.com/~dlc/ email: dlc@verinet.com... This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.