How can I shift out a 40bit word serially?
PanchoFrank
Posts: 5
Hello Group,
I'd like to use a BS2 to generate·two 40bit words needed to serially program a National Semiconductor PLL chip.
I know how to send 7 or 8 bit words using the serout command, but·don;t yet understand how to store and then shift out this long serial stream.
Help is appreciated.
PanchoFrank
I'd like to use a BS2 to generate·two 40bit words needed to serially program a National Semiconductor PLL chip.
I know how to send 7 or 8 bit words using the serout command, but·don;t yet understand how to store and then shift out this long serial stream.
Help is appreciated.
PanchoFrank
Comments
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
One SHIFTOUT can send several chunks of data framed by chip select...
That adds up to 40 bits. The chunks can be either variables or constants. There may be a natural way to divide it up according to the control, address , data and don't-care bits that the device requires. What device is it?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
LOW LE
SHIFTOUT nsdata,nsclk, MSBFIRST, [noparse][[/noparse]%000\3, prescaler\1, refDivRatio\14, %1\1]
HIGH LE
LOW LE
SHIFTOUT nsdata,nsclk, MSBFIRST, [noparse][[/noparse]progDivRatio\11, swallowDivRatio\7, %0\1]
HIGH LE
These things can be tricky, and it takes several tries and reading between the lines.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
PanchoFrank