Searching \ for '"PULSIN" instruction' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=pulsin+instruction
Search entire site for: '"PULSIN" instruction'.

Truncated match.
PICList Thread
'"PULSIN" instruction'
1999\03\30@123051 by John

flavicon
face
Hi all,
When using the PULSIN instruction, are the (10uSec.) units measured based
on the oscillator or an internal timer?  I'm using a 3.58Mhz resonator;
should I assume each 10uSec unit is actually 10uSec * 1.173 (4.0Mhz/3.58Mhz)
or 11.73uSec?
John
______________________________________________________________________________

John Leonard, instrument technician                        Electron Hacker
College of Science & Engineering                           Bit Banger
Saginaw Valley State University                            Bassist
University Center, MI USA  48710                           Dad
_____________________________________________________________________________

1999\03\30@151217 by chuck

flavicon
face
You are correct. The resolution is totally dependant on the oscillator
frequency. 4 khz is 10 usec resolution, 20 mhz is 2 usec resolution.
You interpolate from there.
PicBasic Pro allows you to define the oscillator frequency but the
PULSIN command is un-affected by the redefine.

For PicBasic questions you could also join the PicBasic list.
Instructions are at my site:
http://elproducts.com/Hobbyist.htm#picbasic list

--- John <spam_OUTleonardTakeThisOuTspamTARDIS.SVSU.EDU> wrote:
> Hi all,
> When using the PULSIN instruction, are the (10uSec.) units measured
> based
> on the oscillator or an internal timer?  I'm using a 3.58Mhz
> resonator;
> should I assume each 10uSec unit is actually 10uSec * 1.173
> (4.0Mhz/3.58Mhz)
> or 11.73uSec?
> John
>
______________________________________________________________________________
>
> John Leonard, instrument technician                        Electron
> Hacker
> College of Science & Engineering                           Bit Banger
> Saginaw Valley State University                            Bassist
> University Center, MI USA  48710                           Dad
>
_____________________________________________________________________________
>

===
Chuck Hellebuyck
Electronic Products
.....chuckKILLspamspam@spam@elproducts.com
*****Program PICs in BASIC Special!*********
Complete 16F84 package for only $115.95
Includes: Compiler, EPIC Programmer, 16F84 PIC, Cable & Batteries
http://www.elproducts.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

1999\03\30@155206 by chuck

flavicon
face
The link for the PicBasic list setup didn't fully copy.
If anybody is interested just go to this link
http://elproducts.com/Hobbyist.htm
and then select the 5th item:
5.PicBasic Email List

--- Chuck Hellebuyck <chelleb1spamKILLspamYAHOO.COM> wrote:
> You are correct. The resolution is totally dependant on the
oscillator
{Quote hidden}

______________________________________________________________________________
> >
> > John Leonard, instrument technician                        Electron
> > Hacker
> > College of Science & Engineering                           Bit
> Banger
> > Saginaw Valley State University                            Bassist
> > University Center, MI USA  48710                           Dad
> >
>
_____________________________________________________________________________
{Quote hidden}

===
Chuck Hellebuyck
Electronic Products
chuckspamspam_OUTelproducts.com
*****Program PICs in BASIC Special!*********
Complete 16F84 package for only $115.95
Includes: Compiler, EPIC Programmer, 16F84 PIC, Cable & Batteries
http://www.elproducts.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


'"PULSIN" instruction'
1999\04\02@024411 by Dr. Imre Bartfai
flavicon
face
Hi,
a short guess: I think 10 uSec is only approximate anyway.
Imre


On Tue, 30 Mar 1999, John wrote:

{Quote hidden}

1999\04\03@181522 by chuck

flavicon
face
Actually the PULSIN command is quite accurate and not approximate at
all. 10 usec at 4 mhz is as accurate as the crystal or resonator being
used plus the minor error in the PIC itself. "C" and even assembly have
that problem.
The PULSIN command when compiled is assembly and because the PIC runs
one instruction per clock cycle the PULSIN command was written to be
quite accurate.
Because its Basic (PicBasic actually) it doesn't get many professionals
respect but it is clearly not PC type BASIC.

--- "Dr. Imre Bartfai" <@spam@rootKILLspamspamPROF.PMMF.HU> wrote:
{Quote hidden}

______________________________________________________________________________
> >
> > John Leonard, instrument technician                        Electron
> Hacker
> > College of Science & Engineering                           Bit
> Banger
> > Saginaw Valley State University                            Bassist
> > University Center, MI USA  48710                           Dad
> >
>
_____________________________________________________________________________
> >
> >
>

===
Chuck Hellebuyck
Electronic Products
KILLspamchuckKILLspamspamelproducts.com
*****Program PICs in BASIC Special!*********
Complete 16F84 package for only $115.95
Includes: Compiler, EPIC Programmer, 16F84 PIC, Cable & Batteries
http://www.elproducts.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...