piclist 2001\10\18\044719a >
Thread: Extending TMR2
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
face BY : Mike Blakey email (remove spam text)



Thanks for the help. I need to vary a pulse width between 0.06s and 0.003s (using a
20Mhz, TMR2 16prescale & 16 post scale,  that is a count of between 563 and 4)
obviously, I run out at a count of 255 (0.029s) whilst TMR2 is timing this period
the PIC is busy doing other stuff. What am after is to put a value into TMR2, set
the output, have it time out the required period, interrupt once to reset the
output, therefore giving me the simple variable pulse width. This is a repetitive
pulse, but is initiated from an other input. All the other timers are 'in-use'.
8bit resolution is fine, and a minimum resolution of approx. 0.00012 will be fine.

Thanks for any advice.





@spam@fastvid@spam@spam@spam@EZY.NET.AU on 18/10/2001 01:25:43
Please respond to STOPspamPICLIST@spam@spamMITVMA.MIT.EDU@spam@spamINTERNET@spam@spamwtgw

To:     STOPspamPICLISTspamspamSTOPspamMITVMA.MIT.EDUspamspamSTOPspamINTERNETspamspamSTOPspamwtgw
cc:
Paper Mail:
Subject:        Re: [PIC]: Extending TMR2

                  *** WARNING ***

This mail has originated outside your organization,
either from an external partner or the Global Internet.
    Keep this in mind if you answer this message.


Mike Blakey wrote:
>
> I'm currently using a 16f876 20Mhz. in an application.  I need to delay an output
> between 0.06s and 0.003s.
>
> I have pre and post scaled to 16 on TMR2 but can only get a max. delay of 0.029s
I
> can not afford the overhead of waiting and counting interrupts. does anyone have
> any *smart* ideas to extend the time period?


Hi Mike, what's the main problem? Do you need
seamless and adjustable period delays? What
resolution do you need, how may total delay
periods do you need etc. More info is needed
before the best solution can be suggested. :o)
-Roman

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservRemoveMEspamspamBeGonemitvma.mit.edu with SET PICList DIGEST in the body








********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

--
http://www.piclist.com hint: To leave the PICList
@spam@piclist-unsubscribe-requestspamspam@spam@mitvma.mit.edu


<"011018083939Z.WT01700. 37*/PN=Mike.Blakey/OU=Technical/OU=NOTES/O=BAe MAA/PRMD=BAE/ADMD=GOLD 400/C=GB/"@MHS>

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Extending TMR2

month overview.

new search...