I got one LED to flash on the PICkit. Thanks for the help everyone! I have another question though. Below is a link of schematic for the LEDs on the PICkit (page 2 of link below), does anyone know what combination of bits are required for each LED? For example, if I set PORTA = 0b00010000, D0 LED lights up. If I set PORTA = 0b00100000, D1 LED lights up. How can I figure out what combination of high/low/no voltages are required to light up each of the other LEDs? thanks. Thanks! Link to schematic(page 2) http://docs.google.com/fileview?id=0Bw19P-iQm5zpYTJhZDIzYzYtMTZiOS00ODEwLTliYzItOGM1ODUyOGI4NjNi&hl=en - Xiao Xu On Mon, May 31, 2010 at 3:33 PM, Xiao Xu wrote: > I got one LED to flash on the PICkit. Thanks for the help everyone! > > I have another question though. I have attached the schematic for the LEDs > on the PICkit (page 2), does anyone know what combination of bits are > required for each LED? > > For example, if I set PORTA = 0b00010000, D0 LED lights up. If I set PORTA > = 0b00100000, D1 LED lights up. > How can I figure out what combination of bits are required to light up each > of the other LEDs? > thanks. > > Schematic is attached (page 2) > Thanks! > - Xiao Xu > > > > On Sun, May 30, 2010 at 5:00 PM, Mark Rages wrote: > >> On Sat, May 29, 2010 at 11:47 AM, Bob Blick wrote: >> > >> > On Sat, 29 May 2010 11:41:28 -0400, "Xiao Xu" said: >> > >> >> > RA4 = 1; >> > >> > You must have really bad luck. I am not sure on the 16F684, but pretty >> > much traditionally RA4 is an open-drain pin. >> > >> > It is the one pin that is a problem for beginners. >> > >> > For now, try to use RA3, or RA2, or RA1, or RA0. >> > >> > Not RA4 or RA5. >> > >> > After you get it all working, check out the 16F684 datasheet for PORT A >> > and you will see that not all the pins on that port are identical, and >> > using them as outputs is special. >> > >> > Cheerful regards, >> > >> > Bob >> >> Xiao Xu is using the PICkit 1, which has LEDs charlieplexed across the >> PORTA outputs. (RA1,2,4,5) >> >> See page 36 of http://ww1.microchip.com/downloads/en/DeviceDoc/40051D.pdf >> >> Regards, >> Mark >> markrages@gmail >> -- >> Mark Rages, Engineer >> Midwest Telecine LLC >> markrages@midwesttelecine.com >> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist