
Originally Posted by
wolwil
Nope the same.
20 MHz Clock will still be too slow with SHIFTOUT.
In your 1st post you are saying that you are running @16MHz. 20MHz is 25% faster than you present system.

Originally Posted by
wolwil
I am assuming your code has something to do with accessing per bit in the word sized Dat variable. So if I wanted to access the 11th bit I would do this Dat.1(2) right?
Would anyone have a faster way in Assembly I could do this?
Also Does anyone know how many clock pulses SHIFTOUT uses?
Code does exactly the same as SHIFTOUT but just little bit faster.
If this didn't help then SHIFTOUT is not the bottleneck.
Keep looking other solutions.
11th bit would be Dat.0(10).
Example below (remember MSBFIRST).
Code:
<code><font color="#000000"> Dat VAR BYTE [2]
dpin = Dat.0(7) : clk = 1 : clk = 0
dpin = Dat.0(6) : clk = 1 : clk = 0
dpin = Dat.0(5) : clk = 1 : clk = 0
dpin = Dat.0(4) : clk = 1 : clk = 0
dpin = Dat.0(3) : clk = 1 : clk = 0
dpin = Dat.0(2) : clk = 1 : clk = 0
dpin = Dat.0(1) : clk = 1 : clk = 0
dpin = Dat.0(0) : clk = 1 : clk = 0
dpin = Dat.0(15) : clk = 1 : clk = 0
dpin = Dat.0(14) : clk = 1 : clk = 0
dpin = Dat.0(13) : clk = 1 : clk = 0
dpin = Dat.0(12) : clk = 1 : clk = 0
dpin = Dat.0(11) : clk = 1 : clk = 0
dpin = Dat.0(10) : clk = 1 : clk = 0 <font color="#000080"><i>'<- 11th
</i></font>dpin = Dat.0(9) : clk = 1 : clk = 0
dpin = Dat.0(8) : clk = 1 : clk = 0
</code>
EDIT: If you or anybody know faster SHIFTOUT workaround with PBP, I would be interested.
BR,
-Gusse-
Bookmarks