Suggestions:
1: When developing a project its always worth building the hardware on something like a solderless breadboard as it makes changes a doddle and saves on the cost of designing, etching and then throwing away a PCB.
2: I always drive LEDs from pins with their own series resistor connected to the pin, and all commoned to GND. Connecting the LEDs from +ve will cause them to light when the PIC provides a source to ground.
3: At the frequencies you are hoping to monitor (60 Hz) it will be very hard to monitor whats happening with LEDs as the eye will not be able to register the pulses. Try setting the delays and pulse timing to something that you can see, possibly by some scale factor (say by a factor of 10). Once you have the code working with the correct sequence of pins going high and low with the correct delay at this factor, then you can scale it back.
Just my 2p's worth![]()
You guys are cracking me up! Of course I am using a dual trace scope and Pic_User has posted the correct waveform, which I have not been able to produce. I re-installed the software but that was no help. I like the idea of putting extra PAUSEUS in, I will try that.
Bookmarks