On Thu, 11 Mar 1999 12:28:19 -0800 Gerhard Fiedler writes: >At 09:48 03/11/99 +0000, Mike Harrison wrote: >>>Whaaaat??? PIC doesn't has internal UART? duhhh! Grade: -E >> >>Why pay for that extra silicon when you can do it so easily in >>software? > >what's the max bps you get out of a pic/avr/scenix firmware serial >receiver, running in the background (ie. on interrupts) at 4MHz clock? >and >how much processing power (%) is left? > Speaking of... A profiler for PIC code would be great! We could then find out how much time is left and where all our time is being spent. Another problem... I tend to structure my code with the use of subroutines. The main loop might have a half dozen calls, and those routines might do another call. Same thing for interrupts. The ISR consists of save context, btfsc, call something, btfsc, call something, restore context. I've gotta be real careful to not run out of stack space! I'[m using the 16c74a and to avoid running out of stack space, I disabled interrupts before doing a subroutine call over a certain depth in the main code. Now I'm getting overrun errors on the uart (receiving at 250 kbps). I guess that I can keep the structure and get rid of stack usage by going to macros instead of subroutines. Any comments? Harold Harold Hallikainen harold@hallikainen.com Hallikainen & Friends, Inc. See the FCC Rules at http://hallikainen.com/FccRules and comments filed in LPFM proceeding at http://hallikainen.com/lpfm ___________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com/getjuno.html or call Juno at (800) 654-JUNO [654-5866]