How can I speed this code up? SHIFTOUT is slowing it down and I need a faster way.


Results 1 to 30 of 30

Threaded View

  1. #8
    Join Date
    Mar 2010
    Location
    Minnesota, USA
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Nope the same.

    Quote Originally Posted by Gusse View Post
    Code:
    <code><font color="#000000">    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
    </code>

    BR,
    -Gusse-
    Nope the same.

    20 MHz Clock will still be too slow with SHIFTOUT.

    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?
    Last edited by wolwil; - 8th May 2010 at 17:16.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts