> I have been trying to get the flashing led example to work. While I got > things to work successfully (fairly painlessly) with a 16F628, I can not > gotten it to work with a 16F877.. My first knee-jerk guess is that you either forgot to disable the A/D module or got caught by the two extra RAM banks. > I have a 9V power supply going into a > 7805 voltage regulator, producing 5V @ ~200mA (is this ok? Perfect. > the data sheet lists > the high sink / source current as 25 mA..), That's the do not exceed maximum per pin, not the device supply current. > I put a led between rb0 > (and rb1) and ground (and tried it with a resistor also), Don't connect an LED directly between a PIC pin and power or ground. That will cause excessive currents in both the PIC pin and the LED. As a rough estimate, assume the PIC pin will drive all the way to power or ground, the LED will drop 2V, and you want about 5mA thru the LED. Most LEDs are rated to 20mA, but you will see them just fine at 5mA and there will be less stress on the parts. The resistor should then be R = 3V / 5mA = 600 ohms, so 560 ohms is a common value that would be fine. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics