Like a car that needs three things to make it go (Fuel, Air and Spark) and then it's guaranteed to run if you provide those, a PIC similarlly needs three things to run - Volts, Clock and Reset.
>> Scoping it out, I still had 5 volts on all pins
I do hope that didn't include pin 8.
1. Let's assume you've wired up the +5v and GND/0v properly otherwise were on a losing wicket before we start.
2. That leaves us the next item - Clock. Have you programmed your PIC for Internal Oscillator? - otherwise you're going to have to provide a crystal, resonator or some other clock source.
3. Finally Reset. unless you have programmed for internal MCLR then you will have to provide a RESET on GPIO.3.
Bet you've forgot some or all of those. Again, read the PIC's Datasheet (section called "Special Features of the CPU") and ensure either your programmer is set to the appropriate defaults or you have provided the requisit defines within your program. You can download the "yankeedoodle" example code from the "Sound Command with 12-bit MCU's" thread in this section back in August 2003 to see how this is achieved within your program for a 12F675.
BTW... unless you've put some pauses between the High and Low GPIO.2 they're going to be toggling around 1MHz so make sure your scope is set fast enough to catch it.
Melanie




Bookmarks