The only thing I noticed in my brief glance was that you didn't touch the A/D registers associated with port A. By default, much of port A at startup are configured as A/D. Your code will not do much with port a until you set the A/D registers to configure port A as all digital (or digital where you want it...) -Adam Jeff Scharpf wrote: > > I was hoping someone could just take a quick look at a small snippet of code I have and tell me if there is anything obviously wrong. What I'm doing is setting up a 16F876 with porta as input, portb as input, and portc as outputs. I have all inputs for porta and portb tied to V+. I have the portc outputs going to LEDs. All I wanted to do was run timer0 internally, use the timer0 interrupt to go out and increment a register, then display this on the portc outputs to show that the interrupt is working. I used a 256 scaler so it didn't go so fast. I know that i have some defined variables that I have not used yet.I am very new at this :( Any help is greatly appreciated. > I did read the beginners help page and was able to run simple code that read an input from port a and incremented a register, then sent it to portc leds. This worked, so I believe electricallly everything is ok. > > Thanks, > > Jeff Scharpf > > Jeffrey Scharpf > Senior Engineering Technician > Milwaukee Electric Tool Corporation > Technical Center > Brookfield, Wisconsin, 53005 > (262) 783-8681 > _______________________________________________________ > Are you a Techie? Get Your Free Tech Email Address Now! > Many to choose from! Visit http://www.TechEmail.com > > -------------------------------------------------------------------------------- > Name: freq.asm > freq.asm Type: Plain Text (text/plain) > Encoding: 7bit -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu