Pak-III help
Archiver
Posts: 46,084
Has any one worked with the AWC Pak-III? if so can you please give me
a simple code for A BS2, so I may see what I am getting in to, Also
how good is it's COUNT camand (can it go up to 1500 ms), And can it
do many things at once,like 2 count camands.
thanks
TC
a simple code for A BS2, so I may see what I am getting in to, Also
how good is it's COUNT camand (can it go up to 1500 ms), And can it
do many things at once,like 2 count camands.
thanks
TC
Comments
Like the Stamp, the PAK only does one thing at a time (that's not true of
all the PAKs, but it for the PAK-III). However, the PAK can do something at
the same time that the Stamp is doing something else. So you could have the
PAK do one count while the Stamp does the other.
As for the code, try the example on the disk.
The IOUTIL.BS2 file is a library of calls you can use. Where it says:
' Test Code - Replace with your own
and down to
' End of test code
You can put your own code in.
A gosub to XCOUNT will do the COUNT command. You have to set the xtmp and xA
variables.
xtmp is the pin number (0-7) and xA is the time period in 8uS units that you
want to count. The PAK will return a zero byte to indicate that it completed
the operation and then the 16-bit count. The XCOUNT subroutine handles that
for you by setting xoutvalue with the count.
So if you put this code in the "Test" section of IOUTIL.BS2 you should be OK
(assuming you want to count pin 0 of the PAK[noparse]:)[/noparse]:
doitagain:
xtmp=0
xA=10000 ' 80000uS or 80mS
gosub XCount
debug ?xoutvalue
goto doitagain
You might also study SIMPLE.BS2.
Hope that helps.
Al Williams
AWC
* Floating point math for the Stamp, PIC, SX, or any microcontroller:
http://www.al-williams.com/awce/pak1.htm
>
Original Message
> From: aconti@n... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=9oKggX951RS3aPJcw7RjVUhJ2O62PowCZw8YAIZ4Ck_oqZ5S7GUfoq1b5pytHM6QYYzJKM8pdpG-Qw]aconti@n...[/url
> Sent: Tuesday, April 24, 2001 5:48 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Pak-III help
>
>
> Has any one worked with the AWC Pak-III? if so can you please give me
> a simple code for A BS2, so I may see what I am getting in to, Also
> how good is it's COUNT camand (can it go up to 1500 ms), And can it
> do many things at once,like 2 count camands.
>
> thanks
> TC
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
time? my stamp will be working on other things, like controling the
display.
--- In basicstamps@y..., "Al Williams" <alw@a...> wrote:
> Hi TC,
>
> Like the Stamp, the PAK only does one thing at a time (that's not
true of
> all the PAKs, but it for the PAK-III). However, the PAK can do
something at
> the same time that the Stamp is doing something else. So you could
have the
> PAK do one count while the Stamp does the other.
>
> As for the code, try the example on the disk.
>
> The IOUTIL.BS2 file is a library of calls you can use. Where it
says:
>
> ' Test Code - Replace with your own
>
> and down to
>
> ' End of test code
>
> You can put your own code in.
>
> A gosub to XCOUNT will do the COUNT command. You have to set the
xtmp and xA
> variables.
>
> xtmp is the pin number (0-7) and xA is the time period in 8uS units
that you
> want to count. The PAK will return a zero byte to indicate that it
completed
> the operation and then the 16-bit count. The XCOUNT subroutine
handles that
> for you by setting xoutvalue with the count.
>
> So if you put this code in the "Test" section of IOUTIL.BS2 you
should be OK
> (assuming you want to count pin 0 of the PAK[noparse]:)[/noparse]:
>
> doitagain:
> xtmp=0
> xA=10000 ' 80000uS or 80mS
> gosub XCount
> debug ?xoutvalue
> goto doitagain
>
> You might also study SIMPLE.BS2.
>
> Hope that helps.
>
> Al Williams
> AWC
> * Floating point math for the Stamp, PIC, SX, or any
microcontroller:
> http://www.al-williams.com/awce/pak1.htm
>
>
>
> >
Original Message
> > From: aconti@n... [noparse][[/noparse]mailto:aconti@n...]
> > Sent: Tuesday, April 24, 2001 5:48 PM
> > To: basicstamps@y...
> > Subject: [noparse][[/noparse]basicstamps] Pak-III help
> >
> >
> > Has any one worked with the AWC Pak-III? if so can you please
give me
> > a simple code for A BS2, so I may see what I am getting in to,
Also
> > how good is it's COUNT camand (can it go up to 1500 ms), And can
it
> > do many things at once,like 2 count camands.
> >
> > thanks
> > TC
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
measure pulse widths and counts on 8 channels at once. Plus you get a timer
tick.
You can use this chip to read RC times, tachometers, anything that you need
to time or count pulses.
http://www.al-williams.com/awce/pak7.htm
>
Original Message
> From: aconti@n... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=BfI6e0JZn6jKufnjBJ5Zk137jNDoKZDb-gZLXrvMH1kpq5v6LB4HPjs9YBWY0ENs3EPgW3mkuA]aconti@n...[/url
> Sent: Tuesday, April 24, 2001 6:07 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Pak-III help
>
>
> well would the Pak-IV work beter to read 2 count camand at the same
> time? my stamp will be working on other things, like controling the
> display.
>
>
>
>
>
> --- In basicstamps@y..., "Al Williams" <alw@a...> wrote:
> > Hi TC,
> >
> > Like the Stamp, the PAK only does one thing at a time (that's not
> true of
> > all the PAKs, but it for the PAK-III). However, the PAK can do
> something at
> > the same time that the Stamp is doing something else. So you could
> have the
> > PAK do one count while the Stamp does the other.
> >
> > As for the code, try the example on the disk.
> >
> > The IOUTIL.BS2 file is a library of calls you can use. Where it
> says:
> >
> > ' Test Code - Replace with your own
> >
> > and down to
> >
> > ' End of test code
> >
> > You can put your own code in.
> >
> > A gosub to XCOUNT will do the COUNT command. You have to set the
> xtmp and xA
> > variables.
> >
> > xtmp is the pin number (0-7) and xA is the time period in 8uS units
> that you
> > want to count. The PAK will return a zero byte to indicate that it
> completed
> > the operation and then the 16-bit count. The XCOUNT subroutine
> handles that
> > for you by setting xoutvalue with the count.
> >
> > So if you put this code in the "Test" section of IOUTIL.BS2 you
> should be OK
> > (assuming you want to count pin 0 of the PAK[noparse]:)[/noparse]:
> >
> > doitagain:
> > xtmp=0
> > xA=10000 ' 80000uS or 80mS
> > gosub XCount
> > debug ?xoutvalue
> > goto doitagain
> >
> > You might also study SIMPLE.BS2.
> >
> > Hope that helps.
> >
> > Al Williams
> > AWC
> > * Floating point math for the Stamp, PIC, SX, or any
> microcontroller:
> > http://www.al-williams.com/awce/pak1.htm
> >
> >
> >
> > >
Original Message
> > > From: aconti@n... [noparse][[/noparse]mailto:aconti@n...]
> > > Sent: Tuesday, April 24, 2001 5:48 PM
> > > To: basicstamps@y...
> > > Subject: [noparse][[/noparse]basicstamps] Pak-III help
> > >
> > >
> > > Has any one worked with the AWC Pak-III? if so can you please
> give me
> > > a simple code for A BS2, so I may see what I am getting in to,
> Also
> > > how good is it's COUNT camand (can it go up to 1500 ms), And can
> it
> > > do many things at once,like 2 count camands.
> > >
> > > thanks
> > > TC
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
thanks
TC
--- In basicstamps@y..., "Al Williams" <alw@a...> wrote:
> No, if you want to read 8 counts at one time, check out a PAK-VII.
You can
> measure pulse widths and counts on 8 channels at once. Plus you get
a timer
> tick.
>
> You can use this chip to read RC times, tachometers, anything that
you need
> to time or count pulses.
>
> http://www.al-williams.com/awce/pak7.htm
>
>
> >
Original Message
> > From: aconti@n... [noparse][[/noparse]mailto:aconti@n...]
> > Sent: Tuesday, April 24, 2001 6:07 PM
> > To: basicstamps@y...
> > Subject: [noparse][[/noparse]basicstamps] Re: Pak-III help
> >
> >
> > well would the Pak-IV work beter to read 2 count camand at the
same
> > time? my stamp will be working on other things, like controling
the
> > display.
> >
> >
> >
> >
> >
> > --- In basicstamps@y..., "Al Williams" <alw@a...> wrote:
> > > Hi TC,
> > >
> > > Like the Stamp, the PAK only does one thing at a time (that's
not
> > true of
> > > all the PAKs, but it for the PAK-III). However, the PAK can do
> > something at
> > > the same time that the Stamp is doing something else. So you
could
> > have the
> > > PAK do one count while the Stamp does the other.
> > >
> > > As for the code, try the example on the disk.
> > >
> > > The IOUTIL.BS2 file is a library of calls you can use. Where it
> > says:
> > >
> > > ' Test Code - Replace with your own
> > >
> > > and down to
> > >
> > > ' End of test code
> > >
> > > You can put your own code in.
> > >
> > > A gosub to XCOUNT will do the COUNT command. You have to set the
> > xtmp and xA
> > > variables.
> > >
> > > xtmp is the pin number (0-7) and xA is the time period in 8uS
units
> > that you
> > > want to count. The PAK will return a zero byte to indicate that
it
> > completed
> > > the operation and then the 16-bit count. The XCOUNT subroutine
> > handles that
> > > for you by setting xoutvalue with the count.
> > >
> > > So if you put this code in the "Test" section of IOUTIL.BS2 you
> > should be OK
> > > (assuming you want to count pin 0 of the PAK[noparse]:)[/noparse]:
> > >
> > > doitagain:
> > > xtmp=0
> > > xA=10000 ' 80000uS or 80mS
> > > gosub XCount
> > > debug ?xoutvalue
> > > goto doitagain
> > >
> > > You might also study SIMPLE.BS2.
> > >
> > > Hope that helps.
> > >
> > > Al Williams
> > > AWC
> > > * Floating point math for the Stamp, PIC, SX, or any
> > microcontroller:
> > > http://www.al-williams.com/awce/pak1.htm
> > >
> > >
> > >
> > > >
Original Message
> > > > From: aconti@n... [noparse][[/noparse]mailto:aconti@n...]
> > > > Sent: Tuesday, April 24, 2001 5:48 PM
> > > > To: basicstamps@y...
> > > > Subject: [noparse][[/noparse]basicstamps] Pak-III help
> > > >
> > > >
> > > > Has any one worked with the AWC Pak-III? if so can you please
> > give me
> > > > a simple code for A BS2, so I may see what I am getting in to,
> > Also
> > > > how good is it's COUNT camand (can it go up to 1500 ms), And
can
> > it
> > > > do many things at once,like 2 count camands.
> > > >
> > > > thanks
> > > > TC
> > > >
> > > >
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >