Where should I discuss SD/MMC FAT issues?


Results 1 to 40 of 93

Threaded View

  1. #28
    Join Date
    Mar 2008
    Location
    Texas, USA
    Posts
    114


    Did you find this post helpful? Yes | No

    Default

    Somewhere up towards the top, you've got a sector loop that runs 0-512 bytes. should be 0-511???
    That's an error. I'll fix it.

    Figure out which byte variables you use the most (not pins assigned to a variable, but a RAM variable), and assign those to BANK0.
    A variable assigned to BANK0 only needs a single instruction to set the PICs page register to ZERO. A variable assigned to other banks usually needs 2 instructions to set the PICs page register.
    For instance, you've got:
    w_byte var byte
    try:
    w_byte var byte BANK0
    That's good to know - I had no idea. I'll give this a try. Thanks!

    (I could really go nuts with the colons here!)
    You mean in the text format? I've been known to make the text file shorter doing this, but for 'me' it's easier read the logic without hunting down colons.
    Last edited by JD123; - 20th March 2008 at 18:47.

Similar Threads

  1. Reading and Writing from SD/MMC cards as FAT filesystem?
    By charliez in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd June 2006, 22:26

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