I am not familiar with mikropascal, however, assuming it compiles down to something reasonable, I would not just assume that your solution is to re-program your routine in assembler. It is very likely that your problem is related to either your design approach, or some hidden software bug that is eating up your cycles. I do all of my embedded programming in C ( various compilers ) and I have re-programmed critical sections in assembly, but not before I have looked at the generated output of the compiler and convinced myself that I could improve the generated code significantly enough to warrant the effort. regards, Bob Bullock At 07:50 AM 11/12/2004, you wrote: >From: "Jan-Erik Soderholm" > > > What speed are you running at now, and what speed will you > > be running in later ? (The speed of the PIC, that is). >My development board has a 4Mhz clock. I'm still deciding which speed I'm >going to use later, I have to take in consideration 3 things: 1) >compatibility with my desired USART speed, 2) power consumption (it's >battery operated) and now 3) will I have enough speed to do everything I >want to do? > > > And, I don't understand, do you write to the CF card > > one byte at the time ? Your interrupt routine runs once > > for each received byte on the serial link, not ? > >Actually I still don't know. I want to write to the CF (yes, compactflash) >soon, but for now I'm giving one step at time and instead I'm writing to the >USART (going to the PC). > > > A final thought... > > Does the specificatins of the CF card indicate that it should be able > > to keep up writing at the same speed that the data comes in ? > > If so, there must be something else in your code that takes to long. > > If not, well, it doesn't matter *what* you do, does it ? > >That's a very good guess. I'm using mikropascal, I think for this >performance-sensitive application I'll have to use god old assembler. > > >_______________________________________________ >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist