Shop OBEX P1 Docs P2 Docs Learn Events
How to cooperate Spin with Assembly — Parallax Forums

How to cooperate Spin with Assembly

Jane JiJane Ji Posts: 1
edited 2012-09-28 03:44 in Propeller 1
Hi, I am doing a project collecting 24kHz data and storing the data into SD Card. I am currently using the "fsrw" package, but the speed is not fast enough. I realize that there is a fast read and write code in the safe_spi file using assembly code, but it seems not to be cooperated into the main fsrw file. I tried to use the part, but SPIN and Assembly do not share the functions. How could I cooperate this code into my main file?

Thanks!!

Comments

  • average joeaverage joe Posts: 795
    edited 2012-09-27 19:19
    I believe you want to use "mb_rawb_spi" Just comment out "safe_spi" in the object declarations and un-comment mb_rawb_spi
       'sdspi: "safe_spi"
       sdspi: "mb_rawb_spi"
    
    
  • Christof Eb.Christof Eb. Posts: 1,201
    edited 2012-09-28 03:44
    Hi Jane,
    you did not give much information about what you try todo with spin so I am just guessing. 24kHz is rather fast for spin! So perhaps it would be better to switch to a compiled language!
    Perhaps it would be good to check in an early stage of your project.
    Good luck!
    Christof
Sign In or Register to comment.