Richard,
Thanks for your comments. We are not all perfect, but I shall try to do better next time re typos. .
I copied by cut and paste then compiled your code exactly as you sent it.
The result was the same. No reaction from the Pic. Nor from five of its mates. So unless I have a bad batch of Pics, as you say I have one bit of rubbish that is preventing the program working. Since the body of the program is so simple this suggests the rubbish is somewhere above that.
Attached is a sample screen shot from the analyser. The power supply is on channel 7 (Purple) and the expected output on channel 6 (Blue). The trigger is channel 7.
The output shows a single short output pulse when the power comes on, then a delay of about 2.5 seconds before going High. Then nothing until the power is turned off. Collecting a sample for longer is just the same - the shift Low of the output pin just moves out to when the power is turned off.
An suggestions please?




Bookmarks