----- Original Message ----- From: "Xiao Xu" To: "Microcontroller discussion list - Public." Sent: Saturday, May 29, 2010 4:41 PM Subject: Re: [PIC]In C, how do you set a pin to high voltage? > Alright, here's my entire program, I added TRISA in: > I'm currently running a 16F684 on a PICKit 1, and I'm trying to get 1 of > the > lED to light up. But unfortunately it refuses to. Have you tested the actual pin to make sure it's not the LED or faulty connection? (or LED wrong way round?) I tried your code on a 16F690, and it flashes an LED okay (I used RC0 but as long as you are clearing ANSEL, it should be the same) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist