With the memcpy statements, disabling interrupts, copying the arrays, and re-enabling interrupts is less than 1 ms. Awesome. I have a lot to learn, and I really appreciate the help. Bruce Partridge http://www.rebreather.ca > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of William Chops Westfield > Sent: Sunday, December 21, 2003 2:21 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC:]Two low priority long tasks with several high > priority short tasks. > > > On Sunday, Dec 21, 2003, at 13:23 US/Pacific, Bruce Partridge wrote: > > > This is the code I timed: > > for (i=0; i<16; i++) > > { > > temp_array1[i] = array1[i]; > > temp_array2[i] = array2[i]; > > } > > > > All of the arrays are 32 bit float. > > : > > I am starting to think that I could write an inline assembler routine > > that > > would just move the contents without all the array addressing and > > stuff. On > > an 18F4552, I should be able to expect the array contents to be > > contiguous. > > > memcpy(temp_array1, array1, 16*sizeof(float32)); > memcpy(temp_array2, array2, 16*sizeof(float32)); > > Probably will work. But as everyone else has said, there is more > going on here than meets the eye... > > BillW > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body