fowardbias, I don't know what sougata is talking about, Yes you can just use the SEROUT command to shift out as many bits as you like. You just need to break it up into something usable such as 2 bytes and 4 bits or 1 16 bit word and 4 bits as long as the largest variable is no longer than 16 bits. I do it as such:
SHIFTOUT UCN_DATA,UCN_CLK,MSBFIRST,[OUTPUTS(1)\4,OUTPUTS(0)\16]
PULSOUT UCN_STB,PULSE 'STROBE UCN5832A DATA LATCH
With this type of device the data is "clocked" in so it does not matter if there is a slight pause between the data bits.
Dave Purola,
N8NTA




Bookmarks