Ds1267
Archiver
Posts: 46,084
You can output 17 bits with SHIFTOUT like this
SHIFTOUT dPin, cPin, mode, [noparse][[/noparse]wordVar\16, bitVar\1]
Normally, SHIFTOUT wants to send 8 bits, so you must specify the transmission
width with the slash. You don't have to use a bit variable for the second
(could be first if it's more convenient), but that will make it easier if the
mode is MSBFIRST.
The complimentary part for the 74HC595 is the 74HC165. Download our
StampWorks manual for code and schematics.
-- Jon Williams
-- Parallax
In a message dated 8/16/02 8:52:28 AM Central Daylight Time,
mwaddell@s... writes:
> Does anybody have any code that has been used to control one of
> these IC(DS1267). It specifies a 17 bit serial output I think the
> stamp can only ouput 16. The leading bit specifies if the IC is used
> in a stacked mode. How do you work around this?
>
> Also is their a chip that does the oposite of the 74HC595. Parallel
> to serial? What part #?
>
[noparse][[/noparse]Non-text portions of this message have been removed]
SHIFTOUT dPin, cPin, mode, [noparse][[/noparse]wordVar\16, bitVar\1]
Normally, SHIFTOUT wants to send 8 bits, so you must specify the transmission
width with the slash. You don't have to use a bit variable for the second
(could be first if it's more convenient), but that will make it easier if the
mode is MSBFIRST.
The complimentary part for the 74HC595 is the 74HC165. Download our
StampWorks manual for code and schematics.
-- Jon Williams
-- Parallax
In a message dated 8/16/02 8:52:28 AM Central Daylight Time,
mwaddell@s... writes:
> Does anybody have any code that has been used to control one of
> these IC(DS1267). It specifies a 17 bit serial output I think the
> stamp can only ouput 16. The leading bit specifies if the IC is used
> in a stacked mode. How do you work around this?
>
> Also is their a chip that does the oposite of the 74HC595. Parallel
> to serial? What part #?
>
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
these IC(DS1267). It specifies a 17 bit serial output I think the
stamp can only ouput 16. The leading bit specifies if the IC is used
in a stacked mode. How do you work around this?
Also is their a chip that does the oposite of the 74HC595. Parallel
to serial? What part #?
Thanks
Mark
Mark