January 22, 2004

MY PIC PROGRAM WORKS

My first program for the PIC is a program
that blinks an led through pin RB1 (pin #7)
of the chip.

By the way, here is a pic of our chip.
16f628.jpg

At first I was a bit disconcerted since
the blinking was erattic and sometimes stopped
when I picked up the breadboard. After investigation'
I conditioned a few of the pins. I put a 10k resistor on
pin 10 and applied Vdd to pin 4 (MCLR), using a diode to lower
the voltage a bit. I also found that by changing the value of
resistance to grd on pin 16 (osc1) I could change the clock
frequency of the chip computer. This would allow my delay loops to be even longer.

Posted by larrykeegan at January 22, 2004 01:09 PM