On Wed, 1 Jul 1998 17:52:48 -0700 WF AUTOMACAO writes: >THe first sample works well! > >But the second, where i did include a Subroutine for change the State >of >PORTB, doesn't work! If you exceed the speed ratings of the memory chips, they may read one program OK but fail on another. Not every bit in a memory chip works at the same speed. The manufacturer's rating is just a guaranteed maximum for the worst bit. If you happen to have a program only in fast bits, it will work OK, but expanding the program into a slow section of the chip won't. Bits can also be such that zeros will read at a high speed, but it takes longer to read a one (or vice versa). Changing the program so such a bit that was zero is now one will make it fail. So it is something to check. If you are running the PIC faster than 4 MHz it is quite possible to have a speed related problem. _____________________________________________________________________ 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 Or call Juno at (800) 654-JUNO [654-5866]