Comments
Login to post a comment...
setup for lighting up 5 LED with the capabilities to program the 16F627A IC with your PICkit2 programmer
|
This is a setup for programming 5 LEDs to light up with a VERY simple Knight Rider scheme. I used a PICkit2 programmer and Great Cow Basic to create the program. The five pin header is for connecting the PICkit2 and can be used to supply the 5 Volts needed to power the LEDs. I used 220 Ohm resistors for the LEDs, a 16F627A IC. I have attached a photo of the actual breadboard, my Fritzing bread board file, the Great Cow Basic program, and a movie clip of the LEDs flashing. |
Files |
MRJURICA # Nov. 30, 2011, 7:44 a.m.
OK....this is the first time I have used Fritzing (downloaded it this morning) and I missed some information. The schematic and pcb is not done, apparently I can't post a movie clip of the project running, and the code I attached is not the right one (still will run but it will only flash 4LEDs off/on) and I can't change it for some reason....So, I will post the knight rider code here...Sorry about that, I promise to post my next project in proper form.... ;Chip Settings #chip 16F88,4 #config LVP=OFF, MCLR=OFF, PWRTE=OFF, WDT=OFF, OSC=INTRC_CLKOUT Dir PORTA.0 Out Dir PORTA.1 Out Dir PORTA.2 Out Dir PORTA.3 Out Dir PORTA.4 Out start: Set PORTA.0 On Set PORTA.1 Off Set PORTA.2 Off Set PORTA.3 Off Set PORTA.4 Off Wait 100 ms Set PORTA.0 Off Set PORTA.1 On Set PORTA.2 Off Set PORTA.3 Off Set PORTA.4 Off Wait 100 ms Set PORTA.0 Off Set PORTA.1 Off Set PORTA.2 On Set PORTA.3 Off Set PORTA.4 Off Wait 100 ms Set PORTA.0 Off Set PORTA.1 Off Set PORTA.2 Off Set PORTA.3 On Set PORTA.4 Off Wait 100 ms Set PORTA.0 Off Set PORTA.1 Off Set PORTA.2 Off Set PORTA.3 Off Set PORTA.4 On Wait 100 ms Set PORTA.0 Off Set PORTA.1 Off Set PORTA.2 Off Set PORTA.3 On Set PORTA.4 Off Wait 100 ms Set PORTA.0 Off Set PORTA.1 Off Set PORTA.2 On Set PORTA.3 Off Set PORTA.4 Off Wait 100 ms Set PORTA.0 Off Set PORTA.1 On Set PORTA.2 Off Set PORTA.3 Off Set PORTA.4 Off Wait 100 ms Goto start