>
> He, he, I like your ideea with dogs...
> but it's wrong because delay_10uS ( 66 ) means 660uS
> so, 660uS x 2 ( one on one off ) = 1.2 ms
> 1/1.2mS = 833,(33) Hz which is a perfect buzz sound even for a human ear.
> Cheers, Vasile
>
>
> On Thu, 18 Jan 2001, James Paul wrote:
>
> > Vasile,
> >
> > Correct me if I'm wrong, but if you have the output on for 10uS
> > and off for 10uS, that's a period of 20uS which equates to a
> > frequency of 50Khz, and this 50Khz signal would last for about
> > 5 seconds. So even if it was working, you wouldn't know it unless
> > you're a dog or cat or something. Just a thought...
> >
> > Regards,
> >
> > Jim
> >
> >
> >
> >
> >
> > On Wed, 17 January 2001, Vasile Surducan wrote:
> >
> > >
> > > There is a better way using tmr1, with next routine pic is busy all
> > > that 5 seconds just with delays...Maybe you want to sing a real song
> > > Check at
http://www.piclist.com/jal
> > > By, Vasile
> > >
http://www.geocities.com/vsurducan/pic.htm
> > >
> > >
> > > include f877_4
> > > include jpic
> > > include jdelay
> > >
> > > -- noise generation procedure with variable tones
> > >
> > > pin_d1_direction = output
> > > var byte ton = 66
> > >
> > > for 255 loop -- 255 x 15 x 10uS x 2 x 66 = 5049 mS
> > > for 15 loop
> > > pin_d1 = high
> > > delay_10uS ( ton )
> > > pin_d1 = low
> > > delay_10uS ( ton )
> > > end loop
> > > end loop
> > >
> > >
> > > On Wed, 17 Jan 2001, Paul Chicofsky wrote:
> > >
> > > > Hi all
> > > >
> > > > Any body know how to program the pic16f877 so it outputs a beep to a speaker
> > > > for only 5 seconds?
> > > >
> > > > Thank you
> > > >
> > > > Samer
> > > >
> > > > _________________________________________________________________________
> > > > Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
> > > >
> > > > --
> > > >
http://www.piclist.com hint: PICList Posts must start with ONE topic:
> > > > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads
> > > >
> > > >
> > >
> > > --
> > >
http://www.piclist.com hint: The list server can filter out subtopics
> > > (like ads or off topics) for you. See
http://www.piclist.com/#topics
> >
> >
jim
KILLspamjpes.com
> >
> > --
> >
http://www.piclist.com hint: The list server can filter out subtopics
> > (like ads or off topics) for you. See
http://www.piclist.com/#topics
> >
> >
>
> --
>
http://www.piclist.com hint: The PICList is archived three different
> ways. See
http://www.piclist.com/#archives for details.