I wouldn't leave a pin floating myself, mainly SHDN. On the other hand, by their specs, they says there's a "Smart Pull-Up" inside... how smart it is... who knows 
Your code seems to be ok to me, but you still haven't added the LOW CS in there... not sur if this could help though...
PS: Make sure your DEFINEs are all in UPPERCASE.
Do you have a PICKIT 2? in this case you could monitor what happen on CS/CLK/SDI and SDO
Do you have a complete schematic of your thing?
EDIT: Try this one
Code:
define OSC 8
cmcon=7
res var byte
Command var WORD
CS var porta.2 'CS
CLK var porta.3 'CLK
SI var porta.4 'SI
LED var porta.1 'LED
high CS
LOW CLK
high LED
pause 500
low LED
pause 500
high LED
res=24
repeatit:
command.highbyte=0 ' Volatile Wiper 0
comand.lowbyte=res
low CS
shiftout SI,CLK,1,[command\16]
high CS
pause 10
Command.HighByte=%00010000 ' Volatile Wiper 1
low CS
shiftout SI,CLK,1,[Command\16]
high CS
pause 500
res=res+32
goto repeatit
Bookmarks