SHA1 HASH

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Leute, helft mir herauszufinden, wie man diese Routine Df_bufferreadarray richtig verwendet :)

      Ich habe es so versucht, es hat nicht funktioniert

      Sub Df_bufferreadarray(byval Bufferno As Byte , Byval Intpageadr As Word , Byval No_of_bytes As Word , Byref Bufferptr As Word)
      ' Function name : DF_BufferReadArray
      '
      ' Returns : None
      '
      ' Parameters : BufferNo -> Decides usage of either buffer 1 or 2
      ' IntPageAdr -> Internal page address
      ' No_of_bytes -> Number of bytes to be read
      ' *BufferPtr -> address of buffer to be used for read bytes
      '
      ' Purpose : Reads one or more bytes from one of the dataflash
      ' internal SRAM buffers, and puts read bytes into
      ' buffer pointed to by *BufferPtr

      FOR Pagge = 0 TO 8191
      Call Df_pagetobuffer(1 , Pagge)
      FOR NN = 0 TO 527
      Call Df_bufferreadarray (1 , NN , 1 , N) ' Call Df_bufferreadarray (1 , NN , NN , N)
      'N = Df_bufferreadbyte(1 , NN)
      Pwm1A = N
      Waitus 1
      NEXT NN
      NEXT Pagge

      So

      Dim Buf(528) As Byte
      FOR Pagge = 0 TO 8191
      Call Df_pagetobuffer(1 , Pagge)
      Call Df_bufferreadarray (1 , 1 , 527 , Buf(1))
      FOR NN = 1 TO 528
      Buf(NN) = N
      'N = Df_bufferreadbyte(1 , NN)
      Pwm1A = N
      Waitus 1
      NEXT NN
      NEXT Pagge

      The post was edited 1 time, last by Sonic ().