SHIFTIN alternative
Archiver
Posts: 46,084
Could you make any suggestions, on a way around this. Is there an
off the shelf chip that will read synchronous data as a slave and
then be able to be read through a serial port. Any suggestion would
be appreciated.
thanks
Mike
off the shelf chip that will read synchronous data as a slave and
then be able to be read through a serial port. Any suggestion would
be appreciated.
thanks
Mike
Comments
I don't know if this will work, but...
I have an idea using a 74hc595 serial to parallel conversion chip.
This chip has inputs for 2 clocks: one for the serial input and one
for the shift register. This chip not only gives a parallel output
but it has a pin that also gives a serial output as well (usually for
cascading). Set this pin to your input pin on the stamp. And, what I
was thinking was to use SHIFTIN and set the shift register clock (on
the 74hc595) with the stamp and your digital micrometer can set the
serial input clock (on the 74hc595). And, if you get the clock
frequencies close enough together you should be able to read your 52
bits of data.
I may be crazy, but it is an idea.
-Dustin
--- In basicstamps@y..., "lightningshack" <MikDolan54@a...> wrote:
> Could you make any suggestions, on a way around this. Is there an
> off the shelf chip that will read synchronous data as a slave and
> then be able to be read through a serial port. Any suggestion
would
> be appreciated.
>
> thanks
> Mike
>off the shelf chip that will read synchronous data as a slave and
>then be able to be read through a serial port. Any suggestion would
>be appreciated.
>
>thanks
>Mike
An external shift register could do it. The CD4031 for example has
64 stages in one chip. You would connect the clock pin so that the
clock could come from either the mitutoyo digital depth mic or from a
BASIC Stamp pin. The shift register input goes to the mitutoyo, and
the shift register output to another Stamp pin. A stamp pin triggers
the mitutoyo, which then fills the CD4031 with 51 bits. The Stamp
then takes over the clock and pulls in 64 bits with a SHIFTIN
command, and uses the last 51 of them. A custom PIC chip could also
do it. Maybe that is what is inside the dataGet
<http://www.dataget.com/ > interfaces mitutoyo-->Palm.
-- best regards
Tracy Allen
electronically monitored ecosystems
http://www.emesystems.com
mailto:tracy@e...