cancel
Showing results for 
Search instead for 
Did you mean: 

One Pulse Mode

ngaylard
Associate II
Posted on May 26, 2009 at 13:17

One Pulse Mode

1 REPLY 1
ngaylard
Associate II
Posted on May 17, 2011 at 13:13

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.