serial output counters
Archiver
Posts: 46,084
Stampers,
I'm looking for a 16 bit up counter with a serial output. I'm going to
attach a 1 mSec time base to the input of this timer.
I will have in input to an RS latch looking at my "event", take the output
of the latch to an input of the stamp and have the stamp read and reset the
timer. I will divide a constant of 60,000 by the sampled number and send it
out to one line of my front panel 4X20 display as " XXX Gizmos Per Minute".
Sound like a tachometer? It is what HP used to call an EPUT meter or EVENT
PER UNIT TIME (some of you older guys are scratching your heads and saying
"Oh, yeah. I remember those old things.") The time base can be varied by
changing the 60,000 mSec to what ever unit you chose or by changing the 1
mSec to 10, 100, 1000 etc.
If the counter isn't available, I'll just try to force a BS1 into a tight
timing loop and brute force it, but it seems that the external timer is a
better solution. [noparse][[/noparse]please, don't tell me that I could use an AM-9513A, I
don't even want to think about that solution]
thanks,
Mike
_________________________________
Mike Walsh
walsh@i...
I'm looking for a 16 bit up counter with a serial output. I'm going to
attach a 1 mSec time base to the input of this timer.
I will have in input to an RS latch looking at my "event", take the output
of the latch to an input of the stamp and have the stamp read and reset the
timer. I will divide a constant of 60,000 by the sampled number and send it
out to one line of my front panel 4X20 display as " XXX Gizmos Per Minute".
Sound like a tachometer? It is what HP used to call an EPUT meter or EVENT
PER UNIT TIME (some of you older guys are scratching your heads and saying
"Oh, yeah. I remember those old things.") The time base can be varied by
changing the 60,000 mSec to what ever unit you chose or by changing the 1
mSec to 10, 100, 1000 etc.
If the counter isn't available, I'll just try to force a BS1 into a tight
timing loop and brute force it, but it seems that the external timer is a
better solution. [noparse][[/noparse]please, don't tell me that I could use an AM-9513A, I
don't even want to think about that solution]
thanks,
Mike
_________________________________
Mike Walsh
walsh@i...
Comments
The PAK-VII samples each input at an interval (adjustable from 5uS up). It
maintains a count of rising edges, falling edges, and also the length of the
last + pulse and - pulse.
So you might be able to use the internal time base, but as long as you are
sampling at twice your input frequency (or faster) you could use the edge
counters to get the number you want.
Regards,
Al Williams
AWC
*8 channels of pulse input: http://www.al-williams.com/awce/pak7.htm
>
Original Message
> From: MIKE WALSH [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yhI7jJEyU47cwYncj_QjIdGLIQhJxDuIpm3blHwqYlJ4FHC3l_tT5aJYIBa3rijemq0hYh3OdGrAxFI]walsh@c...[/url
> Sent: Thursday, April 05, 2001 4:47 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] serial output counters
>
>
> Stampers,
> I'm looking for a 16 bit up counter with a serial output. I'm going to
> attach a 1 mSec time base to the input of this timer.
> I will have in input to an RS latch looking at my "event", take
> the output
> of the latch to an input of the stamp and have the stamp read and
> reset the
> timer. I will divide a constant of 60,000 by the sampled number
> and send it
> out to one line of my front panel 4X20 display as " XXX Gizmos
> Per Minute".
> Sound like a tachometer? It is what HP used to call an EPUT meter
> or EVENT
> PER UNIT TIME (some of you older guys are scratching your heads
> and saying
> "Oh, yeah. I remember those old things.") The time base can be varied by
> changing the 60,000 mSec to what ever unit you chose or by changing the 1
> mSec to 10, 100, 1000 etc.
> If the counter isn't available, I'll just try to force a BS1 into a tight
> timing loop and brute force it, but it seems that the external timer is a
> better solution. [noparse][[/noparse]please, don't tell me that I could use an AM-9513A, I
> don't even want to think about that solution]
> thanks,
> Mike
>
> _________________________________
> Mike Walsh
> walsh@i...
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
I had looked at your I/O coprocessors, thinking that I would use pBasic
statements. I never even thought about the Pulse Input Processors. I'll
look at it tonight!
thanks,
Mike
At 05:00 PM 4/5/2001 -0500, you wrote:
>The PAK-VII can do what you want on 8 channels at once, I think.
>
>The PAK-VII samples each input at an interval (adjustable from 5uS up). It
>maintains a count of rising edges, falling edges, and also the length of the
>last + pulse and - pulse.
_________________________________
Mike Walsh
walsh@i...
I have also been keeping an eye out for a serial counter for some time. you
may want to take a look at at the Philips PCF8583 I2C real time clock. It
has a mode which can be set that lets you use it as a counter instead of a
clock. It should be easy to interface with the new stamp chips, or possibly
you could fake it in software
fwiw,
Steve
At 02:46 PM 04/05/2001 -0700, you wrote:
>Stampers,
>I'm looking for a 16 bit up counter with a serial output. I'm going to
>attach a 1 mSec time base to the input of this timer.
>I will have in input to an RS latch looking at my "event", take the output
>of the latch to an input of the stamp and have the stamp read and reset the
>timer. I will divide a constant of 60,000 by the sampled number and send it
>out to one line of my front panel 4X20 display as " XXX Gizmos Per Minute".
>Sound like a tachometer? It is what HP used to call an EPUT meter or EVENT
>PER UNIT TIME (some of you older guys are scratching your heads and saying
>"Oh, yeah. I remember those old things.") The time base can be varied by
>changing the 60,000 mSec to what ever unit you chose or by changing the 1
>mSec to 10, 100, 1000 etc.
>If the counter isn't available, I'll just try to force a BS1 into a tight
>timing loop and brute force it, but it seems that the external timer is a
>better solution. [noparse][[/noparse]please, don't tell me that I could use an AM-9513A, I
>don't even want to think about that solution]
>thanks,
>Mike
>
>_________________________________
>Mike Walsh
>walsh@i...
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
16-bit, 256 hz with a timer built in...I've used them for all sorts of
things..
It's a 8- Pin PIC and 4 MHZ resonator.....
www.panderson.com
Good luck
Stewart McCallum
Sydney, Au
Thanks. I'll take a look at the Philips part. Does anyone know where to get
Philips parts in small quantities?
Mike
At 03:10 PM 4/7/2001 -0500, you wrote:
>Hi Mike,
>
>I have also been keeping an eye out for a serial counter for some time. you
>may want to take a look at at the Philips PCF8583 I2C real time clock. It
>has a mode which can be set that lets you use it as a counter instead of a
>clock. It should be easy to interface with the new stamp chips, or possibly
>you could fake it in software
>
>fwiw,
>
>Steve
_________________________________
Mike Walsh
walsh@i...
I appreciate the help, but that's not quite Mr Anderson's address.
Mike
At 10:09 AM 4/8/2001 +1000, you wrote:
>Peter Anderson Also has a serial counter availalbe on his site...It'
>16-bit, 256 hz with a timer built in...I've used them for all sorts of
>things..
>It's a 8- Pin PIC and 4 MHZ resonator.....
>
>www.panderson.com
>
>
>Good luck
>Stewart McCallum
>Sydney, Au
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
_________________________________
Mike Walsh
walsh@i...