2009-05-26 04:17 AM
One Pulse Mode
2011-05-17 04:13 AM
Hello All,
I would really appreciate some assistance as for some reason I have a complete mental block on getting my head around the Timer1 one shot mode. What I am trying to do is very easy and the main problems I have is trying to get to grips with quite a versatile peripheral. The examples seem to try and fit lots of functionality in that simply confuses me (I have looked at the one-shot mode example that comes with the library). The objective: MODE 1) Use a software trigger to enable one-shot mode whereby the pin is high during the delay time and then driven low during the pulse length. MODE 2) Use a software trigger to drive the pin low for the delay period, and then SAMPLE the pin after the pulse period has elapsed. *Note: someone may recognise I am trying to implement the Dallas 1-wire protocol here. I don't want to simply use a ''timer'' element to generate the delays due to power consumption.